Env muzzleflash: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Inputs: sorry about the spam on RecentChanges)
(this appears to be in all source games actually)
Line 1: Line 1:
{{lang|Env muzzleflash}}
{{lang|Env muzzleflash}}
{{hl2 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.
{{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.


{{code class|CEnvMuzzleFlash|effects.cpp}}
{{code class|CEnvMuzzleFlash|effects.cpp}}
Line 7: Line 7:
{{KV|Parent Attachment (parentattachment)|string|The name of an attachment on the [[parent]] to hierarchically attach to.}}
{{KV|Parent Attachment (parentattachment)|string|The name of an attachment on the [[parent]] to hierarchically attach to.}}
{{KV|Scale (scale)|float|Size of the muzzle flash.}}
{{KV|Scale (scale)|float|Size of the muzzle flash.}}
{{KV BaseEntity|base=1}}
{{KV BaseEntity|base=1|css=1}}


==Inputs==
==Inputs==

Revision as of 15:19, 8 September 2018

English (en)Translate (Translate)

Template:Base point 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