Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
events.c File Reference

Go to the source code of this file.

Data Structures

class  WeaponEventAnimation
class  WeaponEventBase
 signalize mechanism manipulation More...

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

Functions

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

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 

Definition at line 5 of file events.c.

Function Documentation

◆ CreateWeaponEventFromContext()

WeaponEventBase CreateWeaponEventFromContext ( ParamsReadContext ctx)

◆ WeaponAnimEventFactory()

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

creates animation system events

Definition at line 251 of file events.c.

Referenced by HandleWeaponEvents(), and WeaponEventFactory().

◆ WeaponEventFactory()

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

creates weapon fsm events

Definition at line 223 of file events.c.

References WeaponAnimEventFactory().

Referenced by CreateWeaponEventFromContext().