CEntityFlame
Code classes:
CEntityFlame
CEnvEntityIgniter
()CBaseEntity
(all ents)
CEntityFlame
is a class that sets entities on fire.
Classnames:
entityflame
(Not in FGD)env_entity_igniter
In games before , both of these entity classnames function exactly the same. When the entity is told to ignite something, it will first check if the target is a CBaseCombatCharacter
(because entities that inherit this class know how to catch on fire). If the target is not a combat character, another version of the entity is created which is attached to the target in order to hurt them. In onward, these two functions have been separated so that env_entity_igniter
does the targeting, and entityflame
does the damage.
Bug: Known to not work on some entities for unclear reasons. Note that any CBaseAnimating
entity can be sent an Ignite input instead of using this entity.
Keyvalues[edit | edit source]
- Entity to ignite
(target)
<target_destination>
- Entity or entities to ignite.
- Lifetime in seconds
(lifetime)
<float>
- How long the flames last.
Inputs[edit | edit source]
- Ignite
- Ignites the Entity to ignite.