This article's documentation is for anything that uses the Source engine. Click here for more information.

Env muzzleflash: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: clean up, added underlinked tag)
m (→‎top: Unicodifying, replaced: {{language subpage → {{langsp)
Line 1: Line 1:
{{Underlinked|date=January 2024}}
{{Underlinked|date=January 2024}}


<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Env muzzleflash}}{{this is a|name=env_muzzleflash|e0}} 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.
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Env muzzleflash}}{{this is a|name=env_muzzleflash|e0}} 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 09:23, 8 January 2024

Underlinked - Logo.png
This article needs more Wikipedia icon links to other articles to help Wikipedia icon integrate it into the encyclopedia. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024
English (en)Translate (Translate)

env_muzzleflash is an e0 available in all Source Source games. 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