16 m_player.RequestHandAnimationStateRefresh();
19 bool CancelCondition()
24 bool IsEmoteCallback()
26 return IsGestureCallback();
29 override void OnAnimationEvent(
int pEventID)
44 if (
m_player.GetItemInHands() && SurrenderDummyItem.Cast(
m_player.GetItemInHands()))
57 m_Manager.CreateBleedingEffect(m_callbackID);
67 itemInHands.GetTransform(m4);
77 override bool IsGestureCallback()
85 static const int FORCE_NONE = 0;
86 static const int FORCE_DIFFERENT = 1;
87 static const int FORCE_ALL = 2;
89 protected bool m_InterruptsSameIDEmote;
90 protected int m_ForcePlayEmote;
96 m_InterruptsSameIDEmote = interrupts_same;
97 m_ForcePlayEmote = FORCE_NONE;
100 void SetForced(
int mode)
102 m_ForcePlayEmote = mode;
107 return m_ForcePlayEmote;
216 for (
int i = 0; i < count; i++)
245 for (
int i = 0; i < count; ++i)
259 if (emote.DetermineOverride(callback_ID, stancemask, is_fullbody))
261 return emote.EmoteFBStanceCheck(stancemask);
263 else if (emote.GetAdditiveCallbackUID() != 0 &&
m_Player.IsPlayerInStance(emote.GetStanceMaskAdditive()))
265 callback_ID = emote.GetAdditiveCallbackUID();
266 stancemask = emote.GetStanceMaskAdditive();
270 else if (emote.GetFullbodyCallbackUID() != 0 && emote.EmoteFBStanceCheck(emote.GetStanceMaskFullbody()))
272 callback_ID = emote.GetFullbodyCallbackUID();
273 stancemask = emote.GetStanceMaskFullbody();
292 m_Player.GetHumanInventory().CreateInHands(
"SurrenderDummyItem");
334 bool uiGesture =
false;
335 if (!
GetGame().IsDedicatedServer())
492 if (!
m_Player.IsShootingFromCamera())
493 m_Player.OverrideShootFromCamera(
true);
505 if (ctx.Read(gestureID))
508 if (ctx.Read(random))
517 pCtx.Write(gestureID);
535 pCtx.Read(gesture_id);
574 emoteData.OnCallbackEnd();
580 if (
m_Player.GetItemInHands() && SurrenderDummyItem.Cast(
m_Player.GetItemInHands()))
607 if (!emote.EmoteStartOverride(
EmoteCB,callback_ID,stancemask,is_fullbody))
609 emote.OnBeforeStandardCallbackCreated(callback_ID,stancemask,is_fullbody);
613 if (emote.GetHideItemInHands())
620 ErrorEx(
"EmoteManager | DetermineEmoteData failed!");
642 else if (
m_Player.IsPlayerInStance(mask))
682 if (weapon.CanFire())
686 weapon.ProcessWeaponEvent(weapon_event);
691 if (helm &&
GetGame().IsServer())
693 float damage = helm.GetMaxHealth(
"",
"");
694 helm.AddHealth(
"",
"", -damage/2);
705 if (!weapon.IsDamageDestroyed())
707 weapon.ProcessWeaponEvent(weapon_event);
712 else if (
m_Player.GetItemInHands() &&
m_Player.GetItemInHands().ConfigIsExisting(
"suicideAnim"))
814 bool canProceed =
true;
818 canProceed = emoteData.CanBeCanceledNormally(
m_Callback);
821 if (ctx.CanStoreInputUserData() && (
CanPlayEmote(
id) || forced) && canProceed)
834 else if (!
GetGame().IsMultiplayer())
876 if (item && item.IsHeavyBehaviour() && (
id !=
EmoteConstants.ID_EMOTE_SURRENDER))
881 if ((
m_Player.GetWeaponManager() &&
m_Player.GetWeaponManager().IsRunning()) || (
m_Player.GetActionManager() &&
m_Player.GetActionManager().GetRunningAction()))
892 if (
m_Player.GetCommand_Vehicle().GetTransport())
909 if (
m_Player.GetDayZPlayerInventory().IsProcessing())
920 if (
DetermineEmoteData(emote,callback_ID,stancemask,is_fullbody) && emote.EmoteCondition(stancemask))
968 m_Player.SetInventorySoftLock(state);
991 m_Player.GetActionManager().EnableActions(
true);
1002 m_Player.GetActionManager().EnableActions(
false);
1013 if (!
m_Player.GetItemInHands() || (
m_Player.GetItemInHands() && !SurrenderDummyItem.Cast(
m_Player.GetItemInHands())))
1030 m_Player.GetItemInHands().Delete();
1078 float waterLevel =
m_Player.GetCurrentWaterLevel();
1106 switch (Callback_ID)
1109 m_Player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection(
"Neck");
1113 m_Player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection(
"LeftForeArmRoll");
1117 m_Player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection(
"Spine2");
1121 m_Player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection(
"Spine2");
1125 m_Player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection(
"Head");
1129 m_Player.GetBleedingManagerServer().AttemptAddBleedingSourceBySelection(
"LeftForeArmRoll");
1164 old_item.GetTransform(mtx);
1165 gnd.SetGround(old_item, mtx);
1167 OverrideNewLocation(gnd);
1172 if (PrepareLocations())