Repository navigation
mflash.tbl
github-actions[bot] edited this page Oct 28, 2026
·
3 revisions
Revision information OFP Revision: #130 Set the revision to your PR when your PR changes what this page documents. Leave it alone for edits that only fix or improve the documentation.
The mflash.tbl is used to define different muzzleflashes that are seen in game. Weapons use them by name with $Muzzleflash: in weapons.tbl.
This table is one of the Modular Tables and can be extended with xxx-mfl.tbm.
Code: /weapon/muzzleflash.cpp. See Tables for every table.
Badges show the version a field or behavior was added in. Fields without a badge are from the original game.
Field index (every field, one per line in table order; click one to jump to it)
- Table begins with #Muzzle flash types
- Each muzzleflash is its own section that starts with $Mflash:
- Table ends with #end
- Required. 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, in that order
- A name that already exists (in this or an earlier table) logs a warning, and the new entry is ignored, unless it uses
+override. - Syntax: String
- Optional, directly after
+name:. Replaces the existing muzzle flash of that name: its blobs are all removed, and the blobs listed here are used instead. There is no way to add blobs to an existing muzzle flash without listing them all again. - If no muzzle flash has that name yet, it is simply added.
- Defines the animation used for the 'blob'. Each blob plays its animation once, at the gun, moving with the ship.
- Syntax: String
- Required after
+blob_name:. Defines the distance from the firing point along the 'line of fire' for the centerpoint of animation - Syntax: Float, meters
- Required after
+blob_offset:. Defines the radius of the animation - Syntax: Float, meters
A minimum on-screen size for all muzzle flashes can be set with $Minimum Pixel Size Muzzle Flashes: in game_settings.tbl.
- 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
Getting Started
Features
SEXPs
Lua Scripting
Tables
-
Tables
- ai.tbl
- Animation (-anim.tbm)
- armor.tbl
- asteroid.tbl
- autopilot.tbl
- cheats.tbl
- colors.tbl
- controlconfigdefaults.tbl
- coordinate_points.tbl
- credits.tbl
- curves.tbl
- cutscenes.tbl
- Decals (-dcl.tbm)
- default_settings.tbl
- Dynamic SEXPs (-sexp.tbm)
- editor.tbl
- fireball.tbl
- fonts.tbl
- game_settings.tbl
- generated_nebula.tbl
- glowpoints.tbl
- help.tbl
- hud_gauges.tbl
- icons.tbl
- iff_defs.tbl
- intel.tbl
- lighting_profiles.tbl
- lightning.tbl
- mainhall.tbl
- medals.tbl
- messages.tbl
- mflash.tbl
- mission_profiles.tbl
- music.tbl
- nebula.tbl
- objecttypes.tbl
- Particle Effects (-part.tbm)
- post_processing.tbl
- props.tbl
- rank.tbl
- scripting.tbl
- ships.tbl
- sounds.tbl
- species_defs.tbl
- ssm.tbl
- stars.tbl
- strings.tbl
- tips.tbl
- traitor.tbl
- tstrings.tbl
- virtual_pofs.tbl
- weapons.tbl