DayZ 1.24
|
Go to the source code of this file.
Classes | |
class | HandEventBase |
Abstracted event, not to be used, only inherited. More... | |
class | HandEventRemove |
class | HandEventSwap |
class | HandEventReplaceWithNewBase |
class | HandEventDestroyAndReplaceWithNew |
events
identifier for events mainly for rpc purposes
Definition at line 6 of file Hand_Events.c.
Definition at line 27 of file Hand_Events.c.
Definition at line 90 of file Hand_Events.c.
bool CanPerformEvent | ( | ) |
Definition at line 102 of file Hand_Events.c.
bool CanPerformEventEx | ( | InventoryValidation | validation | ) |
bool CheckRequest | ( | ) |
Definition at line 91 of file Hand_Events.c.
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.
References HandEventBase::CheckRequest().
bool CheckRequestSrc | ( | ) |
Definition at line 104 of file Hand_Events.c.
Referenced by PlayerCheckRequestSrc().
void ClearInventoryReservation | ( | ) |
Definition at line 182 of file Hand_Events.c.
References HandEventBase::GetDst(), and m_Player.
Referenced by GameInventory::ClearInventoryReservationEx().
|
static |
Definition at line 133 of file Hand_Events.c.
References Error(), HandEventFactory(), OptionalLocationReadFromContext(), and HandEventBase::ReadFromContext().
string DumpToString | ( | ) |
Definition at line 165 of file Hand_Events.c.
References InventoryLocation::DumpToStringNullSafe(), GetEventID(), m_Player, and m_Src.
Referenced by HandEventBase::AcquireInventoryJunctureFromServer(), and DbgPrintTargetDump().
int GetAnimationID | ( | ) |
InventoryLocation GetDst | ( | ) |
Definition at line 88 of file Hand_Events.c.
Referenced by HandEventBase::AcquireInventoryJunctureFromServer(), HandEventBase::CanPerformEvent(), HandEventRemove::CanPerformEventEx(), HandEventBase::CheckRequest(), and HandEventBase::DumpToString().
HandEventID GetEventID | ( | ) |
Definition at line 53 of file Hand_Events.c.
References m_EventID.
Referenced by HandEventBase::CanPerformEvent(), HandEventSwap::CanPerformEvent(), HandEventBase::CanPerformEventEx(), HandEventBase::CheckRequest(), HandEventSwap::CheckRequest(), HandEventBase::CheckRequestSrc(), DumpToString(), and HandEventBase::DumpToString().
EntityAI GetSecondSrcEntity | ( | ) |
Definition at line 87 of file Hand_Events.c.
InventoryLocation GetSrc | ( | ) |
Definition at line 80 of file Hand_Events.c.
References m_Src.
Referenced by HandEventBase::AcquireInventoryJunctureFromServer(), HandEventBase::CanPerformEvent(), HandEventBase::CanPerformEventEx(), HandEventBase::CheckRequest(), HandEventBase::CheckRequestSrc(), and HandEventBase::DumpToString().
EntityAI GetSrcEntity | ( | ) |
Definition at line 81 of file Hand_Events.c.
References m_Src.
Referenced by HandEventRemove::CanPerformEventEx(), HandEventSwap::CheckRequest(), HandEventRemove::CheckRequestEx(), HandEventBase::GetDst(), and HandEventRemove::HandEventThrow().
HandEventBase HandAnimEventFactory | ( | WeaponEvents | type, |
Man | p = null, | ||
InventoryLocation | src = null ) |
Definition at line 737 of file Hand_Events.c.
Referenced by HandleInventory().
void HandEventBase | ( | Man | p = null, |
InventoryLocation | src = null ) |
Definition at line 52 of file Hand_Events.c.
References Class::CastTo(), m_Player, and m_Src.
|
static |
Definition at line 107 of file Hand_Events.c.
References Error(), HandEventBase::HandAnimEventChanged(), HandEventBase::HandEventCreated(), HandEventBase::HandEventDestroy(), HandEventBase::HandEventDestroyed(), HandEventBase::HandEventHumanCommandActionAborted(), HandEventBase::HandEventHumanCommandActionFinished(), HandEventBase::HandEventMoveTo(), HandEventBase::HandEventReplaced(), HandEventBase::HandEventSwap(), and HandEventBase::HandEventTake().
Referenced by CreateHandEventFromContext().
bool IsAuthoritative | ( | ) |
Definition at line 55 of file Hand_Events.c.
References m_Player.
Referenced by HandEventRemove::CheckRequestEx().
bool IsOwner | ( | ) |
Definition at line 60 of file Hand_Events.c.
References m_Player.
bool IsProxy | ( | ) |
Definition at line 65 of file Hand_Events.c.
References m_Player.
bool IsServerSideOnly | ( | ) |
Definition at line 105 of file Hand_Events.c.
void ReadFromContext | ( | ParamsReadContext | ctx | ) |
Definition at line 70 of file Hand_Events.c.
bool ReserveInventory | ( | ) |
Definition at line 174 of file Hand_Events.c.
References GameInventory::c_InventoryReservationTimeoutShortMS, HandEventBase::GetDst(), and m_Player.
void WriteToContext | ( | ParamsWriteContext | ctx | ) |
Definition at line 72 of file Hand_Events.c.
References m_AnimationID, m_EventID, m_Player, m_Src, and OptionalLocationWriteToContext().
@ ERROR |
Definition at line 32 of file Hand_Events.c.
JUNCTURE_ACQUIRED |
Definition at line 30 of file Hand_Events.c.
JUNCTURE_DENIED |
Definition at line 31 of file Hand_Events.c.
JUNCTURE_NOT_REQUIRED |
Definition at line 29 of file Hand_Events.c.
int m_AnimationID = -1 |
Definition at line 41 of file Hand_Events.c.
Referenced by GetAnimationID(), and WriteToContext().
m_EventID = 0 |
Referenced by GetEventID(), HandEventBase::HandAnimEventChanged(), HandEventBase::HandEvengReplaceWithNewBase(), HandEventBase::HandEventCreated(), HandEventBase::HandEventDestroy(), HandEventReplaceWithNewBase::HandEventDestroyAndReplaceWithNew(), HandEventDestroyAndReplaceWithNew::HandEventDestroyAndReplaceWithNewElsewhere(), HandEventBase::HandEventDestroyed(), HandEventReplaceWithNewBase::HandEventDestroyElsewhereAndReplaceWithNewInHands(), HandEventRemove::HandEventDrop(), HandEventSwap::HandEventForceSwap(), HandEventBase::HandEventHumanCommandActionAborted(), HandEventBase::HandEventHumanCommandActionFinished(), HandEventBase::HandEventMoveTo(), HandEventBase::HandEventReplaced(), HandEventBase::HandEventSwap(), HandEventBase::HandEventTake(), HandEventRemove::HandEventThrow(), and WriteToContext().
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.
bool m_IsRemote |
Definition at line 50 of file Hand_Events.c.
m_Player |
Definition at line 42 of file Hand_Events.c.
Referenced by _GetSelectedActions(), ActionManagerBase(), ActionPossibilityCheck(), ActionManagerClient::ActionStart(), Activate(), VomitStuffedMdfr::ActivateCondition(), BleedingSourcesManagerBase::AddBleedingSource(), AddModifier(), AfterStoreLoad(), BleedingSource(), HandGuardBase::BotGuardHasItemInHands(), PluginBase::CalcTemperatureFromTemperatureSource(), CalculateEyeAcco(), CalculateEyeAccoTarget(), CanFight(), ActionManagerClient::CanPerformActionFromInventory(), ActionManagerClient::CanPerformActionFromQuickbar(), HandEventBase::CanPerformEvent(), HandEventSwap::CanPerformEvent(), HandEventBase::CanPerformEventEx(), HandEventRemove::CanPerformEventEx(), CanPlayEmote(), ActionManagerClient::CanSetActionFromInventory(), Catching(), ChainedDropAndKillPlayerLambda(), CheckAllowUpdate(), HandEventBase::CheckAndExecuteForceStandUp(), Managed::CheckBlood(), CheckEmoteLockedState(), Managed::CheckHealth(), ScriptedWidgetEventHandler::CheckRefresherFlagVisibility(), HandEventBase::CheckRequest(), HandEventSwap::CheckRequest(), HandEventRemove::CheckRequestEx(), HandEventBase::CheckRequestSrc(), CheckValue(), ClearInventoryReservation(), HandEventBase::ClearInventoryReservation(), CommitSuicide(), ConstructData(), CopyOldPropertiesToNew(), CreateBleedingEffect(), CreateEmoteCallback(), CreateParticle(), CrossHairSelector(), DamageHands(), DayZPlayerImplementFallDamage(), Deactivate(), DetermineEmoteData(), InjurySoundHandlerBase::DetermineInjuryZone(), EmoteBase::DetermineOverride(), DigestAgents(), MessageReceiverBase::DisplayElementBase(), DisplayState(), PluginBase::DrawDebugs(), DumpToString(), HandEventBase::DumpToString(), EmoteBase::EmoteCondition(), EmoteManager(), EmoteStartOverride(), End(), EndSurrenderRequest(), EvaluateFinisherAttack(), EvaluateHit_Common(), EvaluateHit_NonAlignableObjects(), EvaluateHit_Player(), Execute(), ActionManagerClient::FindActionItem(), ActionManagerClient::FindContextualUserActions(), FloatingCrossHair(), GatherSurfaces(), ScriptedWidgetEventHandler::GetActionManager(), GetActionManager(), ScriptedWidgetEventHandler::GetActions(), GetAttackTypeByWeaponAttachments(), GetAttackTypeFromInputs(), ScriptedWidgetEventHandler::GetCrosshairPosition(), WetMdfr::GetDebugText(), HeatComfortMdfr::GetDebugText(), UnconsciousnessMdfr::GetDebugText(), HeatComfortMdfr::GetDebugTextSimple(), HandEventBase::GetDst(), ScriptedWidgetEventHandler::GetEntityInHands(), BleedingSourcesManagerBase::GetMostSignificantBleedingSource(), GetOverrideLevel(), GetPlayer(), ItemOptics::GetPlayer(), ScriptedWidgetEventHandler::GetPlayer(), GetPositionRandomized(), GetPositionReal(), BloodRegenMdfr::GetRegenModifierEnergy(), BloodRegenMdfr::GetRegenModifierWater(), GetZone(), HandGuardBase::GuardCondition(), HandEventBase(), HandGuardBase::HandGuardCanForceSwap(), HandGuardBase::HandGuardCanMove(), HandGuardBase::HandGuardCanSwap(), HandGuardBase::HandGuardHasDestroyedItemInHands(), HandGuardBase::HandGuardHasItemInEvent(), HandGuardBase::HandGuardHasItemInHands(), HandGuardBase::HandGuardHasRoomForItem(), HandGuardBase::HandGuardInstantForceSwap(), HandGuardBase::HandGuardIsSameItemInHands(), HandleComboHit(), HandleFallDamage(), HandleFightLogic(), HandleHitEvent(), HandleInitialFirearmMelee(), HandleInitialMeleeErc(), HandleProneKick(), HandleSprintAttack(), HandGuardBase::HandSelectAnimationOfForceSwapInHandsEvent(), HandGuardBase::HandSelectAnimationOfMoveFromHandsEvent(), ActionManagerClient::HasHandInventoryReservation(), HideItemInHands(), Init(), PlayerSoundManagerBase::Init(), Managed::Init(), Init(), HumanCommandActionCallback::Init(), InitBase(), InitEx(), InjectDamageSystemValues(), InjuryAnimationHandler(), ActionManagerClient::InputsUpdate(), ActionManagerServer::Interrupt(), InterruptWaterCheck(), IsAuthoritative(), SymptomBase::IsContaminationActive(), IsOwner(), IsProxy(), IsShortDistance(), KillPlayer(), LogSuicide(), MapNavigationBehaviour(), ModifiersManager(), MoveEquipToExistingItemAndDestroyOldRootLambda(), NotifiersManager(), OnActionEnd(), MorphineMdfr::OnActivate(), PainKillersMdfr::OnActivate(), SymptomBase::OnAnimationFinish(), SymptomBase::OnAnimationStart(), EmoteBase::OnBeforeStandardCallbackCreated(), EmoteBase::OnCallbackEnd(), MorphineMdfr::OnDeactivate(), PainKillersMdfr::OnDeactivate(), OnEmoteEnd(), PlayerSoundEventBase::OnEnd(), HumanCommandActionCallback::OnFinish(), SymptomBase::OnGetActivatedClient(), SymptomBase::OnGetActivatedServer(), SymptomBase::OnGetDeactivatedClient(), SymptomBase::OnGetDeactivatedServer(), OnInputUserDataProcess(), ActionManagerServer::OnInputUserDataProcess(), BleedingSourcesManagerBase::OnStoreSave(), ReplaceWithNewReciveCargoLambda::OnSuccess(), ChainedDropAndRestrainLambda::OnSuccess(), TurnItemIntoItemLambda::OnSuccess(), OpenAndSwitchLambda::OnSuccess(), BleedingSourcesManagerBase::OnTick(), OnTick(), PoisoningMdfr::OnTick(), CholeraMdfr::OnTick(), SalmonellaMdfr::OnTick(), PainKillersMdfr::OnTick(), OnUndergroundPresenceUpdate(), PluginBase::OnUpdate(), OnUpdateServer(), BleedingSourcesManagerBase::OnVariablesSynchronized(), HeadGear_Base::OnWasAttached(), ActionManagerClient::PerformActionFromInventory(), ActionManagerClient::PerformActionFromQuickbar(), ActionManagerClient::PerformActionStart(), SmptAnimMetaBase::Play(), Play(), DrowningMdfr::PlayDrowningSound(), PlayEmote(), PlayerLightManager(), PluginBase::PlayerList(), PlayerSoundEventHandler(), PlayerStomach(), PlayRequestEx(), PlaySound(), InjurySoundHandlerBase::PlaySound(), PlaySurrenderInOut(), ActionManagerClient::ProcessActionInputEnd(), ActionManagerClient::ProcessActionRequestEnd(), ProcessEyeAcco(), BleedingSourcesManagerBase::ProcessHit(), ProcessNutrients(), ProcessSound(), PluginBase::ProcessUniversalTemperatureSources(), ScriptedWidgetEventHandler::ProjectedCrosshair(), Pulling(), RemotePlayerStatDebug(), BleedingSourcesManagerBase::RemoveAnyBleedingSource(), BleedingSourcesManagerBase::RemoveBleedingSource(), PluginBase::RequestUniversalTemperatureSources(), ReserveInventory(), HandEventBase::ReserveInventory(), SelectCrossHair(), SelectEvent(), SendEvent(), Managed::SendInitValues(), SendRPC(), SendValue(), Managed::SendValue(), ServerRequestEmoteCancel(), ActionManagerClient::SetActionFromInventory(), ScriptedWidgetEventHandler::SetActionWidget(), BleedingSourcesManagerBase::SetDiag(), SetEmoteLockState(), ScriptedWidgetEventHandler::SetItemDesc(), Trigger::SetParentOwner(), ItemOptics::SetPlayer(), SetUndergroundPresence(), ScriptedWidgetEventHandler::SetWeaponModeAndZeroing(), ShowItemInHands(), SpookyTriggerEventsHandler(), ActionManagerServer::StartDeliveredAction(), StartSourceBleedingIndication(), StopSourceBleedingIndication(), Synchronize(), TakeFireplaceFromBarrelLambda(), TakeFireplaceFromIndoorLambda(), TakeOvenFromIndoorLambda(), Tick(), Tick(), Managed::TransferValues(), UndergroundHandlerClient(), Update(), InjurySoundHandlerBase::Update(), PlayerSoundManagerBase::Update(), StaminaSoundHandlerBase::Update(), ScriptedWidgetEventHandler::Update(), Update(), SmptAnimMetaADD::Update(), ActionManagerClient::Update(), ActionManagerServer::Update(), UpdatePlayerStatsValues(), UpdatePossibleActions(), PluginBase::UpdateStatWidget(), VirtualHud(), WriteToContext(), ~BleedingSource(), BleedingSourcesManagerBase::~BleedingSourcesManagerServer(), HeadGear_Base::~BurlapSackCover(), and SmptAnimMetaBase::~SmptAnimMetaFB().
ref InventoryLocation m_Src |
Definition at line 43 of file Hand_Events.c.
Referenced by HandEventBase::AcquireInventoryJunctureFromServer(), HandEventSwap::CanPerformEvent(), HandEventBase::CheckAndExecuteForceStandUp(), HandEventBase::CheckRequest(), HandEventSwap::CheckRequest(), DumpToString(), HandEventBase::DumpToString(), GetSrc(), GetSrcEntity(), HandEventBase(), HandStartAction::HandTakingAnimated_Show(), HandStartAction::OnAbort(), OnEntry(), HandStartAction::OnEntry(), HandStartAction::OnExit(), OnUpdate(), and WriteToContext().