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

signalize mechanism manipulation More...

Private Member Functions

void WeaponEventBase (DayZPlayer p=NULL, Magazine m=NULL)
 
WeaponEventID GetEventID ()
 returns id from enum WeaponEventID
 
WeaponEvents GetAnimEvent ()
 returns animation event from anim engine,
 
int GetPackedType ()
 returns eventID in upper 16 bits and AnimEvent in lower 16 bits
 
void ReadFromContext (ParamsReadContext ctx)
 
void WriteToContext (ParamsWriteContext ctx)
 
string DumpToString ()
 
void WeaponEventMechanism (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventTrigger (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventTriggerToJam (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventTriggerAutoStart (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventTriggerAutoEnd (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventLoad1Bullet (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventContinuousLoadBulletStart (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventContinuousLoadBulletEnd (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventUnjam (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventAttachMagazine (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventUnjammingFailedTimeout (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventUnjammingTimeout (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventDetachMagazine (DayZPlayer p=NULL, Magazine m=NULL, InventoryLocation il=NULL)
 
override void ReadFromContext (ParamsReadContext ctx)
 
override void WriteToContext (ParamsWriteContext ctx)
 
void WeaponEventSwapMagazine (DayZPlayer p=NULL, Magazine m=NULL, InventoryLocation il=NULL)
 
override void ReadFromContext (ParamsReadContext ctx)
 
override void WriteToContext (ParamsWriteContext ctx)
 
void WeaponEventHumanCommandActionFinished (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventHumanCommandActionAborted (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventReloadTimeout (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventDryFireTimeout (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventSetNextMuzzleMode (DayZPlayer p=NULL, Magazine m=NULL)
 
void WeaponEventAnimation (DayZPlayer p=NULL, Magazine m=NULL)
 animation event from Human.WeaponEvents
 
override int GetAnimEvent ()
 

Private Attributes

int m_eventID
 
DayZPlayer m_player
 
Magazine m_magazine
 
ref InventoryLocation m_dst
 
WeaponEvents m_type
 

Detailed Description

signalize mechanism manipulation

represents event that triggers transition from state to state

triggered when dry fire timer expires

triggered when reload timer expires

triggered when animation action aborts

triggered when animation action finishes

event when user wants to swap magazine

event when user wants to detach magazine

triggered when unjamming failed timer expires

triggered when unjamming timer expires

event when user wants to attach magazine

event when user wants to unjam weapon

event when user wants to end loading of bullets

event when user wants to load N bullets

event when user wants to load 1 bullet

event when trigger pressed

Parameters
dstinventory location where the magazine will be stored

Constructor & Destructor Documentation

◆ WeaponEventBase()

void WeaponEventBase ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

References m_eventID, m_magazine, and m_player.

Member Function Documentation

◆ DumpToString()

◆ GetAnimEvent() [1/2]

WeaponEvents GetAnimEvent ( )
inlineprivate

returns animation event from anim engine,

See also
WeaponEvents

Referenced by GetPackedType().

◆ GetAnimEvent() [2/2]

override int GetAnimEvent ( )
inlineprivate

◆ GetEventID()

WeaponEventID GetEventID ( )
inlineprivate

returns id from enum WeaponEventID

References m_eventID.

Referenced by DumpToString(), OnEventForRemoteWeapon(), Weapon::ProcessWeaponEvent(), and Weapon::SyncEventToRemote().

◆ GetPackedType()

int GetPackedType ( )
inlineprivate

returns eventID in upper 16 bits and AnimEvent in lower 16 bits

References GetAnimEvent(), and m_eventID.

Referenced by WriteToContext().

◆ ReadFromContext() [1/3]

void ReadFromContext ( ParamsReadContext  ctx)
inlineprivate

◆ ReadFromContext() [2/3]

override void ReadFromContext ( ParamsReadContext  ctx)
inlineprivate

◆ ReadFromContext() [3/3]

override void ReadFromContext ( ParamsReadContext  ctx)
inlineprivate

◆ WeaponEventAnimation()

void WeaponEventAnimation ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

animation event from Human.WeaponEvents

◆ WeaponEventAttachMagazine()

void WeaponEventAttachMagazine ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventContinuousLoadBulletEnd()

void WeaponEventContinuousLoadBulletEnd ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventContinuousLoadBulletStart()

void WeaponEventContinuousLoadBulletStart ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventDetachMagazine()

void WeaponEventDetachMagazine ( DayZPlayer  p = NULL,
Magazine  m = NULL,
InventoryLocation  il = NULL 
)
inlineprivate

References m_dst.

◆ WeaponEventDryFireTimeout()

void WeaponEventDryFireTimeout ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventHumanCommandActionAborted()

void WeaponEventHumanCommandActionAborted ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventHumanCommandActionFinished()

void WeaponEventHumanCommandActionFinished ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventLoad1Bullet()

void WeaponEventLoad1Bullet ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventMechanism()

void WeaponEventMechanism ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventReloadTimeout()

void WeaponEventReloadTimeout ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventSetNextMuzzleMode()

void WeaponEventSetNextMuzzleMode ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventSwapMagazine()

void WeaponEventSwapMagazine ( DayZPlayer  p = NULL,
Magazine  m = NULL,
InventoryLocation  il = NULL 
)
inlineprivate

References m_dst.

◆ WeaponEventTrigger()

void WeaponEventTrigger ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventTriggerAutoEnd()

void WeaponEventTriggerAutoEnd ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventTriggerAutoStart()

void WeaponEventTriggerAutoStart ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventTriggerToJam()

void WeaponEventTriggerToJam ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventUnjam()

void WeaponEventUnjam ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventUnjammingFailedTimeout()

void WeaponEventUnjammingFailedTimeout ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WeaponEventUnjammingTimeout()

void WeaponEventUnjammingTimeout ( DayZPlayer  p = NULL,
Magazine  m = NULL 
)
inlineprivate

◆ WriteToContext() [1/3]

void WriteToContext ( ParamsWriteContext  ctx)
inlineprivate

◆ WriteToContext() [2/3]

override void WriteToContext ( ParamsWriteContext  ctx)
inlineprivate

◆ WriteToContext() [3/3]

override void WriteToContext ( ParamsWriteContext  ctx)
inlineprivate

Field Documentation

◆ m_dst

ref InventoryLocation m_dst
private

◆ m_eventID

int m_eventID
private

◆ m_magazine

◆ m_player

◆ m_type

WeaponEvents m_type
private

The documentation for this class was generated from the following file: