Dayz Explorer 1.28.160049
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 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)
 
EmoteLauncher GetEmoteLauncher ()
 
void InterruptCallbackCommand ()
 
void EndCallbackCommand ()
 
void SendEmoteRequestSync (int id)
 
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 ClearSurrenderState ()
 clears surrender state only
 
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_ItemToHands
 
bool m_ItemIsOn
 
bool m_MouseButtonPressed
 
bool m_PlayerDies
 
bool m_controllsLocked
 
bool m_InventoryAccessLocked
 
bool m_EmoteLockState
 
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 582 of file emotemanager.c.

◆ CanPlayEmote()

bool CanPlayEmote ( int id)
protected

Definition at line 880 of file emotemanager.c.

◆ CanPlayEmoteClientCheck()

bool CanPlayEmoteClientCheck ( int id)
protected

Definition at line 967 of file emotemanager.c.

◆ ChainedDropAndKillPlayerLambda()

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

Definition at line 1250 of file emotemanager.c.

◆ CheckEmoteLockedState()

void CheckEmoteLockedState ( )
protected

Definition at line 1076 of file emotemanager.c.

◆ ClearSurrenderState()

void ClearSurrenderState ( )
protected

clears surrender state only

Definition at line 1099 of file emotemanager.c.

◆ CommitSuicide()

void CommitSuicide ( )
protected

Definition at line 687 of file emotemanager.c.

◆ ConstructData()

void ConstructData ( )
protected

Definition at line 195 of file emotemanager.c.

◆ CreateBleedingEffect()

void CreateBleedingEffect ( int Callback_ID)
protected

Definition at line 1193 of file emotemanager.c.

◆ CreateEmoteCallback()

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

Definition at line 636 of file emotemanager.c.

◆ CreateEmoteCBFromMenu()

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

Definition at line 759 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 249 of file emotemanager.c.

◆ DetermineGestureIndex()

int DetermineGestureIndex ( )
protected

Definition at line 234 of file emotemanager.c.

◆ EmoteManager()

void EmoteManager ( PlayerBase player)
protected

Definition at line 151 of file emotemanager.c.

◆ End()

void ChainedDropAndKillPlayerLambda::End ( )

called on surrender end request end

◆ EndCallbackCommand()

void EndCallbackCommand ( )
protected

Definition at line 779 of file emotemanager.c.

◆ EndSurrenderRequest()

void EndSurrenderRequest ( SurrenderData data = null)
protected

directly force-ends surrender state AND requests hard cancel

Definition at line 1089 of file emotemanager.c.

◆ Execute()

override void Execute ( HumanInventoryWithFSM fsm_to_notify = null)
protected

Definition at line 1261 of file emotemanager.c.

◆ ForceSurrenderState()

void ForceSurrenderState ( bool state)
protected

Definition at line 1111 of file emotemanager.c.

◆ GetEmoteLauncher()

EmoteLauncher GetEmoteLauncher ( )
protected

Definition at line 764 of file emotemanager.c.

◆ GetGesture()

int GetGesture ( )
protected

Definition at line 229 of file emotemanager.c.

◆ GetNameEmoteMap()

map< int, ref EmoteBase > GetNameEmoteMap ( )
protected

Definition at line 1188 of file emotemanager.c.

◆ HideItemInHands()

void HideItemInHands ( )
protected

Definition at line 664 of file emotemanager.c.

◆ InterruptCallbackCommand()

void InterruptCallbackCommand ( )
protected

Definition at line 769 of file emotemanager.c.

◆ InterruptGestureCheck()

bool InterruptGestureCheck ( )
protected

Definition at line 1138 of file emotemanager.c.

◆ InterruptWaterCheck()

bool InterruptWaterCheck ( )
protected

Definition at line 1167 of file emotemanager.c.

◆ IsControllsLocked()

bool IsControllsLocked ( )
protected

Definition at line 875 of file emotemanager.c.

◆ IsEmotePlaying()

bool IsEmotePlaying ( )
protected

Definition at line 1183 of file emotemanager.c.

◆ KillPlayer()

void KillPlayer ( )
protected

Definition at line 738 of file emotemanager.c.

◆ LogSuicide()

void LogSuicide ( )
protected

Definition at line 746 of file emotemanager.c.

◆ OnCallbackEnd()

void OnCallbackEnd ( )
protected

Definition at line 575 of file emotemanager.c.

◆ OnEmoteEnd()

void OnEmoteEnd ( )
protected

Definition at line 467 of file emotemanager.c.

◆ OnInputUserDataProcess()

bool OnInputUserDataProcess ( int userDataType,
ParamsReadContext ctx )
protected

Definition at line 502 of file emotemanager.c.

◆ OnSyncJuncture()

void OnSyncJuncture ( int pJunctureID,
ParamsReadContext pCtx )
protected

Definition at line 534 of file emotemanager.c.

◆ PickEmote()

void PickEmote ( int gestureslot)
protected

Deprecated.

Definition at line 1232 of file emotemanager.c.

◆ PlayEmote()

bool PlayEmote ( int id)
protected

Definition at line 588 of file emotemanager.c.

◆ PlaySurrenderInOut()

void PlaySurrenderInOut ( bool state)
protected

Definition at line 981 of file emotemanager.c.

◆ PostSurrenderRequestServer()

void PostSurrenderRequestServer ( )
protected

server only

Definition at line 1118 of file emotemanager.c.

◆ RequestCommitSuicide()

void RequestCommitSuicide ( )
protected

Definition at line 681 of file emotemanager.c.

◆ SendEmoteRequestSync()

void SendEmoteRequestSync ( int id)
protected

Definition at line 796 of file emotemanager.c.

◆ ServerRequestEmoteCancel()

