Asteroid.tbl

From FreeSpace Wiki
Revision as of 19:11, 17 December 2005 by Wanderer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

General Format

  • Asteroid.tbl is used to define all asteroids and debris pieces in-game.
  • #Asteroid Types
  • Asteroid and debris data
  • #End
  • $Impact Explosion:
    • Defines the effect used when weapon strikes at asteroid
    • Syntax: Filename
  • $Impact Explosion Radius:
    • Defines the radius of the effect
    • Syntax: Value, (meters)

Asteroid and Debris Data

  • Used to define asteroid types and their physical characteristics
  • First three entries are different sized asteroids, small medium and large respectively
  • Next three are debris pieces for the 1st species in the species_defs.tbl
  • And so on in series of three

$Name:

  • Defines the name of asteroid or debris object

$POF file1:

  • Defines the name of the model file (.pof) used for asteroid or debris model
  • Syntax: Filename.pof

$POF file2:

  • Defines the name of the alternate asteroid or debris model of the set size
  • Syntax: Filename.pof or none

$POF file3:

  • Defines the name of the alternate asteroid or debris model of the set size
  • If the object in question is has $POF file2: set as none then this entry is not needed
  • Syntax: Filename.pof or none

$Detail distance:

  • Definies the distance where the change between different Levels-Of-Details (LODs) occurs
  • Syntax: (Value, Value, ...) (distances from the model in meters)
    • Example: (0, 30, 80, 150)

$Max Speed:

  • Defines the maximum velocity of the asteroid
  • Syntax: Value, (meters per second)

$Expl inner rad:

  • Radius at which the full explosion damage is done
  • Syntax: Value, (meters)

$Expl outer rad:

  • Maximum radius at which any damage is done
  • Syntax: Value, (meters)

$Expl damage:

  • Amount of damage done inside the inner radius
  • Syntax: Value, (damage value)

$Expl blast:

  • The intensity of the blast effect when you're within the outer radius
  • Syntax: Value, (blast effect)

$Hitpoints:

  • Defines the hitpoints of the asteroid or debris piece. Hitpoints are modified downward by skill level.
  • Syntax: Value, (hitpoints)

Sample

  • Single asteroid entry fos retail FS2 table
  #Asteroid Types
  $Name:               Small Asteroid
  $POF file1:          ast03.pof
  $POF file2:          asta03.pof
  $POF file3:          astb03.pof
  $Detail distance:    (0, 30, 80, 150)
  $Max Speed:          60.0
  $Expl inner rad:     0.0
  $Expl outer rad:     0.0
  $Expl damage:        0.0
  $Expl blast:         0.0
  $Hitpoints:          23
  #End
  $Impact Explosion:            ExpMissilehit1
  $Impact Explosion Radius:     20.0