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

Go to the source code of this file.

Classes

class  NSWeapon
 This entity class represents weapon based items. More...
 

Macros

#define CHAN_LOOP   5
 

Enumerations

enum  nsweapon_state_t {
  WEAPONSTATE_IDLE , WEAPONSTATE_COCK , WEAPONSTATE_CHARGING , WEAPONSTATE_FIRELOOP ,
  WEAPONSTATE_RELEASED , WEAPONSTATE_OVERHEATED , WEAPONSTATE_DRAW , WEAPONSTATE_RELOAD_START ,
  WEAPONSTATE_RELOAD , WEAPONSTATE_RELOAD_END
}
 
enum  nsweapon_event_t { WEPEVENT_FIRED , WEPEVENT_RELOADED }
 

Variables

typedef enumflags
 
string nsweapon_state_s []
 
NSWeapon m_nextWeapon
 
NSWeapon m_prevWeapon
 

Macro Definition Documentation

◆ CHAN_LOOP

#define CHAN_LOOP   5

Enumeration Type Documentation

◆ nsweapon_event_t

Enumerator
WEPEVENT_FIRED 
WEPEVENT_RELOADED 

◆ nsweapon_state_t

Enumerator
WEAPONSTATE_IDLE 
WEAPONSTATE_COCK 
WEAPONSTATE_CHARGING 
WEAPONSTATE_FIRELOOP 
WEAPONSTATE_RELEASED 
WEAPONSTATE_OVERHEATED 
WEAPONSTATE_DRAW 
WEAPONSTATE_RELOAD_START 
WEAPONSTATE_RELOAD 
WEAPONSTATE_RELOAD_END 

Variable Documentation

◆ enumflags

typedef enumflags
Initial value:
{
WEAPONFL_CHANGED_MODELINDEX,
WEAPONFL_CHANGED_ORIGIN,
WEAPONFL_CHANGED_ANGLES,
WEAPONFL_CHANGED_VELOCITY,
WEAPONFL_CHANGED_ANGULARVELOCITY,
WEAPONFL_CHANGED_SIZE,
WEAPONFL_CHANGED_FLAGS,
WEAPONFL_CHANGED_SOLID,
WEAPONFL_CHANGED_FRAME,
WEAPONFL_CHANGED_SKIN,
WEAPONFL_CHANGED_MOVETYPE,
WEAPONFL_CHANGED_EFFECTS,
WEAPONFL_CHANGED_BODY,
WEAPONFL_CHANGED_SCALE,
WEAPONFL_CHANGED_ENTITYDEF,
WEAPONFL_CHANGED_CLIP,
WEAPONFL_CHANGED_CHAIN,
WEAPONFL_CHANGED_STATE,
WEAPONFL_CHANGED_NEXTWEAPON,
WEAPONFL_CHANGED_PREVWEAPON,
} nsweapon_changed_t

◆ m_nextWeapon

NSWeapon m_nextWeapon

◆ m_prevWeapon

NSWeapon m_prevWeapon

◆ nsweapon_state_s

string nsweapon_state_s[]
Initial value:
=
{
"WEAPONSTATE_IDLE",
"WEAPONSTATE_RELOAD_START",
"WEAPONSTATE_RELOAD",
"WEAPONSTATE_RELOAD_END",
"WEAPONSTATE_CHARGING",
"WEAPONSTATE_FIRELOOP",
"WEAPONSTATE_RELEASED",
"WEAPONSTATE_OVERHEATED"
}