Difference between revisions of "Mflash.tbl"

From FreeSpace Wiki
Jump to: navigation, search
(initial page commit)
 
m (update)
Line 1: Line 1:
 +
Revision information.. <!-- Please update this information when page is updated -->
 +
::'''3.6.x branch:''' 2.7.2.2
 +
::'''3.7 branch:''' 2.12
 +
 +
 
Mflash.tbl is used to define different muzzleflashes that are seen in game.
 
Mflash.tbl is used to define different muzzleflashes that are seen in game.
 +
  
 
==Format==
 
==Format==
Line 6: Line 12:
 
*Table ends with '''#end'''
 
*Table ends with '''#end'''
  
==Mflash==
+
 
 +
==Mflash:==
 +
 
  
 
===+name:===
 
===+name:===
Line 12: Line 20:
 
*Every muzzleflash may have several graphics (animations) attached to it
 
*Every muzzleflash may have several graphics (animations) attached to it
 
*Every 'blob' needs their own '''+blob_name:''', '''+blob_offset:''', and '''+blob_radius:''' properties
 
*Every 'blob' needs their own '''+blob_name:''', '''+blob_offset:''', and '''+blob_radius:''' properties
*Syntax: ''string''
+
*Syntax: '''String'''
  
===+blob_name:===
+
 
 +
====+blob_name:====
 
*Defines the animation used for the 'blob'
 
*Defines the animation used for the 'blob'
*Syntax: ''string''
+
*Syntax: '''String'''
 +
 
  
===+blob_offset:===
+
====+blob_offset:====
 
*Defines the distance from the firing point along the 'line of fire' for the centerpoint of animation  
 
*Defines the distance from the firing point along the 'line of fire' for the centerpoint of animation  
*Syntax: ''float''
+
*Syntax: '''Float'''
 +
 
  
===+blob_radius:===
+
====+blob_radius:====
 
*Defines the radius of the animation
 
*Defines the radius of the animation
*Syntax: ''float''
+
*Syntax: '''Float'''
 +
 
  
 
==Sample==
 
==Sample==

Revision as of 09:09, 9 August 2007

Revision information..

3.6.x branch: 2.7.2.2
3.7 branch: 2.12


Mflash.tbl is used to define different muzzleflashes that are seen in game.


Format

  • Table begins with #Muzzle flash types
  • Each muzzleflash is its own section that starts with $Mflash:
  • Table ends with #end


Mflash:

+name:

  • Defines the name of the muzzleflash
  • Every muzzleflash may have several graphics (animations) attached to it
  • Every 'blob' needs their own +blob_name:, +blob_offset:, and +blob_radius: properties
  • Syntax: String


+blob_name:

  • Defines the animation used for the 'blob'
  • Syntax: String


+blob_offset:

  • Defines the distance from the firing point along the 'line of fire' for the centerpoint of animation
  • Syntax: Float


+blob_radius:

  • Defines the radius of the animation
  • Syntax: Float


Sample

  • Retail FreeSpace 2 table
  • Has 1 muzzleflash that has four animations attached to it
#Muzzle flash types

;; small muzzle flash
$Mflash:
+name:			mflash_small		;; whatever you want to name it

+blob_name:		expmissilehit1					;; anim name, offset from muzzle, radius
+blob_offset:	1.0 
+blob_radius:	6.0					

+blob_name:		expmissilehit1					;; anim name, offset from muzzle, radius
+blob_offset:	4.5
+blob_radius:	4.0					

+blob_name:		expmissilehit1					;; anim name, offset from muzzle, radius
+blob_offset:	6.0
+blob_radius:	3.0					

+blob_name:		expmissilehit1					;; anim name, offset from muzzle, radius
+blob_offset:	8.5
+blob_radius:	3.0					


#end