DIFF

class HandEventBaseSource

Constructors 1

void HandEventBase(Man p = null, InventoryLocation src = null)
References Class.CastTo(), m_Player, and m_Src

Members 6

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.

Methods 25

bool IsAuthoritative()
bool IsOwner()
bool IsProxy()
EntityAI GetSecondSrcEntity()
bool AcquireInventoryJunctureFromServer(notnull Man player)
bool CheckRequest()
Referenced by CheckRequestEx()
bool CanPerformEvent()

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

Referenced by CanPerformEventEx()
bool CheckRequestSrc()