PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Events.c File Reference

Data Structures

class  WeaponEventBase
 signalize mechanism manipulation More...
 
class  WeaponEventAnimation
 

Enumerations

enum  WeaponEventID {
  UNKNOWN , MECHANISM , TRIGGER , TRIGGER_JAM ,
  TRIGGER_AUTO_START , TRIGGER_AUTO_END , LOAD1_BULLET , CONTINUOUS_LOADBULLET_START ,
  CONTINUOUS_LOADBULLET_END , UNJAM , ATTACH_MAGAZINE , UNJAMMING_FAILED_TIMEOUT ,
  UNJAMMING_TIMEOUT , DETACH_MAGAZINE , SWAP_MAGAZINE , HUMANCOMMAND_ACTION_FINISHED ,
  HUMANCOMMAND_ACTION_ABORTED , RELOAD_TIMEOUT , DRY_FIRE_TIMEOUT , SET_NEXT_MUZZLE_MODE ,
  ANIMATION_EVENT
}
 identifier for events. mainly for rpc purposes More...
 

Functions

WeaponEventBase WeaponEventFactory (WeaponEventID id, int aetype, DayZPlayer p=NULL, Magazine m=NULL)
 creates weapon fsm events
 
WeaponEventBase WeaponAnimEventFactory (WeaponEvents type, DayZPlayer p=NULL, Magazine m=NULL)
 creates animation system events
 
WeaponEventBase CreateWeaponEventFromContext (ParamsReadContext ctx)
 

Enumeration Type Documentation

◆ WeaponEventID

identifier for events. mainly for rpc purposes

Enumerator
UNKNOWN 
MECHANISM 
TRIGGER 
TRIGGER_JAM 
TRIGGER_AUTO_START 
TRIGGER_AUTO_END 
LOAD1_BULLET 
CONTINUOUS_LOADBULLET_START 
CONTINUOUS_LOADBULLET_END 
UNJAM 
ATTACH_MAGAZINE 
UNJAMMING_FAILED_TIMEOUT 
UNJAMMING_TIMEOUT 
DETACH_MAGAZINE 
SWAP_MAGAZINE 
HUMANCOMMAND_ACTION_FINISHED 
HUMANCOMMAND_ACTION_ABORTED 
RELOAD_TIMEOUT 
DRY_FIRE_TIMEOUT 
SET_NEXT_MUZZLE_MODE 
ANIMATION_EVENT 

Function Documentation

◆ CreateWeaponEventFromContext()

◆ WeaponAnimEventFactory()

WeaponEventBase WeaponAnimEventFactory ( WeaponEvents  type,
DayZPlayer  p = NULL,
Magazine  m = NULL 
)

creates animation system events

Referenced by HandleWeaponEvents(), and WeaponEventFactory().

◆ WeaponEventFactory()

WeaponEventBase WeaponEventFactory ( WeaponEventID  id,
int  aetype,
DayZPlayer  p = NULL,
Magazine  m = NULL 
)

creates weapon fsm events

References WeaponAnimEventFactory().

Referenced by CreateWeaponEventFromContext().