Env sporeexplosion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(updates)
m (css)
Line 2: Line 2:
[[File:env_sporeexplosion.jpg|thumb|right|250px|Example with '''Spawn Rate''' set to '''40'''.]]
[[File:env_sporeexplosion.jpg|thumb|right|250px|Example with '''Spawn Rate''' set to '''40'''.]]
{{hl2 point|env_sporeexplosion}} A purely cosmetic [[weapon_bugbait|bugbait]] spore effect. If you want something that antlions will react to, see {{ent|npc_grenade_bugbait}} or {{ent|ai_sound}}.
{{hl2 point|env_sporeexplosion}} A purely cosmetic [[weapon_bugbait|bugbait]] spore effect. If you want something that antlions will react to, see {{ent|npc_grenade_bugbait}} or {{ent|ai_sound}}.
{{stray ent|{{css}}}}


{{code class|SporeExplosion|smoke_trail.cpp}}
{{code class|SporeExplosion|smoke_trail.cpp}}
Line 8: Line 10:
{{KV|Spawn Rate (as percentage) (spawnrate)|float|How dense the spore effect is. This percentage is not bound to 100; even values in the thousands are acceptable.}}
{{KV|Spawn Rate (as percentage) (spawnrate)|float|How dense the spore effect is. This percentage is not bound to 100; even values in the thousands are acceptable.}}
{{KV EnableDisable}}
{{KV EnableDisable}}
{{KV BaseEntity|base=1}}
{{KV BaseEntity|base=1|css=1}}


==Inputs==
==Inputs==

Revision as of 15:17, 8 September 2018

English (en)Translate (Translate)
Example with Spawn Rate set to 40.

Template:Hl2 point A purely cosmetic bugbait spore effect. If you want something that antlions will react to, see npc_grenade_bugbait or ai_sound.

Note.pngNote:This entity is also in the code for Counter-Strike: Source. Its functionality is not guaranteed.


C++ In code, it is represented by theSporeExplosionclass, defined in thesmoke_trail.cppfile.

Keyvalues

Spawn Rate (as percentage) (spawnrate) ([todo internal name (i)]) <float>
How dense the spore effect is. This percentage is not bound to 100; even values in the thousands are acceptable.
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).


Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.


Outputs