Env muzzleflash: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (removed {{DISPLAYTITLE}}, covered by the hl2 point template)
(updates)
Line 1: Line 1:
{{hl2 point|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.


==Entity description==
{{code class|CEnvMuzzleFlash|effects.cpp}}
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.


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{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 Parentname}}
{{KV BaseEntity|base=1}}
 
{{KV Angles}}
 
{{KV|Parent Attachment|string|The name of an attachment on the parent to hierarchically attach to.}}
 
{{KV|Scale|float|Size of the muzzle flash.}}
 
<!--This entity doesn't have any flags.-->


==Inputs==
==Inputs==
{{I Targetname}}
{{I Parentname}}
{{IO|Fire|Fires the effect once.}}
{{IO|Fire|Fires the effect once.}}
{{I BaseEntity|base=1}}


==Outputs==
==Outputs==
{{O Targetname}}
{{O BaseEntity}}
 
[[Category:Entities]]

Revision as of 13:37, 7 September 2018

English (en)Translate (Translate)

Template:Hl2 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