Nuclide
Software Development Kit for id Tech
env_fire Class Reference

Shared-Entity: Fire/Flame Emitter. More...

Inheritance diagram for env_fire:
NSPointTrigger

Public Member Functions

void env_fire (void)
 
virtual void SpawnKey (string strKey, string strValue)
 This method handles entity key/value pairs on map load. More...
 

Detailed Description

Shared-Entity: Fire/Flame Emitter.

QUAKED env_fire (1 .5 0) (-8 -8 -8) (8 8 8) INFINITE_DURATION SMOKELESS STARTON STARTFULL NODROP NOGLOW x DELETE TOPVISIBLE

OVERVIEW

Environmental fire/flame entity. Will apply damage to entities, including other fire entities. They grow/shrink depending on their ignition level.

KEYS

  • "targetname" : Name
  • "health" : Duration, in seconds.
  • "firesize" : Size of the fire in world units.
  • "fireattack" : Time in seconds until the fire has fully expanded.
  • "firetype" : Type of fire. 0 - Standard, 1 - Plasma
  • "ignitionpoint" : Amount of fire damage it takes before igniting fully.
  • "damagescale" : Burn damage multiplier.

SPAWNFLAGS

  • INFINITE_DURATION (1) : Don't extinguish by itself.
  • SMOKELESS (2) : Don't spawn smoke.
  • STARTON (4) : Starts enabled.
  • STARTFULL (8) : Starts expanded.
  • NODROP (16) : Don't drop to floor (?)
  • NOGLOW (32) : Don't glow.
  • DELETE (128) : Delete from game when extinguished.
  • TOPVISIBLE (256) : Visible from above.

INPUTS

  • "StartFire" : Starts the fire effect.
  • "Extinguish" : Puts out the fire, with an optional timer (in seconds).
  • "ExtinguishTemporary" : Puts out the fire (temporarily).

OUTPUTS

  • "OnIgnited" : Triggered when the fire ignites.
  • "OnExtinguished" : Triggered when the fire is extinguished.

TRIVIA

This entity was introduced in Half-Life 2 (2004).

Constructor & Destructor Documentation

◆ env_fire()

void env_fire::env_fire ( void  )

Member Function Documentation

◆ SpawnKey()

void env_fire::SpawnKey ( string  strKey,
string  strValue 
)
virtual

This method handles entity key/value pairs on map load.

You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of NSIO.

Reimplemented from NSPointTrigger.


The documentation for this class was generated from the following file: