Data Structures | |
class | EmoteCB |
class | EmoteLauncher |
class | SurrenderData |
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(), PlayEmote(), and SendEmoteRequestSync().
References GetGame(), and MENU_INVENTORY.
Referenced by SendEmoteRequestSync().
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 void ClearSurrenderState | ( | ) |
clears surrender state only
References IsEmotePlaying(), m_IsSurrendered, m_Player, and SetEmoteLockState().
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 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_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 CALLBACK_CMD_INVALID, EmoteConstants::ID_EMOTE_DANCE, m_Callback, m_CurrentGestureID, m_DeferredEmoteExecution, and m_MenuEmote.
Referenced by SendEmoteRequestSync(), 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 CALLBACK_CMD_INVALID, m_Callback, m_DeferredEmoteExecution, and m_MenuEmote.
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(), ClearSurrenderState(), ForceSurrenderState(), ManBase::IsInFBEmoteState(), ManBase::OnQuickBarSingleUse(), and SendEmoteRequestSync().
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 | ( | ) |
References EmoteConstants::ID_EMOTE_SURRENDER, DayZPlayer::IsShootingFromCamera(), m_bEmoteIsPlaying, m_bEmoteIsRequestPending, m_CurrentGestureID, m_GestureInterruptInput, m_IsSurrendered, m_Player, m_PlayerDies, DayZPlayer::OverrideShootFromCamera(), SetEmoteLockState(), and ShowItemInHands().
Referenced by PlaySurrenderInOut(), and Update().
bool OnInputUserDataProcess | ( | int | userDataType, |
ParamsReadContext | ctx | ||
) |
References CALLBACK_CMD_INSTACANCEL, CanPlayEmote(), EmoteLauncher::FORCE_NONE, INPUT_UDT_GESTURE, m_bEmoteIsRequestPending, m_Player, m_RPSOutcome, Serializer::Read(), DayZPlayerSyncJunctures::SJ_GESTURE_REQUEST, and Serializer::Write().
Referenced by ManBase::OnInputUserDataProcess(), and DayZPlayer::OnInputUserDataReceived().
void OnSyncJuncture | ( | int | pJunctureID, |
ParamsReadContext | pCtx | ||
) |
protected void PickEmote | ( | int | gestureslot | ) |
Deprecated.
References CALLBACK_CMD_INVALID, CanPlayEmote(), CreateEmoteCallback(), DetermineEmoteData(), EmoteBase::EmoteStartOverride(), ErrorEx, EmoteBase::GetHideItemInHands(), HideItemInHands(), m_AdminLog, m_bEmoteIsPlaying, m_bEmoteIsRequestPending, m_CurrentGestureID, m_DeferredEmoteExecution, m_NameEmoteMap, m_Player, m_PreviousGestureID, EmoteBase::OnBeforeStandardCallbackCreated(), and SetEmoteLockState().
Referenced by SendEmoteRequestSync(), and Update().
void PlaySurrenderInOut | ( | bool | state | ) |
References CreateEmoteCallback(), GetGame(), EmoteConstants::ID_EMOTE_SURRENDER, m_Callback, m_CurrentGestureID, m_HandInventoryLocation, m_IsSurrendered, 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, EmoteLauncher::GetForced(), 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_bEmoteIsRequestPending, m_Callback, m_CurrentGestureID, m_DeferredEmoteExecution, m_MenuEmote, m_NameEmoteMap, m_RPSOutcome, PlayEmote(), Math::RandomInt(), ScriptInputUserData::Send(), SetEmoteLockState(), and Serializer::Write().
Referenced by Update().
void ServerRequestEmoteCancel | ( | ) |
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 ClearSurrenderState(), ForceSurrenderState(), OnEmoteEnd(), PlayEmote(), SendEmoteRequestSync(), and Update().
void SetGesture | ( | int | id | ) |
References m_GestureID.
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, ClearSurrenderState(), CommitSuicide(), CreateEmoteCBFromMenu(), DetermineGestureIndex(), EndCallbackCommand(), EmoteLauncher::FORCE_NONE, EmoteLauncher::GetForced(), GetGame(), EmoteLauncher::GetID(), CGame::GetUIManager(), EmoteConstants::ID_EMOTE_RPS, EmoteConstants::ID_EMOTE_RPS_P, EmoteConstants::ID_EMOTE_RPS_R, EmoteConstants::ID_EMOTE_RPS_S, EmoteConstants::ID_EMOTE_SUICIDE, EmoteConstants::ID_EMOTE_THUMB, EmoteConstants::ID_EMOTE_THUMBDOWN, InterruptCallbackCommand(), InterruptGestureCheck(), InterruptWaterCheck(), HumanInputController::IsContinuousUseStart(), UIManager::IsMenuOpen(), DayZPlayer::IsRestrained(), HumanInputController::IsSingleUse(), HumanInputController::IsWeaponRaised(), m_bEmoteIsPlaying, m_bEmoteIsRequestPending, m_Callback, m_CancelEmote, m_CurrentGestureID, m_DeferredEmoteExecution, 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, OnEmoteEnd(), PlayEmote(), PlaySurrenderInOut(), SendEmoteRequestSync(), and SetEmoteLockState().
void ~EmoteManager | ( | ) |
References m_ReservationTimer, and Timer::Stop().
protected const int CALLBACK_CMD_END = -2 |
Referenced by CanPlayEmote(), SendEmoteRequestSync(), and Update().
protected const int CALLBACK_CMD_GESTURE_INTERRUPT = -3 |
Referenced by CanPlayEmote(), SendEmoteRequestSync(), 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 EmoteManager(), EndCallbackCommand(), InterruptCallbackCommand(), PlayEmote(), and Update().
PluginAdminLog m_AdminLog |
bool m_bEmoteIsPlaying |
Referenced by CreateEmoteCallback(), IsEmotePlaying(), OnEmoteEnd(), PlayEmote(), and Update().
bool m_bEmoteIsRequestPending |
Referenced by IsEmotePlaying(), OnEmoteEnd(), OnInputUserDataProcess(), PlayEmote(), SendEmoteRequestSync(), and Update().
EmoteCB m_Callback |
Referenced by CommitSuicide(), CreateEmoteCallback(), EndCallbackCommand(), HideItemInHands(), InterruptCallbackCommand(), InterruptGestureCheck(), OnSyncJuncture(), ScriptedWidgetEventHandler::Play(), PlaySurrenderInOut(), SendEmoteRequestSync(), 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 |
Referenced by EndCallbackCommand(), OnCallbackEnd(), OnEmoteEnd(), OnSyncJuncture(), PlayEmote(), PlaySurrenderInOut(), SendEmoteRequestSync(), and Update().
protected int m_DeferredEmoteExecution |
Referenced by EmoteManager(), EndCallbackCommand(), InterruptCallbackCommand(), OnSyncJuncture(), PlayEmote(), SendEmoteRequestSync(), 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 |
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 |
protected bool m_MouseButtonPressed |
Referenced by CanPlayEmote(), ConstructData(), GetNameEmoteMap(), OnCallbackEnd(), OnSyncJuncture(), PlayEmote(), and SendEmoteRequestSync().
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(), and Update().