Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
emotemanager.c File Reference

Go to the source code of this file.

Classes

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)
void CreateEmoteCallback (typename callbacktype, int id, int mask, bool fullbody)
void HideItemInHands ()
void ShowItemInHands ()
void RequestCommitSuicide ()
void CommitSuicide ()
void KillPlayer ()
void LogSuicide ()
void CreateEmoteCBFromMenu (int id, bool interrupts_same=false)
bool ClearEmoteLauncher (bool forced=false)
bool ClearDeferredExecution ()
EmoteLauncher GetEmoteLauncher ()
void InterruptCallbackCommand ()
void EndCallbackCommand ()
void SendEmoteRequestSync (int id)
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)
void ClearSurrenderState ()
 Queues item deletion only, surrender state cleared from item event directly.
void ForceSurrenderState (bool state)
void PostSurrenderRequestServer ()
 server only
void ServerRequestEmoteCancel ()
bool InterruptGestureCheck ()
bool InterruptWaterCheck ()
bool IsEmotePlaying ()
map< int, ref EmoteBaseGetNameEmoteMap ()
void CreateBleedingEffect (int Callback_ID)
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)

Variables

class EmoteLauncher m_Player
ItemBase m_item
EmoteCB m_Callback
HumanInputController m_HIC
ref array< stringm_InterruptInputs
ref array< UAIDWrapperm_InterruptInputDirect
ref InventoryLocation m_HandInventoryLocation
ref EmoteLauncher m_MenuEmote
bool m_bEmoteIsRequestPending
bool m_bEmoteIsPlaying
bool m_IsSurrendered
bool m_ItemToBeCreated
bool m_CancelEmote
bool m_InstantCancelEmote
bool m_GestureInterruptInput
bool m_DisconnectEmoteQueued
bool m_DeferredEmoteLauncherCleanup
bool m_ItemToHands
bool m_ItemIsOn
bool m_MouseButtonPressed
bool m_PlayerDies
bool m_controllsLocked
bool m_InventoryAccessLocked
bool m_EmoteLockState
int m_DeferredGuaranteedEmoteId
int m_DeferredEmoteExecution
int m_GestureID
int m_PreviousGestureID
int m_CurrentGestureID
int m_LastMask
int m_RPSOutcome
int m_InterruptInputsCount
const int CALLBACK_CMD_INVALID = -1
const int CALLBACK_CMD_END = -2
const int CALLBACK_CMD_GESTURE_INTERRUPT = -3
const int CALLBACK_CMD_INSTACANCEL = -4
PluginAdminLog m_AdminLog
ref Timer m_ReservationTimer
ref map< int, ref EmoteBasem_NameEmoteMap
ref array< ref EmoteBasem_EmoteClassArray
ref array< intm_EmoteIDs
ref array< intm_EmoteInputIDs
SHumanCommandSwimSettings m_HumanSwimSettings

Function Documentation

◆ AfterStoreLoad()

void AfterStoreLoad ( )
protected

Definition at line 667 of file emotemanager.c.

◆ CanPlayEmote()

bool CanPlayEmote ( int id)
protected

Definition at line 1059 of file emotemanager.c.

◆ CanPlayEmoteClientCheck()

bool CanPlayEmoteClientCheck ( int id)
protected

Definition at line 1137 of file emotemanager.c.

◆ ChainedDropAndKillPlayerLambda()

void ChainedDropAndKillPlayerLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )
protected

Definition at line 1437 of file emotemanager.c.

◆ CheckEmoteLockedState()

void CheckEmoteLockedState ( )
protected

Definition at line 1250 of file emotemanager.c.

◆ ClearDeferredExecution()

bool ClearDeferredExecution ( )
protected

Definition at line 862 of file emotemanager.c.

◆ ClearEmoteLauncher()

bool ClearEmoteLauncher ( bool forced = false)
protected

Definition at line 853 of file emotemanager.c.

◆ ClearSurrenderState()

