Data Structures | |
| class | EmoteCB | 
| class | EmoteLauncher | 
| class | SurrenderData | 
Functions | |
| void | EmoteManager (PlayerBase player) | 
| void | ~EmoteManager () | 
| void | ConstructData () | 
| void | SetGesture (int id) | 
| int | GetGesture () | 
| int | DetermineGestureIndex () | 
| bool | DetermineEmoteData (EmoteBase emote, out int callback_ID, out int stancemask, out bool is_fullbody) | 
| Also includes a stance check for FB callbacks.   | |
| void | SetPending (bool state) | 
| void | Update (float deltaT) | 
| void | OnEmoteEnd () | 
| bool | OnInputUserDataProcess (int userDataType, ParamsReadContext ctx) | 
| void | OnSyncJuncture (int pJunctureID, ParamsReadContext pCtx) | 
| void | OnCallbackEnd () | 
| void | AfterStoreLoad () | 
| bool | PlayEmote (int id) | 
| protected void | CreateEmoteCallback (typename callbacktype, int id, int mask, bool fullbody) | 
| protected void | HideItemInHands () | 
| protected void | ShowItemInHands () | 
| void | RequestCommitSuicide () | 
| protected void | CommitSuicide () | 
| void | KillPlayer () | 
| void | LogSuicide () | 
| void | CreateEmoteCBFromMenu (int id, bool interrupts_same=false) | 
| protected bool | ClearEmoteLauncher (bool forced=false) | 
| protected bool | ClearDeferredExecution () | 
| EmoteLauncher | GetEmoteLauncher () | 
| void | InterruptCallbackCommand () | 
| void | EndCallbackCommand () | 
| void | SendEmoteRequestSync (int id) | 
| protected void | SendEmoteRequestSyncEx (notnull EmoteLauncher launcher) | 
| To avoid mixing m_MenuEmote with exceptional sync commands.   | |
| bool | IsControllsLocked () | 
| bool | CanPlayEmote (int id) | 
| bool | CanPlayEmoteClientCheck (int id) | 
| void | PlaySurrenderInOut (bool state) | 
| void | SetEmoteLockState (bool state) | 
| void | CheckEmoteLockedState () | 
| void | EndSurrenderRequest (SurrenderData data=null) | 
| directly force-ends surrender state AND requests hard cancel   | |
| void | SetClientLoggingOut (bool state) | 
| protected void | ClearSurrenderState () | 
| Queues item deletion only, surrender state cleared from item event directly.   | |
| void | ForceSurrenderState (bool state) | 
| protected void | PostSurrenderRequestServer () | 
| server only   | |
| void | ServerRequestEmoteCancel () | 
| bool | InterruptGestureCheck () | 
| bool | InterruptWaterCheck () | 
| bool | IsEmotePlaying () | 
| map< int, ref EmoteBase > | GetNameEmoteMap () | 
| void | CreateBleedingEffect (int Callback_ID) | 
| protected void | PickEmote (int gestureslot) | 
| Deprecated.   | |
| void | End () | 
| called on surrender end request end   | |
| void | ChainedDropAndKillPlayerLambda (EntityAI old_item, string new_item_type, PlayerBase player) | 
| override void | Execute (HumanInventoryWithFSM fsm_to_notify=null) | 
| void AfterStoreLoad | ( | ) | 
References m_Player.
References CALLBACK_CMD_END, CALLBACK_CMD_GESTURE_INTERRUPT, CALLBACK_CMD_INSTACANCEL, Class::CastTo(), DetermineEmoteData(), EmoteBase::EmoteCondition(), DayZPlayer::GetDayZPlayerInventory(), DayZPlayer::GetThrowing(), DayZPlayer::GetWeaponManager(), EmoteConstants::ID_EMOTE_SURRENDER, HumanCommandMove::IsChangingStance(), DayZPlayer::IsClimbingLadder(), IsEmotePlaying(), DayZPlayer::IsFighting(), HumanCommandMove::IsOnBack(), DayZPlayer::IsRestrained(), WeaponManager::IsRunning(), DayZPlayer::IsSwimming(), DayZPlayerImplementThrowing::IsThrowingModeEnabled(), HumanInputController::IsWeaponRaised(), m_HIC, m_IsSurrendered, m_NameEmoteMap, and m_Player.
Referenced by OnInputUserDataProcess(), SendEmoteRequestSync(), and SendEmoteRequestSyncEx().
References GetGame(), and MENU_INVENTORY.
Referenced by SendEmoteRequestSync(), and SendEmoteRequestSyncEx().
| void ChainedDropAndKillPlayerLambda | ( | EntityAI | old_item, | 
| string | new_item_type, | ||
| PlayerBase | player | ||
| ) | 
References m_Player, and InventoryLocation::SetGround().
| void CheckEmoteLockedState | ( | ) | 
References m_EmoteLockState, m_HandInventoryLocation, and m_Player.
| protected bool ClearDeferredExecution | ( | ) | 
References CALLBACK_CMD_INVALID, and m_DeferredEmoteExecution.
Referenced by EndCallbackCommand(), InterruptCallbackCommand(), PlayEmote(), and Update().
References EmoteLauncher::IsStartGuaranteed(), and m_MenuEmote.
Referenced by CreateEmoteCBFromMenu(), EndCallbackCommand(), InterruptCallbackCommand(), PlayEmote(), SendEmoteRequestSyncEx(), and Update().
| protected void ClearSurrenderState | ( | ) | 
Queues item deletion only, surrender state cleared from item event directly.
References m_IsSurrendered, and m_Player.
Referenced by Update().
| protected void CommitSuicide | ( | ) | 
References ScriptCallQueue::Call(), CALL_CATEGORY_GAMEPLAY, EmoteConstants::EMOTE_SUICIDE_BLEED, EmoteConstants::EMOTE_SUICIDE_DEATH, EmoteConstants::EMOTE_SUICIDE_SIMULATION_END, CGame::GetCallQueue(), GetGame(), KillPlayer(), m_AdminLog, m_Callback, m_Player, and DayZPlayer::SetSuicide().
Referenced by RequestCommitSuicide(), and Update().
| void ConstructData | ( | ) | 
References EmoteConstructor::ConstructEmotes(), ErrorEx, UAInputAPI::GetInputByName(), GetUApi(), UAInput::ID(), m_EmoteClassArray, m_EmoteIDs, m_EmoteInputIDs, m_NameEmoteMap, and m_Player.
Referenced by EmoteManager().
References Class::CastTo(), m_bEmoteIsPlaying, m_Callback, EmoteCB::m_callbackID, EmoteCB::m_IsFullbody, m_LastMask, EmoteCB::m_Manager, m_Player, and EmoteCB::m_player.
Referenced by PlayEmote(), and PlaySurrenderInOut().
References ClearEmoteLauncher(), and m_MenuEmote.
Referenced by Update().
| bool DetermineEmoteData | ( | EmoteBase | emote, | 
| out int | callback_ID, | ||
| out int | stancemask, | ||
| out bool | is_fullbody | ||
| ) | 
Also includes a stance check for FB callbacks.
References EmoteBase::DetermineOverride(), EmoteBase::EmoteFBStanceCheck(), EmoteBase::GetAdditiveCallbackUID(), EmoteBase::GetFullbodyCallbackUID(), EmoteBase::GetStanceMaskAdditive(), EmoteBase::GetStanceMaskFullbody(), and m_Player.
Referenced by CanPlayEmote(), and PlayEmote().
| int DetermineGestureIndex | ( | ) | 
References GetUApi(), m_EmoteIDs, and m_EmoteInputIDs.
Referenced by Update().
| void EmoteManager | ( | PlayerBase | player | ) | 
References CALLBACK_CMD_INVALID, ConstructData(), GetGame(), GetPlugin(), m_AdminLog, m_controllsLocked, m_DeferredEmoteExecution, m_DeferredEmoteLauncherCleanup, m_DeferredGuaranteedEmoteId, m_DisconnectEmoteQueued, m_HandInventoryLocation, m_HIC, m_HumanSwimSettings, m_InterruptInputs, m_InventoryAccessLocked, m_ItemIsOn, m_Player, m_ReservationTimer, m_RPSOutcome, and InventoryLocation::SetHands().
Referenced by ManBase::Init().
| void End | ( | ) | 
called on surrender end request end
| void EndCallbackCommand | ( | ) | 
References ClearDeferredExecution(), ClearEmoteLauncher(), EmoteConstants::ID_EMOTE_DANCE, m_Callback, and m_CurrentGestureID.
Referenced by SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().
| void EndSurrenderRequest | ( | SurrenderData | data = null | ) | 
directly force-ends surrender state AND requests hard cancel
References m_IsSurrendered, and PostSurrenderRequestServer().
| override void Execute | ( | HumanInventoryWithFSM | fsm_to_notify = null | ) | 
| void ForceSurrenderState | ( | bool | state | ) | 
References IsEmotePlaying(), m_IsSurrendered, and SetEmoteLockState().
| EmoteLauncher GetEmoteLauncher | ( | ) | 
References m_MenuEmote.
| int GetGesture | ( | ) | 
References m_GestureID.
References m_NameEmoteMap.
| protected void HideItemInHands | ( | ) | 
References m_Callback, m_item, and m_Player.
Referenced by PlayEmote().
| void InterruptCallbackCommand | ( | ) | 
References ClearDeferredExecution(), ClearEmoteLauncher(), and m_Callback.
Referenced by Update().
| bool InterruptGestureCheck | ( | ) | 
References GetUApi(), m_Callback, m_InterruptInputDirect, m_InterruptInputs, m_InterruptInputsCount, and EmoteCB::m_IsFullbody.
Referenced by Update().
| bool InterruptWaterCheck | ( | ) | 
References DayZPlayer::GetCurrentWaterLevel(), SHumanCommandSwimSettings::m_fToCrouchLevel, SHumanCommandSwimSettings::m_fToErectLevel, m_HumanSwimSettings, and m_Player.
Referenced by Update().
| bool IsControllsLocked | ( | ) | 
References m_controllsLocked.
Referenced by ManBase::HeadingModel().
| bool IsEmotePlaying | ( | ) | 
References m_bEmoteIsPlaying, m_bEmoteIsRequestPending, and m_IsSurrendered.
Referenced by CanPlayEmote(), ForceSurrenderState(), ManBase::IsInFBEmoteState(), ManBase::OnQuickBarSingleUse(), PlayEmote(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().
| void KillPlayer | ( | ) | 
References GetGame(), and m_Player.
Referenced by CommitSuicide().
| void LogSuicide | ( | ) | 
References GetGame(), m_AdminLog, and m_Player.
| void OnCallbackEnd | ( | ) | 
References m_CurrentGestureID, m_NameEmoteMap, and EmoteBase::OnCallbackEnd().
| void OnEmoteEnd | ( | ) | 
| bool OnInputUserDataProcess | ( | int | userDataType, | 
| ParamsReadContext | ctx | ||
| ) | 
References CALLBACK_CMD_INSTACANCEL, CALLBACK_CMD_INVALID, CanPlayEmote(), EmoteLauncher::FORCE_NONE, INPUT_UDT_GESTURE, m_Player, m_RPSOutcome, Serializer::Read(), SetPending(), DayZPlayerSyncJunctures::SJ_GESTURE_REQUEST, and Serializer::Write().
Referenced by ManBase::OnInputUserDataProcess(), and DayZPlayer::OnInputUserDataReceived().
| void OnSyncJuncture | ( | int | pJunctureID, | 
| ParamsReadContext | pCtx | ||
| ) | 
References CALLBACK_CMD_INSTACANCEL, EmoteBase::CanBeCanceledNormally(), EmoteLauncher::FORCE_ALL, EmoteLauncher::FORCE_DIFFERENT, m_Callback, m_CancelEmote, m_CurrentGestureID, m_DeferredEmoteExecution, m_DeferredGuaranteedEmoteId, m_InstantCancelEmote, m_IsSurrendered, m_NameEmoteMap, and Serializer::Read().
| protected void PickEmote | ( | int | gestureslot | ) | 
Deprecated.
References CALLBACK_CMD_INVALID, ClearDeferredExecution(), ClearEmoteLauncher(), CreateEmoteCallback(), DetermineEmoteData(), EmoteBase::EmoteStartOverride(), ErrorEx, EmoteBase::GetHideItemInHands(), HideItemInHands(), IsEmotePlaying(), m_AdminLog, m_bEmoteIsPlaying, m_CurrentGestureID, m_DeferredGuaranteedEmoteId, m_NameEmoteMap, m_Player, m_PreviousGestureID, EmoteBase::OnBeforeStandardCallbackCreated(), SetEmoteLockState(), and SetPending().
Referenced by SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().
| void PlaySurrenderInOut | ( | bool | state | ) | 
References CreateEmoteCallback(), GetGame(), EmoteConstants::ID_EMOTE_SURRENDER, m_Callback, m_CurrentGestureID, m_HandInventoryLocation, m_Player, m_PreviousGestureID, OnEmoteEnd(), and UA_ANIM_EVENT.
Referenced by Update().
| protected void PostSurrenderRequestServer | ( | ) | 
server only
References CALLBACK_CMD_INSTACANCEL, EmoteLauncher::FORCE_ALL, GetGame(), m_Player, DayZPlayerSyncJunctures::SJ_GESTURE_REQUEST, and Serializer::Write().
Referenced by EndSurrenderRequest().
| void RequestCommitSuicide | ( | ) | 
References CommitSuicide(), and GetGame().
| void SendEmoteRequestSync | ( | int | id | ) | 
References CALLBACK_CMD_END, CALLBACK_CMD_GESTURE_INTERRUPT, EmoteBase::CanBeCanceledNormally(), CanPlayEmote(), CanPlayEmoteClientCheck(), ScriptInputUserData::CanStoreInputUserData(), EndCallbackCommand(), EmoteLauncher::FORCE_NONE, GetGame(), EmoteConstants::ID_EMOTE_RPS, EmoteConstants::ID_EMOTE_RPS_P, EmoteConstants::ID_EMOTE_RPS_R, EmoteConstants::ID_EMOTE_RPS_S, INPUT_UDT_GESTURE, IsEmotePlaying(), m_Callback, m_CurrentGestureID, m_DeferredEmoteExecution, m_NameEmoteMap, m_RPSOutcome, PlayEmote(), Math::RandomInt(), ScriptInputUserData::Send(), SetEmoteLockState(), SetPending(), and Serializer::Write().
Referenced by Update().
| protected void SendEmoteRequestSyncEx | ( | notnull EmoteLauncher | launcher | ) | 
To avoid mixing m_MenuEmote with exceptional sync commands.
References CALLBACK_CMD_END, CALLBACK_CMD_GESTURE_INTERRUPT, EmoteBase::CanBeCanceledNormally(), CanPlayEmote(), CanPlayEmoteClientCheck(), ScriptInputUserData::CanStoreInputUserData(), ClearEmoteLauncher(), EndCallbackCommand(), GetGame(), EmoteConstants::ID_EMOTE_RPS, EmoteConstants::ID_EMOTE_RPS_P, EmoteConstants::ID_EMOTE_RPS_R, EmoteConstants::ID_EMOTE_RPS_S, INPUT_UDT_GESTURE, IsEmotePlaying(), m_Callback, m_CurrentGestureID, m_DeferredEmoteExecution, m_MenuEmote, m_NameEmoteMap, m_RPSOutcome, PlayEmote(), Math::RandomInt(), ScriptInputUserData::Send(), SetEmoteLockState(), SetPending(), and Serializer::Write().
Referenced by Update().
| void ServerRequestEmoteCancel | ( | ) | 
| void SetClientLoggingOut | ( | bool | state | ) | 
References m_DeferredEmoteLauncherCleanup, m_DisconnectEmoteQueued, and m_MenuEmote.
| void SetEmoteLockState | ( | bool | state | ) | 
References GameInventory::c_InventoryReservationTimeoutMS, GetGame(), m_Callback, m_controllsLocked, m_EmoteLockState, m_HandInventoryLocation, m_InventoryAccessLocked, EmoteCB::m_IsFullbody, m_Player, MENU_INVENTORY, and InventoryLocation::SetHands().
Referenced by ForceSurrenderState(), OnEmoteEnd(), PlayEmote(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().
| void SetGesture | ( | int | id | ) | 
References m_GestureID.
| void SetPending | ( | bool | state | ) | 
References m_bEmoteIsRequestPending.
Referenced by OnEmoteEnd(), OnInputUserDataProcess(), PlayEmote(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().
| protected void ShowItemInHands | ( | ) | 
References m_item, and m_Player.
Referenced by OnEmoteEnd().
| void Update | ( | float | deltaT | ) | 
References CALLBACK_CMD_END, CALLBACK_CMD_GESTURE_INTERRUPT, CALLBACK_CMD_INSTACANCEL, CALLBACK_CMD_INVALID, ClearDeferredExecution(), ClearEmoteLauncher(), ClearSurrenderState(), CommitSuicide(), CreateEmoteCBFromMenu(), DetermineGestureIndex(), EndCallbackCommand(), EmoteLauncher::FORCE_DIFFERENT, EmoteLauncher::FORCE_NONE, EmoteLauncher::GetForced(), GetGame(), CGame::GetUIManager(), EmoteConstants::ID_EMOTE_RPS, EmoteConstants::ID_EMOTE_RPS_P, EmoteConstants::ID_EMOTE_RPS_R, EmoteConstants::ID_EMOTE_RPS_S, EmoteConstants::ID_EMOTE_SITA, EmoteConstants::ID_EMOTE_SUICIDE, EmoteConstants::ID_EMOTE_THUMB, EmoteConstants::ID_EMOTE_THUMBDOWN, InterruptCallbackCommand(), InterruptGestureCheck(), InterruptWaterCheck(), HumanInputController::IsContinuousUseStart(), CGame::IsDedicatedServer(), IsEmotePlaying(), UIManager::IsMenuOpen(), DayZPlayer::IsRestrained(), HumanInputController::IsSingleUse(), EmoteLauncher::IsStartGuaranteed(), HumanInputController::IsWeaponRaised(), m_bEmoteIsPlaying, m_bEmoteIsRequestPending, m_Callback, m_CancelEmote, m_CurrentGestureID, m_DeferredEmoteExecution, m_DeferredEmoteLauncherCleanup, m_DeferredGuaranteedEmoteId, m_DisconnectEmoteQueued, m_EmoteLockState, m_GestureInterruptInput, m_HIC, m_InstantCancelEmote, EmoteCB::m_IsFullbody, m_IsSurrendered, m_ItemToBeCreated, m_LastMask, m_MenuEmote, m_Player, m_RPSOutcome, MENU_GESTURES, MENU_INVENTORY, OnEmoteEnd(), PlayEmote(), PlaySurrenderInOut(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), SetEmoteLockState(), EmoteLauncher::SetForced(), SetPending(), EmoteLauncher::SetStartGuaranteed(), and EmoteLauncher::WasSynced().
| void ~EmoteManager | ( | ) | 
References m_ReservationTimer, and Timer::Stop().
| protected const int CALLBACK_CMD_END = -2 | 
Referenced by CanPlayEmote(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().
| protected const int CALLBACK_CMD_GESTURE_INTERRUPT = -3 | 
Referenced by CanPlayEmote(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), ServerRequestEmoteCancel(), and Update().
| protected const int CALLBACK_CMD_INSTACANCEL = -4 | 
Referenced by CanPlayEmote(), OnInputUserDataProcess(), OnSyncJuncture(), PostSurrenderRequestServer(), and Update().
| protected const int CALLBACK_CMD_INVALID = -1 | 
Referenced by ClearDeferredExecution(), EmoteManager(), OnInputUserDataProcess(), PlayEmote(), and Update().
| PluginAdminLog m_AdminLog | 
| bool m_bEmoteIsPlaying | 
Referenced by CreateEmoteCallback(), IsEmotePlaying(), OnEmoteEnd(), PlayEmote(), and Update().
| bool m_bEmoteIsRequestPending | 
Referenced by IsEmotePlaying(), SetPending(), and Update().
| EmoteCB m_Callback | 
Referenced by CommitSuicide(), CreateEmoteCallback(), EndCallbackCommand(), HideItemInHands(), InterruptCallbackCommand(), InterruptGestureCheck(), OnSyncJuncture(), ScriptedWidgetEventHandler::Play(), PlaySurrenderInOut(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), SetEmoteLockState(), ScriptedWidgetEventHandler::Stop(), and Update().
| bool m_CancelEmote | 
Referenced by OnSyncJuncture(), and Update().
| protected bool m_controllsLocked | 
Referenced by EmoteManager(), IsControllsLocked(), and SetEmoteLockState().
| protected int m_CurrentGestureID | 
| protected int m_DeferredEmoteExecution | 
Referenced by ClearDeferredExecution(), EmoteManager(), OnSyncJuncture(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().
| protected bool m_DeferredEmoteLauncherCleanup | 
Referenced by EmoteManager(), SetClientLoggingOut(), and Update().
| protected int m_DeferredGuaranteedEmoteId | 
Referenced by EmoteManager(), OnSyncJuncture(), PlayEmote(), and Update().
| protected bool m_DisconnectEmoteQueued | 
Referenced by EmoteManager(), SetClientLoggingOut(), and Update().
Referenced by ConstructData().
Referenced by ConstructData(), and DetermineGestureIndex().
Referenced by ConstructData(), and DetermineGestureIndex().
| protected bool m_EmoteLockState | 
Referenced by CheckEmoteLockedState(), SetEmoteLockState(), and Update().
| protected int m_GestureID | 
Referenced by GetGesture(), and SetGesture().
| bool m_GestureInterruptInput | 
Referenced by OnEmoteEnd(), and Update().
| ref InventoryLocation m_HandInventoryLocation | 
Referenced by CheckEmoteLockedState(), EmoteManager(), PlaySurrenderInOut(), and SetEmoteLockState().
| HumanInputController m_HIC | 
Referenced by CanPlayEmote(), EmoteManager(), and Update().
| protected SHumanCommandSwimSettings m_HumanSwimSettings | 
Referenced by EmoteManager(), and InterruptWaterCheck().
| bool m_InstantCancelEmote | 
Referenced by OnSyncJuncture(), and Update().
| ref array<UAIDWrapper> m_InterruptInputDirect | 
Referenced by InterruptGestureCheck().
Referenced by EmoteManager(), and InterruptGestureCheck().
| protected int m_InterruptInputsCount | 
Referenced by InterruptGestureCheck().
| protected bool m_InventoryAccessLocked | 
Referenced by EmoteManager(), and SetEmoteLockState().
| bool m_IsSurrendered | 
Referenced by CanPlayEmote(), ClearSurrenderState(), EndSurrenderRequest(), ForceSurrenderState(), IsEmotePlaying(), OnEmoteEnd(), OnSyncJuncture(), and Update().
| ItemBase m_item | 
Referenced by HideItemInHands(), and ShowItemInHands().
| protected bool m_ItemIsOn | 
Referenced by EmoteManager().
| protected bool m_ItemToHands | 
| protected int m_LastMask | 
Referenced by CreateEmoteCallback(), and Update().
| ref EmoteLauncher m_MenuEmote | 
Referenced by ClearEmoteLauncher(), CreateEmoteCBFromMenu(), GetEmoteLauncher(), SendEmoteRequestSyncEx(), SetClientLoggingOut(), and Update().
| protected bool m_MouseButtonPressed | 
| m_Player | 
| protected bool m_PlayerDies | 
Referenced by OnEmoteEnd().
| protected int m_PreviousGestureID | 
Referenced by PlayEmote(), and PlaySurrenderInOut().
| protected ref Timer m_ReservationTimer | 
Referenced by EmoteManager(), and ~EmoteManager().
| protected int m_RPSOutcome | 
Referenced by EmoteManager(), OnInputUserDataProcess(), SendEmoteRequestSync(), SendEmoteRequestSyncEx(), and Update().