Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
hand_events.c File Reference

Go to the source code of this file.

Data Structures

class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventRemove
 
class  HandEventRemove
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventSwap
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventReplaceWithNewBase
 
class  HandEventDestroyAndReplaceWithNew
 
class  HandEventReplaceWithNewBase
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 
class  HandEventBase
 Abstracted event, not to be used, only inherited. More...
 

Variables

 JUNCTURE_NOT_REQUIRED
 
 JUNCTURE_ACQUIRED
 
 JUNCTURE_DENIED
 
 ERROR
 
enum  HandEventID {
  UNKNOWN, TAKE, MOVETO, DROP,
  THROW, SWAP, FORCESWAP, DESTROY,
  CREATED, DESTROYED, REPLACE, REPLACE2,
  REPLACE3, REPLACED, HUMANCOMMAND_ACTION_FINISHED, HUMANCOMMAND_ACTION_ABORTED,
  ANIMEVENT_CHANGE_HIDE
}
 events More...
 
enum  JunctureRequestResult
 
 m_EventID = 0
 
int m_AnimationID = -1
 
DayZPlayer m_Player
 
ref InventoryLocation m_Src
 
bool m_IsJuncture
 
bool m_IsRemote
 
void HandEventBase (Man p=null, InventoryLocation src=null)
 
HandEventID GetEventID ()
 
bool IsAuthoritative ()
 
bool IsOwner ()
 
bool IsProxy ()
 
void ReadFromContext (ParamsReadContext ctx)
 
void WriteToContext (ParamsWriteContext ctx)
 
InventoryLocation GetSrc ()
 
EntityAI GetSrcEntity ()
 
EntityAI GetSecondSrcEntity ()
 
InventoryLocation GetDst ()
 
int GetAnimationID ()
 
bool AcquireInventoryJunctureFromServer (notnull Man player)
 
bool CheckRequest ()
 
bool CheckRequestEx (InventoryValidation validation)
 
bool CanPerformEvent ()
 
bool CanPerformEventEx (InventoryValidation validation)
 
bool CheckRequestSrc ()
 
bool IsServerSideOnly ()
 
string DumpToString ()
 
bool ReserveInventory ()
 
void ClearInventoryReservation ()
 
HandEventBase HandAnimEventFactory (WeaponEvents type, Man p=null, InventoryLocation src=null)
 

Enumeration Type Documentation

◆ HandEventID

events

identifier for events mainly for rpc purposes

Enumerator
UNKNOWN 
TAKE 
MOVETO 
DROP 
THROW 
SWAP 

swapping from ground

FORCESWAP 
DESTROY 
CREATED 
DESTROYED 
REPLACE 
REPLACE2 
REPLACE3 
REPLACED 
HUMANCOMMAND_ACTION_FINISHED 
HUMANCOMMAND_ACTION_ABORTED 
ANIMEVENT_CHANGE_HIDE 

Definition at line 6 of file hand_events.c.

◆ JunctureRequestResult

Definition at line 27 of file hand_events.c.

Function Documentation

◆ AcquireInventoryJunctureFromServer()

bool AcquireInventoryJunctureFromServer ( notnull Man  player)

Definition at line 90 of file hand_events.c.

◆ CanPerformEvent()

bool CanPerformEvent ( )

Definition at line 102 of file hand_events.c.

◆ CanPerformEventEx()

bool CanPerformEventEx ( InventoryValidation  validation)

Definition at line 103 of file hand_events.c.

◆ CheckRequest()

bool CheckRequest ( )

Definition at line 91 of file hand_events.c.

◆ CheckRequestEx()

bool CheckRequestEx ( InventoryValidation  validation)

Do not check for action validity on remotes or when performing through juncture. Juncture locks guarentee the item is safe to interact with and the server has validated the command at this point. Checking at this point is both wasteful and can result in a failure which leads to desync

Definition at line 92 of file hand_events.c.

◆ CheckRequestSrc()

bool CheckRequestSrc ( )

Definition at line 104 of file hand_events.c.

◆ ClearInventoryReservation()

void ClearInventoryReservation ( )

Definition at line 184 of file hand_events.c.

◆ DumpToString()

string DumpToString ( )

Definition at line 165 of file hand_events.c.

◆ GetAnimationID()

int GetAnimationID ( )

Definition at line 89 of file hand_events.c.

◆ GetDst()

InventoryLocation GetDst ( )

Definition at line 88 of file hand_events.c.

◆ GetEventID()

HandEventID GetEventID ( )

Definition at line 53 of file hand_events.c.

◆ GetSecondSrcEntity()

EntityAI GetSecondSrcEntity ( )

Definition at line 87 of file hand_events.c.

◆ GetSrc()

InventoryLocation GetSrc ( )

Definition at line 80 of file hand_events.c.

◆ GetSrcEntity()

EntityAI GetSrcEntity ( )

Definition at line 81 of file hand_events.c.

◆ HandAnimEventFactory()

HandEventBase HandAnimEventFactory ( WeaponEvents  type,
Man  p = null,
InventoryLocation  src = null 
)

Definition at line 775 of file hand_events.c.

◆ HandEventBase()

void HandEventBase ( Man  p = null,
InventoryLocation  src = null 
)

Definition at line 52 of file hand_events.c.

◆ IsAuthoritative()

bool IsAuthoritative ( )

Definition at line 55 of file hand_events.c.

◆ IsOwner()

bool IsOwner ( )

Definition at line 60 of file hand_events.c.

◆ IsProxy()

bool IsProxy ( )

Definition at line 65 of file hand_events.c.

◆ IsServerSideOnly()

bool IsServerSideOnly ( )

Definition at line 105 of file hand_events.c.

◆ ReadFromContext()

void ReadFromContext ( ParamsReadContext  ctx)

Definition at line 70 of file hand_events.c.

◆ ReserveInventory()

bool ReserveInventory ( )

Definition at line 174 of file hand_events.c.

◆ WriteToContext()

void WriteToContext ( ParamsWriteContext  ctx)

Definition at line 72 of file hand_events.c.

Variable Documentation

◆ ERROR

@ ERROR

Definition at line 39 of file hand_events.c.

◆ JUNCTURE_ACQUIRED

JUNCTURE_ACQUIRED

Definition at line 37 of file hand_events.c.

◆ JUNCTURE_DENIED

JUNCTURE_DENIED

Definition at line 38 of file hand_events.c.

◆ JUNCTURE_NOT_REQUIRED

JUNCTURE_NOT_REQUIRED

Definition at line 36 of file hand_events.c.

◆ m_AnimationID

int m_AnimationID = -1

Definition at line 41 of file hand_events.c.

◆ m_EventID

m_EventID = 0

◆ m_IsJuncture

bool m_IsJuncture

For action guards. Although we can guarantee the item will exist for remotes and juncture, we can't guarantee the conditions will be the same as when the action was first performed. So therefore we only perform maximal checks on the Client and then Server but then do minimal checks on Juncture-Client and Juncture-Server and no checks on Remote-Client.

Definition at line 49 of file hand_events.c.

◆ m_IsRemote

bool m_IsRemote

Definition at line 50 of file hand_events.c.

◆ m_Player

m_Player

Definition at line 42 of file hand_events.c.

◆ m_Src

ref InventoryLocation m_Src

Definition at line 43 of file hand_events.c.