void ClearSurrenderState ( )
protected

Queues item deletion only, surrender state cleared from item event directly.

Definition at line 1284 of file emotemanager.c.

◆ CommitSuicide()

void CommitSuicide ( )
protected

Definition at line 775 of file emotemanager.c.

◆ ConstructData()

void ConstructData ( )
protected

Definition at line 215 of file emotemanager.c.

◆ CreateBleedingEffect()

void CreateBleedingEffect ( int Callback_ID)
protected

Definition at line 1380 of file emotemanager.c.

◆ CreateEmoteCallback()

void CreateEmoteCallback ( typename callbacktype ,
int id,
int mask,
bool fullbody )
protected

Definition at line 724 of file emotemanager.c.

◆ CreateEmoteCBFromMenu()

void CreateEmoteCBFromMenu ( int id,
bool interrupts_same = false )
protected

Definition at line 847 of file emotemanager.c.

◆ DetermineEmoteData()

bool DetermineEmoteData ( EmoteBase emote,
out int callback_ID,
out int stancemask,
out bool is_fullbody )
protected

Also includes a stance check for FB callbacks.

Definition at line 269 of file emotemanager.c.

◆ DetermineGestureIndex()

int DetermineGestureIndex ( )
protected

Definition at line 254 of file emotemanager.c.

◆ EmoteManager()

void EmoteManager ( PlayerBase player)
protected

Definition at line 168 of file emotemanager.c.

◆ End()

void ChainedDropAndKillPlayerLambda::End ( )

called on surrender end request end

◆ EndCallbackCommand()

void EndCallbackCommand ( )
protected

Definition at line 881 of file emotemanager.c.

◆ EndSurrenderRequest()

void EndSurrenderRequest ( SurrenderData data = null)
protected

directly force-ends surrender state AND requests hard cancel

Definition at line 1263 of file emotemanager.c.

◆ Execute()

override void Execute ( HumanInventoryWithFSM fsm_to_notify = null)
protected

Definition at line 1448 of file emotemanager.c.

◆ ForceSurrenderState()

void ForceSurrenderState ( bool state)
protected

Definition at line 1298 of file emotemanager.c.

◆ GetEmoteLauncher()

EmoteLauncher GetEmoteLauncher ( )
protected

Definition at line 868 of file emotemanager.c.

◆ GetGesture()

int GetGesture ( )
protected

Definition at line 249 of file emotemanager.c.

◆ GetNameEmoteMap()

map< int, ref EmoteBase > GetNameEmoteMap ( )
protected

Definition at line 1375 of file emotemanager.c.

◆ HideItemInHands()

void HideItemInHands ( )
protected

Definition at line 752 of file emotemanager.c.

◆ InterruptCallbackCommand()

void InterruptCallbackCommand ( )
protected

Definition at line 873 of file emotemanager.c.

◆ InterruptGestureCheck()

bool InterruptGestureCheck ( )
protected

Definition at line 1325 of file emotemanager.c.

◆ InterruptWaterCheck()

bool InterruptWaterCheck ( )
protected

Definition at line 1354 of file emotemanager.c.

◆ IsControllsLocked()

bool IsControllsLocked ( )
protected

Definition at line 1054 of file emotemanager.c.

◆ IsEmotePlaying()

bool IsEmotePlaying ( )
protected

Definition at line 1370 of file emotemanager.c.

◆ KillPlayer()

void KillPlayer ( )
protected

Definition at line 826 of file emotemanager.c.

◆ LogSuicide()

void LogSuicide ( )
protected

Definition at line 834 of file emotemanager.c.

◆ OnCallbackEnd()

void OnCallbackEnd ( )
protected

Definition at line 660 of file emotemanager.c.

◆ OnEmoteEnd()

void OnEmoteEnd ( )
protected

Definition at line 523 of file emotemanager.c.

◆ OnInputUserDataProcess()

