Nuclide
Software Development Kit for id Tech
NSTrigger.h File Reference

Go to the source code of this file.

Classes

class  NSTrigger
 NSTrigger handles all the non-input as well as Legacy (Quake, GoldSource) style trigger behaviour. More...
 

Macros

#define CENVGLOBAL_CVAR   "env_global_data"
 

Enumerations

enum  globalstate_t { GLOBAL_OFF , GLOBAL_ON , GLOBAL_DEAD }
 States for env_global data. More...
 
enum  triggermode_t { TRIG_OFF , TRIG_ON , TRIG_TOGGLE }
 The type of trigger activation. More...
 

Variables

 enumflags
 

Macro Definition Documentation

◆ CENVGLOBAL_CVAR

#define CENVGLOBAL_CVAR   "env_global_data"

Enumeration Type Documentation

◆ globalstate_t

States for env_global data.

Enumerator
GLOBAL_OFF 

env_global data in question is set to 'off'.

GLOBAL_ON 

env_global data in question is set to 'on'.

GLOBAL_DEAD 

env_global data in question is dead.

◆ triggermode_t

The type of trigger activation.

Used by trigger_auto and trigger_relay to specifically trigger states. TRIG_TOGGLE is the safe option, as it'll cause something to happen either way. The way an entity responds to the described state is up to how it is programmed. Many entities do not react to a change in state at all.

Enumerator
TRIG_OFF 

Trigger the target 'off', for doors that may tell them to close.

TRIG_ON 

Trigger the target 'on', for doors that may tell them to open.

TRIG_TOGGLE 

Trigger the target the opposite to whatever they're currently in.

Variable Documentation

◆ enumflags

enumflags
Initial value:
{
TOUCHFILTER_CLIENTS,
TOUCHFILTER_NPCS,
TOUCHFILTER_PUSHABLE,
TOUCHFILTER_PHYSICS,
TOUCHFILTER_FRIENDLIES,
TOUCHFILTER_CLIENTSINVEHICLES,
TOUCHFILTER_EVERYTHING,
TOUCHFILTER_PADDING1,
TOUCHFILTER_PADDING2,
TOUCHFILTER_CLIENTSNOTINVEHICLES,
TOUCHFILTER_DEBRIS,
TOUCHFILTER_NPCSINVEHICLES,
TOUCHFILTER_NOBOTS
}