void ServerRequestEmoteCancel ( )
protected

Definition at line 1130 of file emotemanager.c.

◆ SetEmoteLockState()

void SetEmoteLockState ( bool state)
protected

Definition at line 1030 of file emotemanager.c.

◆ SetGesture()

void SetGesture ( int id)
protected

Definition at line 224 of file emotemanager.c.

◆ ShowItemInHands()

void ShowItemInHands ( )
protected

Definition at line 673 of file emotemanager.c.

◆ Update()

void Update ( float deltaT)
protected

Definition at line 274 of file emotemanager.c.

◆ ~EmoteManager()

void ~EmoteManager ( )
protected

Definition at line 189 of file emotemanager.c.

Variable Documentation

◆ CALLBACK_CMD_END

const int CALLBACK_CMD_END = -2
protected

Definition at line 139 of file emotemanager.c.

◆ CALLBACK_CMD_GESTURE_INTERRUPT

const int CALLBACK_CMD_GESTURE_INTERRUPT = -3
protected

Definition at line 140 of file emotemanager.c.

◆ CALLBACK_CMD_INSTACANCEL

const int CALLBACK_CMD_INSTACANCEL = -4
protected

Definition at line 141 of file emotemanager.c.

◆ CALLBACK_CMD_INVALID

const int CALLBACK_CMD_INVALID = -1
protected

Definition at line 138 of file emotemanager.c.

◆ m_AdminLog

PluginAdminLog m_AdminLog
protected

Definition at line 142 of file emotemanager.c.

◆ m_bEmoteIsPlaying

bool m_bEmoteIsPlaying

Definition at line 118 of file emotemanager.c.

◆ m_bEmoteIsRequestPending

bool m_bEmoteIsRequestPending

Definition at line 117 of file emotemanager.c.

◆ m_Callback

EmoteCB m_Callback

Definition at line 111 of file emotemanager.c.

◆ m_CancelEmote

bool m_CancelEmote

Definition at line 121 of file emotemanager.c.

◆ m_controllsLocked

bool m_controllsLocked
protected

Definition at line 128 of file emotemanager.c.

◆ m_CurrentGestureID

int m_CurrentGestureID
protected

Definition at line 134 of file emotemanager.c.

◆ m_DeferredEmoteExecution

int m_DeferredEmoteExecution
protected

Definition at line 131 of file emotemanager.c.

◆ m_EmoteClassArray

ref array<ref EmoteBase> m_EmoteClassArray
protected

Definition at line 146 of file emotemanager.c.

◆ m_EmoteIDs

ref array<int> m_EmoteIDs
protected

Definition at line 147 of file emotemanager.c.

◆ m_EmoteInputIDs

ref array<int> m_EmoteInputIDs
protected

Definition at line 148 of file emotemanager.c.

◆ m_EmoteLockState

bool m_EmoteLockState
protected

Definition at line 130 of file emotemanager.c.

◆ m_GestureID

int m_GestureID
protected

Definition at line 132 of file emotemanager.c.

◆ m_GestureInterruptInput

bool m_GestureInterruptInput

Definition at line 123 of file emotemanager.c.

◆ m_HandInventoryLocation

ref InventoryLocation m_HandInventoryLocation

Definition at line 115 of file emotemanager.c.

◆ m_HIC

Definition at line 112 of file emotemanager.c.

◆ m_HumanSwimSettings

SHumanCommandSwimSettings m_HumanSwimSettings
protected

Definition at line 149 of file emotemanager.c.

◆ m_InstantCancelEmote

bool m_InstantCancelEmote

Definition at line 122 of file emotemanager.c.

◆ m_InterruptInputDirect

ref array<UAIDWrapper> m_InterruptInputDirect

Definition at line 114 of file emotemanager.c.

◆ m_InterruptInputs

ref array<string> m_InterruptInputs

Definition at line 113 of file emotemanager.c.

◆ m_InterruptInputsCount

int m_InterruptInputsCount
protected

Definition at line 137 of file emotemanager.c.

◆ m_InventoryAccessLocked

bool m_InventoryAccessLocked
protected

Definition at line 129 of file emotemanager.c.

◆ m_IsSurrendered

bool m_IsSurrendered

Definition at line 119 of file emotemanager.c.

◆ m_item

ItemBase m_item

Definition at line 110 of file emotemanager.c.

◆ m_ItemIsOn

bool m_ItemIsOn
protected

Definition at line 125 of file emotemanager.c.

◆ m_ItemToBeCreated

bool m_ItemToBeCreated

Definition at line 120 of file emotemanager.c.

◆ m_ItemToHands

bool m_ItemToHands
protected

Definition at line 124 of file emotemanager.c.

◆ m_LastMask

int m_LastMask
protected

Definition at line 135 of file emotemanager.c.

◆ m_MenuEmote

ref EmoteLauncher m_MenuEmote

Definition at line 116 of file emotemanager.c.

◆ m_MouseButtonPressed

bool m_MouseButtonPressed
protected

Definition at line 126 of file emotemanager.c.

◆ m_NameEmoteMap

ref map<int, ref EmoteBase> m_NameEmoteMap
protected

Definition at line 145 of file emotemanager.c.

◆ m_Player

m_Player

◆ m_PlayerDies

bool m_PlayerDies
protected

Definition at line 127 of file emotemanager.c.

◆ m_PreviousGestureID

int m_PreviousGestureID
protected

Definition at line 133 of file emotemanager.c.

◆ m_ReservationTimer

ref Timer m_ReservationTimer
protected

Definition at line 143 of file emotemanager.c.

◆ m_RPSOutcome

int m_RPSOutcome
protected

Definition at line 136 of file emotemanager.c.