bool OnInputUserDataProcess ( int userDataType,
ParamsReadContext ctx )
protected

Definition at line 549 of file emotemanager.c.

◆ OnSyncJuncture()

void OnSyncJuncture ( int pJunctureID,
ParamsReadContext pCtx )
protected

Definition at line 592 of file emotemanager.c.

◆ PickEmote()

void PickEmote ( int gestureslot)
protected

Deprecated.

Definition at line 1419 of file emotemanager.c.

◆ PlayEmote()

bool PlayEmote ( int id)
protected

Definition at line 673 of file emotemanager.c.

◆ PlaySurrenderInOut()

void PlaySurrenderInOut ( bool state)
protected

Definition at line 1156 of file emotemanager.c.

◆ PostSurrenderRequestServer()

void PostSurrenderRequestServer ( )
protected

server only

Definition at line 1305 of file emotemanager.c.

◆ RequestCommitSuicide()

void RequestCommitSuicide ( )
protected

Definition at line 769 of file emotemanager.c.

◆ SendEmoteRequestSync()

void SendEmoteRequestSync ( int id)
protected

Definition at line 897 of file emotemanager.c.

◆ SendEmoteRequestSyncEx()

void SendEmoteRequestSyncEx ( notnull EmoteLauncher launcher)
protected

To avoid mixing m_MenuEmote with exceptional sync commands.

Definition at line 974 of file emotemanager.c.

◆ ServerRequestEmoteCancel()

void ServerRequestEmoteCancel ( )
protected

Definition at line 1317 of file emotemanager.c.

◆ SetClientLoggingOut()

void SetClientLoggingOut ( bool state)
protected

Definition at line 1272 of file emotemanager.c.

◆ SetEmoteLockState()

void SetEmoteLockState ( bool state)
protected

Definition at line 1204 of file emotemanager.c.

◆ SetGesture()

void SetGesture ( int id)
protected

Definition at line 244 of file emotemanager.c.

◆ SetPending()

void SetPending ( bool state)
protected

Definition at line 293 of file emotemanager.c.

◆ ShowItemInHands()

void ShowItemInHands ( )
protected

Definition at line 761 of file emotemanager.c.

◆ Update()

void Update ( float deltaT)
protected

Definition at line 299 of file emotemanager.c.

◆ ~EmoteManager()

void ~EmoteManager ( )
protected

Definition at line 209 of file emotemanager.c.

Variable Documentation

◆ CALLBACK_CMD_END

const int CALLBACK_CMD_END = -2
protected

Definition at line 156 of file emotemanager.c.

◆ CALLBACK_CMD_GESTURE_INTERRUPT

const int CALLBACK_CMD_GESTURE_INTERRUPT = -3
protected

Definition at line 157 of file emotemanager.c.

◆ CALLBACK_CMD_INSTACANCEL

const int CALLBACK_CMD_INSTACANCEL = -4
protected

Definition at line 158 of file emotemanager.c.

◆ CALLBACK_CMD_INVALID

const int CALLBACK_CMD_INVALID = -1
protected

Definition at line 155 of file emotemanager.c.

◆ m_AdminLog

PluginAdminLog m_AdminLog
protected

Definition at line 159 of file emotemanager.c.

◆ m_bEmoteIsPlaying

bool m_bEmoteIsPlaying

Definition at line 132 of file emotemanager.c.

◆ m_bEmoteIsRequestPending

bool m_bEmoteIsRequestPending

Definition at line 131 of file emotemanager.c.

◆ m_Callback

EmoteCB m_Callback

Definition at line 125 of file emotemanager.c.

◆ m_CancelEmote

bool m_CancelEmote

Definition at line 135 of file emotemanager.c.

◆ m_controllsLocked

bool m_controllsLocked
protected

Definition at line 144 of file emotemanager.c.

◆ m_CurrentGestureID

int m_CurrentGestureID
protected

Definition at line 151 of file emotemanager.c.

