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...
 

Enumerations

enum  nsweapon_state_t { WEAPONSTATE_IDLE , WEAPONSTATE_RELOAD_START , WEAPONSTATE_RELOAD , WEAPONSTATE_RELOAD_END }
 
enum  nsweapon_event_t { WEPEVENT_FIRED , WEPEVENT_RELOADED }
 

Functions

string weaponType (string weaponDef)
 
int weaponStartAmmo (string weaponDef)
 
int weaponMaxAmmo (string weaponDef)
 
bool weaponIsSemiAuto (string weaponDef)
 
string weaponInventoryType (string weaponDef)
 
float weaponFireTime (string weaponDef)
 
int weaponClipSize (string weaponDef)
 
string weaponClass (string weaponDef)
 
bool isWeaponClipOnly (string weaponDef)
 
bool isWeaponDetonationTimed (string weaponDef)
 

Variables

typedef enumflags
 

Enumeration Type Documentation

◆ nsweapon_event_t

Enumerator
WEPEVENT_FIRED 
WEPEVENT_RELOADED 

◆ nsweapon_state_t

Enumerator
WEAPONSTATE_IDLE 
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_X,
WEAPONFL_CHANGED_VELOCITY_Y,
WEAPONFL_CHANGED_VELOCITY_Z,
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
} nsweapon_changed_t