Env muzzleflash: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(this appears to be in all source games actually)
mNo edit summary
Line 1: Line 1:
{{lang|Env muzzleflash}}
{{lang|Env muzzleflash}}
{{base point|env_muzzleflash}} This is an entity that creates the effect of flames leaving a guns barrel when fires. This entity is useful when making your own custom-made turrets or weapons to add a realistic flame effect. Unlike {{ent|env_gunfire}}, this does not make any bullet effects or sound.
{{entity|type=e0|env_muzzleflash}} This is an entity that creates the effect of flames leaving a guns barrel when fires. This entity is useful when making your own custom-made turrets or weapons to add a realistic flame effect. Unlike {{ent|env_gunfire}}, this does not make any bullet effects or sound.


{{code class|CEnvMuzzleFlash|effects.cpp}}
{{code class|CEnvMuzzleFlash|effects.cpp}}

Revision as of 04:44, 25 February 2023

English (en)Translate (Translate)

Template:Entity This is an entity that creates the effect of flames leaving a guns barrel when fires. This entity is useful when making your own custom-made turrets or weapons to add a realistic flame effect. Unlike env_gunfire, this does not make any bullet effects or sound.

C++ In code, it is represented by theCEnvMuzzleFlashclass, defined in theeffects.cppfile.

Keyvalues

Parent Attachment (parentattachment) ([todo internal name (i)]) <string>
The name of an attachment on the parent to hierarchically attach to.
Scale (scale) ([todo internal name (i)]) <float>
Size of the muzzle flash.


Inputs

Fire
Fires the effect once.


Outputs