◆ m_DeferredEmoteExecution

int m_DeferredEmoteExecution
protected

Definition at line 148 of file emotemanager.c.

◆ m_DeferredEmoteLauncherCleanup

bool m_DeferredEmoteLauncherCleanup
protected

Definition at line 139 of file emotemanager.c.

◆ m_DeferredGuaranteedEmoteId

int m_DeferredGuaranteedEmoteId
protected

Definition at line 147 of file emotemanager.c.

◆ m_DisconnectEmoteQueued

bool m_DisconnectEmoteQueued
protected

Definition at line 138 of file emotemanager.c.

◆ m_EmoteClassArray

ref array<ref EmoteBase> m_EmoteClassArray
protected

Definition at line 163 of file emotemanager.c.

◆ m_EmoteIDs

ref array<int> m_EmoteIDs
protected

Definition at line 164 of file emotemanager.c.

◆ m_EmoteInputIDs

ref array<int> m_EmoteInputIDs
protected

Definition at line 165 of file emotemanager.c.

◆ m_EmoteLockState

bool m_EmoteLockState
protected

Definition at line 146 of file emotemanager.c.

◆ m_GestureID

int m_GestureID
protected

Definition at line 149 of file emotemanager.c.

◆ m_GestureInterruptInput

bool m_GestureInterruptInput

Definition at line 137 of file emotemanager.c.

◆ m_HandInventoryLocation

ref InventoryLocation m_HandInventoryLocation

Definition at line 129 of file emotemanager.c.

◆ m_HIC

Definition at line 126 of file emotemanager.c.

◆ m_HumanSwimSettings

SHumanCommandSwimSettings m_HumanSwimSettings
protected

Definition at line 166 of file emotemanager.c.

◆ m_InstantCancelEmote

bool m_InstantCancelEmote

Definition at line 136 of file emotemanager.c.

◆ m_InterruptInputDirect

ref array<UAIDWrapper> m_InterruptInputDirect

Definition at line 128 of file emotemanager.c.

◆ m_InterruptInputs

ref array<string> m_InterruptInputs

Definition at line 127 of file emotemanager.c.

◆ m_InterruptInputsCount

int m_InterruptInputsCount
protected

Definition at line 154 of file emotemanager.c.

◆ m_InventoryAccessLocked

bool m_InventoryAccessLocked
protected

Definition at line 145 of file emotemanager.c.

◆ m_IsSurrendered

bool m_IsSurrendered

Definition at line 133 of file emotemanager.c.

◆ m_item

ItemBase m_item

Definition at line 124 of file emotemanager.c.

◆ m_ItemIsOn

bool m_ItemIsOn
protected

Definition at line 141 of file emotemanager.c.

◆ m_ItemToBeCreated

bool m_ItemToBeCreated

Definition at line 134 of file emotemanager.c.

◆ m_ItemToHands

bool m_ItemToHands
protected

Definition at line 140 of file emotemanager.c.

◆ m_LastMask

int m_LastMask
protected

Definition at line 152 of file emotemanager.c.

◆ m_MenuEmote

ref EmoteLauncher m_MenuEmote

Definition at line 130 of file emotemanager.c.

◆ m_MouseButtonPressed

bool m_MouseButtonPressed
protected

Definition at line 142 of file emotemanager.c.

◆ m_NameEmoteMap

ref map<int, ref EmoteBase> m_NameEmoteMap
protected

Definition at line 162 of file emotemanager.c.

◆ m_Player

◆ m_PlayerDies

bool m_PlayerDies
protected

Definition at line 143 of file emotemanager.c.

◆ m_PreviousGestureID

int m_PreviousGestureID
protected

Definition at line 150 of file emotemanager.c.

◆ m_ReservationTimer

ref Timer m_ReservationTimer
protected

Definition at line 160 of file emotemanager.c.

◆ m_RPSOutcome

int m_RPSOutcome
protected

Definition at line 153 of file emotemanager.c.