Difference between revisions of "Asteroid.tbl"

From FreeSpace Wiki
Jump to: navigation, search
 
m (update)
Line 1: Line 1:
 +
Revision information.. <!-- Please update this information when page is updated -->
 +
::'''3.6.x branch:''' 2.35.2.10
 +
::'''3.7 branch:''' 2.45
 +
 +
 
==General Format==
 
==General Format==
 
*Asteroid.tbl is used to define all asteroids and debris pieces in-game.
 
*Asteroid.tbl is used to define all asteroids and debris pieces in-game.
Line 10: Line 15:
 
**Defines the radius of the effect
 
**Defines the radius of the effect
 
**Syntax: ''Value'', (meters)
 
**Syntax: ''Value'', (meters)
 +
  
 
==Asteroid and Debris Data==
 
==Asteroid and Debris Data==
Line 16: Line 22:
 
*Next three are debris pieces for the 1st species in the [[species_defs.tbl]]
 
*Next three are debris pieces for the 1st species in the [[species_defs.tbl]]
 
*And so on in series of three
 
*And so on in series of three
 +
  
 
===$Name:===
 
===$Name:===
 
*Defines the name of asteroid or debris object
 
*Defines the name of asteroid or debris object
 +
  
 
===$POF file1:===
 
===$POF file1:===
 
*Defines the name of the model file (.pof) used for asteroid or debris model
 
*Defines the name of the model file (.pof) used for asteroid or debris model
*Syntax: ''Filename.pof''
+
*Syntax: '''String.pof''', filename
 +
 
  
 
===$POF file2:===
 
===$POF file2:===
 
*Defines the name of the alternate asteroid or debris model of the set size
 
*Defines the name of the alternate asteroid or debris model of the set size
*Syntax: ''Filename.pof'' or ''none''
+
*Syntax: '''String.pof''' or '''none''', filename
 +
 
  
 
===$POF file3:===
 
===$POF file3:===
*Defines the name of the alternate asteroid or debris model of the set size
+
*Defines the name of the alternate asteroid model
 
*If the object in question is has '''$POF file2:''' set as ''none'' then this entry is not needed
 
*If the object in question is has '''$POF file2:''' set as ''none'' then this entry is not needed
*Syntax: ''Filename.pof'' or ''none''
+
*Syntax: '''String.pof''' or '''none''', filename
 +
 
  
 
===$Detail distance:===
 
===$Detail distance:===
 
*Definies the distance where the change between different Levels-Of-Details (LODs) occurs
 
*Definies the distance where the change between different Levels-Of-Details (LODs) occurs
*Syntax: (''Value'', ''Value'', ...) (distances from the model in meters)
+
*Syntax: ( '''Integer list''' ), comma separated '''integers''', one for each LOD
 
**Example: (0, 30, 80, 150)
 
**Example: (0, 30, 80, 150)
 +
  
 
===$Max Speed:===
 
===$Max Speed:===
 
*Defines the maximum velocity of the asteroid
 
*Defines the maximum velocity of the asteroid
*Syntax: ''Value'', (meters per second)
+
*Syntax: '''Float''', meters per second
 +
 
 +
 
 +
===$Damage Type:===
 +
{{Table36|
 +
*Defines the damage type of the asteroid explosion. '''REQUIRES ADDITIONAL TABLE FILE'''.
 +
*Syntax: '''String''', name of the damage type as referenced in [[armor.tbl]]}}
 +
 
 +
{{Table37|
 +
*3.7 branch lacks '''$Damage Type:''' option}}
 +
 
  
 
===$Expl inner rad:===
 
===$Expl inner rad:===
 
*Radius at which the full explosion damage is done
 
*Radius at which the full explosion damage is done
*Syntax: ''Value'', (meters)
+
*Syntax: '''Float''', meters
 +
 
  
 
===$Expl outer rad:===
 
===$Expl outer rad:===
 
*Maximum radius at which any damage is done
 
*Maximum radius at which any damage is done
*Syntax: ''Value'', (meters)
+
*Syntax: '''Float''', meters
 +
 
  
 
===$Expl damage:===
 
===$Expl damage:===
 
*Amount of damage done inside the inner radius
 
*Amount of damage done inside the inner radius
*Syntax: ''Value'', (damage value)
+
*Syntax: '''Float''', damage
 +
 
  
 
===$Expl blast:===
 
===$Expl blast:===
 
*The intensity of the blast effect when you're within the outer radius
 
*The intensity of the blast effect when you're within the outer radius
*Syntax: ''Value'', (blast effect)
+
*Syntax: '''Float''', blast effect
 +
 
  
 
===$Hitpoints:===
 
===$Hitpoints:===
 
*Defines the hitpoints of the asteroid or debris piece. Hitpoints are modified downward by skill level.
 
*Defines the hitpoints of the asteroid or debris piece. Hitpoints are modified downward by skill level.
*Syntax: ''Value'', (hitpoints)
+
*Syntax: '''Float''', hitpoints
 +
 
  
 
==Sample==
 
==Sample==
 
*Single asteroid entry fos retail FS2 table
 
*Single asteroid entry fos retail FS2 table
  
  #Asteroid Types
+
<pre>
  $Name:              Small Asteroid
+
#Asteroid Types
  $POF file1:          ast03.pof
+
 
  $POF file2:          asta03.pof
+
$Name:              Small Asteroid
  $POF file3:          astb03.pof
+
$POF file1:          ast03.pof
  $Detail distance:    (0, 30, 80, 150)
+
$POF file2:          asta03.pof
  $Max Speed:          60.0
+
$POF file3:          astb03.pof
  $Expl inner rad:    0.0
+
$Detail distance:    (0, 30, 80, 150)
  $Expl outer rad:    0.0
+
$Max Speed:          60.0
  $Expl damage:        0.0
+
$Expl inner rad:    0.0
  $Expl blast:        0.0
+
$Expl outer rad:    0.0
  $Hitpoints:          23
+
$Expl damage:        0.0
  #End
+
$Expl blast:        0.0
  $Impact Explosion:            ExpMissilehit1
+
$Hitpoints:          23
  $Impact Explosion Radius:    20.0
+
 
 +
#End
 +
 
 +
$Impact Explosion:            ExpMissilehit1
 +
$Impact Explosion Radius:    20.0
 +
</pre>
  
 
[[Category:tables]]
 
[[Category:tables]]

Revision as of 07:31, 29 July 2007

Revision information..

3.6.x branch: 2.35.2.10
3.7 branch: 2.45


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: String.pof, filename


$POF file2:

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


$POF file3:

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


$Detail distance:

  • Definies the distance where the change between different Levels-Of-Details (LODs) occurs
  • Syntax: ( Integer list ), comma separated integers, one for each LOD
    • Example: (0, 30, 80, 150)


$Max Speed:

  • Defines the maximum velocity of the asteroid
  • Syntax: Float, meters per second


$Damage Type:

FS2 Open, 3.6.x:
  • Defines the damage type of the asteroid explosion. REQUIRES ADDITIONAL TABLE FILE.
  • Syntax: String, name of the damage type as referenced in armor.tbl


FS2 Open, 3.7:
  • 3.7 branch lacks $Damage Type: option


$Expl inner rad:

  • Radius at which the full explosion damage is done
  • Syntax: Float, meters


$Expl outer rad:

  • Maximum radius at which any damage is done
  • Syntax: Float, meters


$Expl damage:

  • Amount of damage done inside the inner radius
  • Syntax: Float, damage


$Expl blast:

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


$Hitpoints:

  • Defines the hitpoints of the asteroid or debris piece. Hitpoints are modified downward by skill level.
  • Syntax: Float, 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