env_sporeexplosion

From Valve Developer Community
Jump to navigation Jump to search
Icon-callout-underlinked.png
This article needs more links to other pages (since January 2024). You can help improve navigation by adding links to related documentation, such as entities or tools.
English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
SporeExplosion
CBaseParticleEntity
CBaseEntity
C++ smoke_trail.cpp
Example with Spawn Rate set to 40.

env_sporeexplosion is a point entity available in all Source Source games. It is a purely cosmetic bugbait spore effect. If something is needed that antlions will react to, see npc_grenade_bugbait or ai_sound.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Spawn Rate (as percentage) (spawnrate) <float>
How dense the spore effect is, clamped to a max of 1024.[confirm]
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Icon-Bug.pngBug:Will always spawn disabled.  (tested in: Counter-Strike: Source)

Inputs

EnableDisable:

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

FGD Code

@PointClass base(Targetname, Parentname, EnableDisable) = env_sporeexplosion : "Bugbait Spore Effect"
[
	spawnrate(float) : "Spawn Rate (as percentage)" : 25 : "How dense the spore effect is"
]