DayZ 1.24
Loading...
Searching...
No Matches
PluginDayzPlayerDebug.c
Go to the documentation of this file.
1// *************************************************************************************
2// ! PluginDayzPlayerDebugUserData
3// *************************************************************************************
5{
7 {
8 m_iUserData = pUserData;//animation CMD id
11 m_Category = category;//pType
12 m_Name = name;
13 }
14
15 int GetInt()
16 {
17 return m_iUserData;
18 }
19
21 {
22 return m_bIsFullBody;
23 }
24
26 {
27 return m_iStanceMask;
28 }
29
31 {
32 return m_Category;
33 }
34
35 string GetName()
36 {
37 return m_Name;
38 }
40 {
41 return m_Name + "|" + GetCategory();
42 }
43
44 protected int m_iUserData;
45 protected bool m_bIsFullBody;
46 protected int m_iStanceMask;
47 protected int m_Category;
48 protected string m_Name;
49}
50
51// *************************************************************************************
52// ! PluginDayzPlayerDebugUI
53// *************************************************************************************
55{
56 override bool OnClick(Widget w, int x, int y, int button)
57 {
58 super.OnClick(w, x, y, button);
59 return m_pPluginPlayerDebug.OnClick(w, x, y, button);
60 }
61
62 override bool OnChange(Widget w, int x, int y, bool finished)
63 {
64 super.OnChange(w, x, y, finished);
65 return m_pPluginPlayerDebug.OnChange(w, x, y, finished);
66 }
67
68 override bool OnMouseEnter(Widget w, int x, int y)
69 {
70 super.OnMouseEnter(w, x, y);
71 GetGame().GetMission().AddActiveInputExcludes({"menu"});
72 return true;
73
74 }
75
76 override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
77 {
78 super.OnMouseLeave(w, enterW, x, y);
79 GetGame().GetMission().RemoveActiveInputExcludes({"menu"}, true);
80 return true;
85
87// *************************************************************************************
88// ! PluginDayzPlayerDebugUI
89// *************************************************************************************
90class PluginDayzPlayerActionCallback extends HumanCommandActionCallback
91{
94 {
96 //Print("Action callback created");
98 //RegisterAnimationEvent("ActionExec", 1); // really weird id
100 if (!m_AnimEventMapping)//making sure to only do once
101 {
102 m_AnimEventMapping = new set<string>();
103 m_AnimEventMapping.Insert("ActionExec");
104 m_AnimEventMapping.Insert("SoundWeapon");
105 m_AnimEventMapping.Insert("SoundVoice");
106 m_AnimEventMapping.Insert("SoundAttachment");
107 m_AnimEventMapping.Insert("Sound");
108 }
109
110
111 foreach (int index, string eventName: m_AnimEventMapping)
113
114 EnableStateChangeCallback(); // enable this to get OnStateChange callbacks
115
116 m_fTimeStart = GetWorldTime();
117 }
118
120 {
121 //Print("Action callback deleted");
122 }
123
124 override void OnFinish(bool pCanceled)
125 {
126 if (pCanceled)
127 m_pStateWidget.SetText("Result: canceled");
128 else
129 m_pStateWidget.SetText("Result: ended");
130 }
131
132
134 {
135 // Print("Action cancel condition");
136 return DefaultCancelCondition();
137 }
138
139 override void OnAnimationEvent(int pEventID)
140 {
141
142 //Print(pEventID);
143 //Print("--------------------------------");
144 // only one event id is registered - 1 so nothing else can be delivered
145 string eventName = m_AnimEventMapping.Get(pEventID);
146 string eventText = eventName + " event at: ";
148
149 eventText += tFromSt.ToString();
150 m_EventsHistory.AddItem(eventText, null, 0);
151 m_pAnimEventWidget.SetText(eventText);
152 }
153
154 override void OnStateChange(int pOldState, int pCurrentState)
155 {
158
159 m_pStateWidget.SetText(oldState + "->" + newState);
160 };
161
162
168}
169
170
171// *************************************************************************************
172// ! PluginDayzPlayerDebug
173// *************************************************************************************
175{
176 private const int TYPE_MOD_LOOPING = 0;
177 private const int TYPE_MOD_ONETIME = 1;
178 private const int TYPE_FB_LOOPING = 2;
179 private const int TYPE_FB_ONETIME = 3;
180
181 private const int TYPE_MOD_GESTURE_LOOPING = 4;
182 private const int TYPE_MOD_GESTURE_ONETIME = 5;
183 private const int TYPE_FB_GESTURE_LOOPING = 6;
184 private const int TYPE_FB_GESTURE_ONETIME = 7;
186
187 private const int TYPE_ALL = -1;
188
189
191
195
196 bool m_IsActive = false;
197 bool m_HasFocus = false;
198 bool m_HasServerWalk = false;
199
211
212
224
226
230
234
244
245
247
249
251
253
254 protected int m_CurrentType;
255
256 // command handler properties
257 bool m_CH_ActionStart = false;
259 bool m_CH_ActionCancel = false;
260
261
265
266 //---------------------------------------------------
267 // gui stuff
268
270 {
273
274
275#ifndef NO_GUI
280#endif
281
282
283 //m_TypeNameMappings.Insert(TYPE_FB_SUICIDE_LOOPING, "TYPE_FB_SUICIDE_LOOPING");
284
285 }
286
288 {
289 m_TypeNameMappings.Insert(TYPE_MOD_LOOPING, "MOD_LOOPING");
290 m_TypeNameMappings.Insert(TYPE_MOD_ONETIME, "MOD_ONETIME");
291 m_TypeNameMappings.Insert(TYPE_FB_LOOPING, "FB_LOOPING");
292 m_TypeNameMappings.Insert(TYPE_FB_ONETIME, "FB_ONETIME");
293 m_TypeNameMappings.Insert(TYPE_MOD_GESTURE_LOOPING, "MOD_GESTURE_LOOPING");
294 m_TypeNameMappings.Insert(TYPE_MOD_GESTURE_ONETIME, "MOD_GESTURE_ONETIME");
295 m_TypeNameMappings.Insert(TYPE_FB_GESTURE_LOOPING, "FB_GESTURE_LOOPING");
296 m_TypeNameMappings.Insert(TYPE_FB_GESTURE_ONETIME, "FB_GESTURE_ONETIME");
297 }
298
299
301 {
302 ReleaseFocus();
303
305
306#ifndef NO_GUI
307 m_Weapons = NULL;
311#endif
312 }
313
314
318
319
320 bool IsActive()
321 {
322 return m_IsActive;
323 }
324
325 void ShowWidgets(bool show)
326 {
327 if (m_MainWnd)
328 m_MainWnd.Show(show);
329 }
330
332 void Show()
333 {
334 ShowWidgets(true);
335 m_IsActive = true;
336
337 if (!m_TickTimer)
338 {
339 m_TickTimer = new Timer();
340 m_TickTimer.Run(0.1, this, "Tick", NULL, true);
341 }
342 }
343
345 void Hide()
346 {
347 ShowWidgets(false);
348 m_IsActive = false;
349
351 }
352
355 {
356 if (!m_HasFocus)
357 {
358 GetGame().GetInput().ChangeGameFocus(1);
359 GetGame().GetUIManager().ShowUICursor(true);
360 m_HasFocus = true;
361 }
362 }
363
366 {
367 if (m_HasFocus)
368 {
369 GetGame().GetInput().ChangeGameFocus(-1);
370 GetGame().GetUIManager().ShowUICursor(false);
371 m_HasFocus = false;
372 }
373 }
374
376
386
387
390 {
394
395 if (m_IsActive && !m_HasFocus)
396 Hide();
397 else
398 {
399 Show();
400 ReleaseFocus();
401 }
402 }
403
404
406 {
410
411 if (m_IsActive && m_HasFocus)
412 {
413 Hide();
414 ReleaseFocus();
415 }
416 else
417 {
418 Show();
419 CaptureFocus();
420 }
421 }
422
423
425 {
426 switch (pMode)
427 {
428 case 0: Hide(); ReleaseFocus(); break;
429 case 1: Show(); ReleaseFocus(); break;
430 case 2: Show(); CaptureFocus(); break;
431 }
432 }
433
435 {
436 if (!m_pUIHandler)
437 {
439 m_pUIHandler.m_pPluginPlayerDebug = this;
440 }
441
442 if (!m_MainWnd)
443 {
444 m_MainWnd = GetGame().GetWorkspace().CreateWidgets("gui/layouts/debug/day_z_playerdebug.layout");
445 m_MainWnd.SetHandler(m_pUIHandler);
446 m_MainWnd.Show(false);
447 }
448
449 m_Card0 = m_MainWnd.FindAnyWidget("Card0");
450 m_Card1 = m_MainWnd.FindAnyWidget("Card1");
451 m_Card2 = m_MainWnd.FindAnyWidget("Card2");
452 m_Card3 = m_MainWnd.FindAnyWidget("Card3");
453 m_Card4 = m_MainWnd.FindAnyWidget("Card4");
454 m_Card0Button = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("Card0Button"));
455 m_Card1Button = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("Card1Button"));
456 m_Card2Button = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("Card2Button"));
457 m_Card3Button = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("Card3Button"));
458 m_Card4Button = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("Card4Button"));
459
460
461 m_PlayerStatusV = EditBoxWidget.Cast(m_MainWnd.FindAnyWidget("PlayerStatusV"));
462 m_ActionsSelector = TextListboxWidget.Cast(m_MainWnd.FindAnyWidget("ActionsSelector"));
463 m_ActionsStart = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsStart"));
464 m_ActionsEnd = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsEnd"));
465 m_ActionsFinish = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsFinish"));
466 m_ActionsCancel = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsCancel"));
467 m_ActionsOTA = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsOTA"));
468 m_ActionsOTL = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsOTL"));
469 m_ActionStateV = TextWidget.Cast(m_MainWnd.FindAnyWidget("ActionStateV"));
470 m_ActionEventV = TextWidget.Cast(m_MainWnd.FindAnyWidget("ActionEventV"));
471 m_ActionsGlobalStatus = TextWidget.Cast(m_MainWnd.FindAnyWidget("ActionGlobalStatus"));
472
473
474 m_ActionsFilter = EditBoxWidget.Cast(m_MainWnd.FindAnyWidget("FilterField"));
475
476 m_PlayerSyncCreateShadow = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("PlayerSyncCreate"));
477 m_PlayerSyncDelete = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("PlayerSyncDelete"));
478 m_PlayerServerWalk = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("PlayerServerWalk"));
479
480 m_ItemAccClass = TextWidget.Cast(m_MainWnd.FindAnyWidget("ItemAccessClass"));
481 m_ItemAccSClass = TextWidget.Cast(m_MainWnd.FindAnyWidget("ItemAccessSClass"));
482 m_ItemAccInst = TextWidget.Cast(m_MainWnd.FindAnyWidget("ItemAccessInst"));
483
484 m_ActionTypeAll = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupALL"));
485 m_ActionTypeLA = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupLA"));
486 m_ActionTypeOA = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupOA"));
487 m_ActionTypeFLA = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupFLA"));
488 m_ActionTypeFOA = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupFOA"));
489 m_ActionTypeLG = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupLG"));
490 m_ActionTypeOG = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupOG"));
491 m_ActionTypeFLG = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupFLG"));
492 m_ActionTypeFOG = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ActionsGroupFOG"));
493
494
495 m_EventsHistory = TextListboxWidget.Cast(m_MainWnd.FindAnyWidget("EventHistory"));
496 m_ClearEventsButton = ButtonWidget.Cast(m_MainWnd.FindAnyWidget("ClearButton"));
497
498 DisplayActions(-1);
499
500 ShowCard(0);
501
502 // m_DebugAgentListWidget = m_DebugRootWidget.FindAnyWidget("w_Agents");
503 // m_DebugFloatsListWidget = m_DebugRootWidget.FindAnyWidget("w_Floats");
504 // m_DebugStringsListWidget = m_DebugRootWidget.FindAnyWidget("w_Strings");
505 // m_DebugFloatsProperListWidget = m_DebugRootWidget.FindAnyWidget("w_FloatsProper");
506 // m_ItemPreviewWidget = m_DebugRootWidget.FindAnyWidget("w_ItemPreview");
507 // m_ClassNameWidget = m_DebugRootWidget.FindAnyWidget("w_ClassName");
508 }
509
511 {
512 delete m_MainWnd;
513 }
514
515
516 void ShowCard(int pCard)
517 {
518 m_Card0.Show(pCard == 0);
519 m_Card1.Show(pCard == 1);
520 m_Card2.Show(pCard == 2);
521 m_Card3.Show(pCard == 3);
522 m_Card4.Show(pCard == 4);
523 }
524
525
526 //---------------------------------------------------
527 // main update
528
529
530 void Tick()
531 {
533 if (!player)
534 return;
535
536 // Print("PluginDayzPlayerDebug tick");
538
539 // DbgShowBoneName(player);
541
544
545 m_Weapons.Tick();
546 }
547
548
549 //---------------------------------------------------
550 // Player main
551
552
554 {
555
557
558
559 pPlayer.GetMovementState(state);
560
561 string a = "Cmd:";
562
563 if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_MOVE)
564 {
565 a += "MOVE:";
566 a += " st:" + state.m_iStanceIdx.ToString() + ", mv:" + state.m_iMovement.ToString();
567 }
568 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_ACTION)
569 {
570 a += "FB ACTION:";
571 a += " st:" + state.m_iStanceIdx.ToString();
572 }
573 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_MELEE)
574 {
575 a += "MELEE:";
576 a += " st:" + state.m_iStanceIdx.ToString();
577 }
578 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_MELEE2)
579 {
580 a += "MELEE2:";
581 a += " st:" + state.m_iStanceIdx.ToString();
582 }
583 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_FALL)
584 {
585 a += "FALL:";
586 a += " st:" + state.m_iStanceIdx.ToString();
587 }
588 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_DEATH)
589 {
590 a += "now DEAD:";
591 a += " st:" + state.m_iStanceIdx.ToString();
592 }
593 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_LADDER)
594 {
595 a += "LADDER:";
596 a += " st:" + state.m_iStanceIdx.ToString();
597 }
598 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_UNCONSCIOUS)
599 {
600 a += "Unconscious:";
601 a += " st:" + state.m_iStanceIdx.ToString();
602 }
603 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_SWIM)
604 {
605 a += "Swimming:";
606 a += " st:" + state.m_iStanceIdx.ToString();
607 }
608 else if (state.m_CommandTypeId == DayZPlayerConstants.COMMANDID_CLIMB)
609 {
610 a += "Climbing:";
611 a += " st:" + state.m_iStanceIdx.ToString();
612 }
613 else
614 a += "UNKNOWN";
615
616 m_PlayerStatusV.SetText(a);
617 }
618
619
621 {
622 int boneIndex = pPlayer.GetBoneIndexByName("Head");
623
624 // vector pos = pPlayer.GetBonePositionMS(boneIndex);
625 vector tm[4];
626
627 pPlayer.GetBoneTransformMS(boneIndex, tm);
628
629
630 string a = "Bone index:";
631 a += boneIndex.ToString();
632 a += ",";
633 a += tm.ToString();
634 Print(a);
635 }
636
637
639 {
641
642 // int nMods = pPlayer.GetCommandModifierCount();
643 // Print("Number of modifiers");
644 // Print(nMods);
645
646 /*
647 for (int i = 0; i < nMods; i ++)
648 {
649 // int a = pPlayer.GetCommandModifierId(i);
650
651 if (pPlayer.GetCommandModifierId(i) == DayZPlayerConstants.COMMANDID_MOD_ACTION)
652 {
653 }
654
655 // Print(a);
656
657 }
658 */
659
660 HumanCommandActionCallback clbk = pPlayer.GetCommandModifier_Action();
661 if (clbk)
662 Print(clbk);
663 ;
664 }
665
666
667 //---------------------------------------------------
668 // Actions
669
671 {
674 m_ActionsSelector.ClearItems();
675 string filterTextLower = m_ActionsFilter.GetText();
676 filterTextLower.ToLower();
677
679 filterTextLower.Split(" ", filterTokens);
680
682 {
683 string nameLower = dta.GetName();
684 nameLower.ToLower();
685 bool add = false;
686 if (pType == -1 || pType == dta.GetCategory())
687 {
688 if (filterTextLower)
689 {
690 foreach (string token: filterTokens)
691 {
692 if (nameLower.Contains(token))
693 add = true;
694 }
695 }
696 else
697 add = true;
698 }
699 if (add)
700 sortedNames.Insert(dta.GetNameUnique());
701 }
702 sortedNames.Sort();
703 foreach (int i, string sortedNameUnique: sortedNames)
704 {
706 string sortedName = data.GetName();
707 string typeName;
708
709 if (m_TypeNameMappings.Contains(data.GetCategory()))
710 typeName = m_TypeNameMappings.Get(data.GetCategory());
711
712 m_ActionsSelector.AddItem(sortedName, data, 0, i);
713 if (typeName)
714 m_ActionsSelector.SetItem(i, typeName, null, 1);
715 }
716 }
717
718
721 {
722 int row = m_ActionsSelector.GetSelectedRow();
723 if (row == -1)
724 return;
725
728 if (!player)
729 return;
730
732 m_ActionsSelector.GetItemData(row, 0, userData);
733
735 PluginDayzPlayerActionCallback a;
736
737 if (userData.IsFullBody())
738 a = PluginDayzPlayerActionCallback.Cast(player.StartCommand_Action(userData.GetInt(), PluginDayzPlayerActionCallback, userData.GetStanceMask()));
739 else
740 a = PluginDayzPlayerActionCallback.Cast(player.AddCommandModifier_Action(userData.GetInt(), PluginDayzPlayerActionCallback));
741 m_ActionEventV.SetText("");
742 a.m_pStateWidget = m_ActionStateV;
743 a.m_pAnimEventWidget = m_ActionEventV;
744 a.m_EventsHistory = m_EventsHistory;
745
747 m_ActionStateV.SetText("Crash Test");
748 }
749
752 {
755 if (!player)
756 return;
757
758 HumanCommandActionCallback clbk = player.GetCommand_Action();
759 if (!clbk)
760 {
761 clbk = player.GetCommandModifier_Action();
762 if (!clbk)
763 return;
764 }
765
766 clbk.InternalCommand(pCommandId);
767 }
768
771 {
774 if (!player)
775 return;
776
777 HumanCommandActionCallback clbk = player.GetCommand_Action();
778 if (!clbk)
779 {
780 clbk = player.GetCommandModifier_Action();
781 if (!clbk)
782 return;
783 }
784 clbk.Cancel();
785 }
786
787
790 {
791 HumanCommandActionCallback clbk = pPlayer.GetCommandModifier_Action();
792 if (!clbk)
793 m_ActionsGlobalStatus.SetText("No Action");
794
795 m_ActionsGlobalStatus.SetText(clbk.ToString());
796 }
797
798
800
801
803 {
805
806 vector item_position = GetGame().GetPlayer().GetPosition() + (GetGame().GetPlayer().GetDirection() * 2.0);
807
808 m_pPlayerShadow = Entity.Cast(GetGame().CreateObject("SurvivorM_Mirek", item_position, false, false));
809
810 DayZPlayer pl = DayZPlayer.Cast(GetGame().GetPlayer());
811 pl.DebugSyncShadowSetup(DayZPlayer.Cast(m_pPlayerShadow));
812 }
813
815 {
816 if (m_pPlayerShadow)
817 {
818 GetGame().ObjectDelete(m_pPlayerShadow);
820 }
821
823 if (pl)
824 pl.DebugSyncShadowSetup(NULL);
825
826 }
827
828
829 //---------------------------------------------------
830 // item accessor
831
833 {
834 m_ItemAccClass.SetText(pPlayer.DebugGetItemClass());
835 m_ItemAccSClass.SetText(pPlayer.DebugGetItemSuperClass());
836 m_ItemAccInst.SetText(pPlayer.DebugGetItemAnimInstance());
837 }
838
839
840 //---------------------------------------------------
841 // window ui clicks
842
844 bool OnClick(Widget w, int x, int y, int button)
845 {
846 if (w == m_Card0Button)
847 ShowCard(0);
848 else if (w == m_Card1Button)
849 ShowCard(1);
850 else if (w == m_Card2Button)
851 ShowCard(2);
852 else if (w == m_Card3Button)
853 ShowCard(3);
854 else if (w == m_Card4Button)
855 ShowCard(4);
856
857 else if (w == m_ClearEventsButton)
858 m_EventsHistory.ClearItems();
859 else if (w == m_ActionsStart)
860 {
861 Print("PluginPlayerDebug: Action Start");
862 m_CH_ActionStart = true;
863 return true;
864 }
865 else if (w == m_ActionsEnd)
866 {
867 Print("PluginPlayerDebug: Action End");
868 m_CH_ActionCommand = DayZPlayerConstants.CMD_ACTIONINT_END;
869 return true;
870 }
871 else if (w == m_ActionsFinish)
872 {
873 Print("PluginPlayerDebug: Action Finish");
874 m_CH_ActionCommand = DayZPlayerConstants.CMD_ACTIONINT_FINISH;
875 return true;
876 }
877 else if (w == m_ActionsOTA)
878 {
879 Print("PluginPlayerDebug: Action One Time Action");
880 m_CH_ActionCommand = DayZPlayerConstants.CMD_ACTIONINT_ACTION;
881 return true;
882 }
883 else if (w == m_ActionsOTL)
884 {
885 Print("PluginPlayerDebug: Action Loop");
886 m_CH_ActionCommand = DayZPlayerConstants.CMD_ACTIONINT_ACTIONLOOP;
887 return true;
888 }
889 else if (w == m_ActionsCancel)
890 {
891 Print("PluginPlayerDebug: Action Cancel");
892 m_CH_ActionCancel = true;
893 return true;
894 }
895 else if (w == m_PlayerSyncCreateShadow)
896 {
898 return true;
899 }
900 else if (w == m_PlayerSyncDelete)
901 {
903 return true;
904 }
905 else if (w == m_PlayerServerWalk)
906 {
909#ifdef DEVELOPER
911 GetGame().RPCSingleParam(GetGame().GetPlayer(), ERPCs.RPC_DAYZPLAYER_DEBUGSERVERWALK, rp, true);
912#endif
913 }
914 else if (w == m_ActionTypeLA)
916 else if (w == m_ActionTypeOA)
918 else if (w == m_ActionTypeFLA)
920 else if (w == m_ActionTypeFOA)
922 else if (w == m_ActionTypeLG)
924 else if (w == m_ActionTypeOG)
926 else if (w == m_ActionTypeFLG)
928 else if (w == m_ActionTypeFOG)
930 else if (w == m_ActionTypeAll)
932
933 if (m_Weapons.OnClick(w, x, y, button))
934 return true;
935 else if (m_OtherCmds.OnClick(w, x, y, button))
936 return true;
937 else
938 return m_Controls.OnClick(w, x, y, button);
939 }
940
941 bool OnChange(Widget w, int x, int y, bool finished)
942 {
943 if (w == m_ActionsFilter)
945
946 if (m_Controls.OnChange(w, x, y, finished))
947 return true;
948
949
950 return false;
951 }
952
953 //---------------------------------------------------
954 // Global handler to handle commands from player
955
957 {
958 if (m_Weapons)
959 m_Weapons.IsWeaponChange(pNewWeapon, pHideSlot, pShowSlot);
960
961 return false;
962 }
963
964
965 //---------------------------------------------------
966 // Global handler to handle commands from player
967
969 {
971 {
973 m_CH_ActionStart = false;
974 }
975
976 if (m_CH_ActionCommand != -1000)
977 {
979 m_CH_ActionCommand = -1000;
980 }
981
983 {
985 m_CH_ActionCancel = false;
986 }
987
988 if (m_Weapons)
989 m_Weapons.CommandHandler();
990
991 if (m_Controls)
992 m_Controls.CommandHandler();
993
994 if (m_OtherCmds)
995 m_OtherCmds.CommandHandler();
996 }
997
1004
1006 {
1007 RegisterAnimation("CLEAN HANDS BOTTLE", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_CLEANHANDSBOTTLE, false);
1008 RegisterAnimation("DRINK", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_DRINK, false);
1009 RegisterAnimation("EAT", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_EAT, false);
1010 RegisterAnimation("EMPTY VESSEL", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_EMPTY_VESSEL, false);
1011 RegisterAnimation("CATCH RAIN", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_CATCHRAIN, false);
1012 RegisterAnimation("VIEW COMPASS", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_VIEWCOMPASS, false);
1013 RegisterAnimation("ITEM TUNE", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_ITEM_TUNE, false);
1014 RegisterAnimation("GIVE L ITEM", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_GIVEL, false);
1015 RegisterAnimation("GIVE R ITEM", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_GIVER, false);
1016 RegisterAnimation("SHAVE", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_SHAVE, false);
1017 RegisterAnimation("FILL MAG", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_FILLMAG, false);
1018 RegisterAnimation("EMPTY MAG", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_EMPTYMAG, false);
1019 RegisterAnimation("OPEN ITEM", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_OPENITEM, false);
1020 RegisterAnimation("TAKE TEMP SELF", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_TAKETEMPSELF, false);
1021 RegisterAnimation("VIEW MAP", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_VIEWMAP, false);
1022 RegisterAnimation("RAISE ITEM", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_RAISEITEM, false);
1023 RegisterAnimation("SEARCH INVENTORY", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_SEARCHINVENTORY, false);
1024 RegisterAnimation("CRAFTING UPPDERBODY", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_CRAFTING, false);
1025 RegisterAnimation("RESTRAINED STRUGGLE", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_RESTRAINEDSTRUGGLE, false);
1026 RegisterAnimation("COVER HEAD SELF", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_COVERHEAD_SELF, false);
1027 RegisterAnimation("COVER HEAD TARGET", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_COVERHEAD_TARGET, false);
1028 RegisterAnimation("SET ALARM CLOCK", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_SET_ALARM, false);
1029 RegisterAnimation("ENGINE START", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_STARTENGINE, false);
1030 RegisterAnimation("TOOT HORN", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_TOOTHORN, false);
1031 RegisterAnimation("ENGINE STOP", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_STOPENGINE, false);
1032 RegisterAnimation("SHIFT GEAR", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_SHIFTGEAR, false);
1033 RegisterAnimation("TURN ON/OFF LIGHTS", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_HEADLIGHT, false);
1034 RegisterAnimation("DRIVER OPEN DOOR", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_DRIVER_DOOR_OPEN, false);
1035 RegisterAnimation("DRIVER CLOSE DOOR", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_DRIVER_DOOR_CLOSE, false);
1036 RegisterAnimation("CODRIVER OPEN DOOR", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_CODRIVER_DOOROPEN, false);
1037 RegisterAnimation("CODRIVER CLOSE DOOR", TYPE_MOD_LOOPING, DayZPlayerConstants.CMD_ACTIONMOD_CODRIVER_DOORCLOSE, false);
1039 RegisterAnimation("PICK UP HANDS", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_HANDS, false);
1040 RegisterAnimation("PICK UP INVENTORY", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_INVENTORY, false);
1041 RegisterAnimation("LICK BATTERY", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_LICKBATTERY, false);
1042 RegisterAnimation("LIGHT FLARE", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_LIGHTFLARE, false);
1043 RegisterAnimation("LITCHEM LIGHT", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_LITCHEMLIGHT, false);
1044 RegisterAnimation("UNPIN GRENAGE", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_UNPINGRENAGE, false);
1045 RegisterAnimation("OPEN DOOR FW", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_OPENDOORFW, false);
1046 RegisterAnimation("OPEN LID", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_OPENLID, false);
1047 RegisterAnimation("CLOSE LID", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_CLOSELID, false);
1048 RegisterAnimation("RADIO ON", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_ITEM_ON, false);
1049 RegisterAnimation("RADIO OFF", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_ITEM_OFF, false);
1050 RegisterAnimation("BATON EXTEND", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_BATONEXTEND, false);
1051 RegisterAnimation("BATON RETRACT", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_BATONRETRACT, false);
1052 RegisterAnimation("UNLOCK HANDCUFF TARGET", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_UNLOCKHANDCUFFTARGET, false);
1053 RegisterAnimation("FISHINGROD EXTEND", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_FISHINGRODEXTEND, false);
1054 RegisterAnimation("FISHINGROD RETRACT", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_FISHINGRODRETRACT, false);
1055 RegisterAnimation("OPEN ITEM ONCE", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_OPENITEM_ONCE, false);
1056 RegisterAnimation("CLOSE ITEM ONCE", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_CLOSEITEM_ONCE, false);
1057 RegisterAnimation("ATTACH SCOPE", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_ATTACHSCOPE, false);
1058 RegisterAnimation("ATTACH BARREL", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_ATTACHBARREL, false);
1059 RegisterAnimation("EMPTY SEEDS PACK", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_EMPTYSEEDSPACK, false);
1060 RegisterAnimation("INTERACT", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_INTERACTONCE, false);
1061 RegisterAnimation("ATTACH ITEM", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_ATTACHITEM, false);
1062 RegisterAnimation("STOP ALARM CLOCK", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_STOP_ALARM, false);
1063 RegisterAnimation("PRESS TRIGGER", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_PRESS_TRIGGER, false);
1064 RegisterAnimation("DROP ITEM HANDS", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_DROPITEM_HANDS, false);
1065 RegisterAnimation("DROP ITEM INVENTORY", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_DROPITEM_INVENTORY, false);
1066 RegisterAnimation("EAT PILL", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_EAT_PILL, false);
1067 RegisterAnimation("EAT TABLET", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_EAT_TABLET, false);
1068 RegisterAnimation("HEATPACK", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_HEATPACK, false);
1069 RegisterAnimation("BLOODTEST", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_BLOODTEST, false);
1070 RegisterAnimation("BLOODTESTOTHER", TYPE_MOD_ONETIME, DayZPlayerConstants.CMD_ACTIONMOD_BLOODTESTOTHER, false);
1072 RegisterAnimation("DRINK", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DRINK, true, DayZPlayerConstants.STANCEMASK_PRONE);
1073 RegisterAnimation("EAT", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_EAT, true, DayZPlayerConstants.STANCEMASK_PRONE);
1074 RegisterAnimation("CATCH RAIN", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_CATCHRAIN, true, DayZPlayerConstants.STANCEMASK_PRONE);
1075 RegisterAnimation("WALKIETALKIE TUNE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_ITEM_TUNE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1076 RegisterAnimation("GIVE L ITEM", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_GIVEL, true, DayZPlayerConstants.STANCEMASK_PRONE);
1077 RegisterAnimation("GIVE R ITEM", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_GIVER, true, DayZPlayerConstants.STANCEMASK_PRONE);
1078 RegisterAnimation("FILL MAG", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_FILLMAG, true, DayZPlayerConstants.STANCEMASK_PRONE);
1079 RegisterAnimation("EMPTY MAG", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_EMPTYMAG, true, DayZPlayerConstants.STANCEMASK_PRONE);
1080 RegisterAnimation("DRINK POND", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DRINKPOND, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1081 RegisterAnimation("DRINK WELL", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DRINKWELL, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1082 RegisterAnimation("FILL BOTTLE WELL", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_FILLBOTTLEWELL, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1083 RegisterAnimation("FIRE ESTINGUISHER", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_FIREESTINGUISHER, true, DayZPlayerConstants.STANCEMASK_ERECT);
1084 RegisterAnimation("FLAME REPAIR", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_FLAME_REPAIR, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1085 RegisterAnimation("WRING CLOTH", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_WRING, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1086 RegisterAnimation("FISHING", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_FISHING, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1087 RegisterAnimation("CPR", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_CPR, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1088 RegisterAnimation("BANDAGE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_BANDAGE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1089 RegisterAnimation("CRAFTING", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_CRAFTING, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1090 RegisterAnimation("INTERACT", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_INTERACT, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1091 RegisterAnimation("FORCE FEED TARGET", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_FORCEFEED, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1092 RegisterAnimation("BANDAGE TARGET", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_BANDAGETARGET, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1093 RegisterAnimation("SPRAY PLANT", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_SPRAYPLANT, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1094 RegisterAnimation("START FIRE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_STARTFIRE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1095 RegisterAnimation("ANIMAL SKINNING", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_ANIMALSKINNING, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1096 RegisterAnimation("WASH HANDS WELL", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSWELL, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1097 RegisterAnimation("WASH HANDS POND", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_WASHHANDSPOND, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1098 RegisterAnimation("SALINE BLOODBAG TARGET", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_SALINEBLOODBAGTARGET, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1099 RegisterAnimation("SALINE BLOOD BAG", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_SALINEBLOODBAG, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1100 RegisterAnimation("STITCH UP SELF", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_STITCHUPSELF, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1101 RegisterAnimation("VOMIT", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_VOMIT, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1102 RegisterAnimation("UNRESTRAINT TARGET", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_UNRESTRAINTARGET, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1103 RegisterAnimation("RESTRAIN TARGET", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_RESTRAINTARGET, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1104 RegisterAnimation("CHECK PULSE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_CHECKPULSE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1105 RegisterAnimation("CLEAN WOUNDS TARGET", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_CLEANWOUNDSTARGET, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1106 RegisterAnimation("COLLECT BLOOD SELF", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_COLLECTBLOODSELF, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1107 RegisterAnimation("EMPTY VESSEL", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_EMPTY_VESSEL, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1108 RegisterAnimation("OPEN ITEM", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_OPENITEM, true, DayZPlayerConstants.STANCEMASK_PRONE);
1109 RegisterAnimation("HACK BUSH", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_HACKBUSH, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1110 RegisterAnimation("HACK TREE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_HACKTREE, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1111 RegisterAnimation("TAKE TEMP SELF", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_TAKETEMPSELF, true, DayZPlayerConstants.STANCEMASK_PRONE);
1112 RegisterAnimation("DIG HOLE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DIG, true, DayZPlayerConstants.STANCEMASK_ERECT);
1113 RegisterAnimation("DIG UP CACHE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DIGUPCACHE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1114 RegisterAnimation("DIG MANIPULATE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DIGMANIPULATE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1115 RegisterAnimation("DEPLOY HEAVY", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_HEAVY, true, DayZPlayerConstants.STANCEMASK_ERECT);
1116 RegisterAnimation("DEPLOY 1HD", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_1HD, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1117 RegisterAnimation("DEPLOY 2HD", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DEPLOY_2HD, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1118 RegisterAnimation("BLOW FIREPLACE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_BLOWFIREPLACE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1119 RegisterAnimation("VIEW MAP", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_VIEWMAP, true, DayZPlayerConstants.STANCEMASK_PRONE);
1120 RegisterAnimation("VIEW COMPASS", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_VIEWCOMPASS, true, DayZPlayerConstants.STANCEMASK_PRONE);
1121 RegisterAnimation("FILL BOTTLE POND", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_FILLBOTTLEPOND, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1122 RegisterAnimation("PLACING HEAVY", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_PLACING_HEAVY, true, DayZPlayerConstants.STANCEMASK_ERECT);
1123 RegisterAnimation("PLACING 1HD", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_PLACING_1HD, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1124 RegisterAnimation("PLACING 2HD", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_PLACING_2HD, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1125 RegisterAnimation("CUT BARK", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_CUTBARK, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1126 RegisterAnimation("VIEW NOTE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_VIEWNOTE, true, DayZPlayerConstants.STANCEMASK_PRONE | DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1127 RegisterAnimation("SEARCH INVENTORY", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_SEARCHINVENTORY, true, DayZPlayerConstants.STANCEMASK_PRONE);
1128 RegisterAnimation("LOOK OPTICS", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_LOOKOPTICS, true, DayZPlayerConstants.STANCEMASK_PRONE | DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1129 RegisterAnimation("MINE ROCK", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_MINEROCK, true, DayZPlayerConstants.STANCEMASK_ERECT);
1130 RegisterAnimation("RAISE ITEM", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_RAISEITEM, true, DayZPlayerConstants.STANCEMASK_PRONE);
1131 RegisterAnimation("RESTRAINED STRUGGLE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_RESTRAINEDSTRUGGLE, true, DayZPlayerConstants.STANCEMASK_PRONE | DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1132 RegisterAnimation("RESTRAIN SELF", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_RESTRAINSELF, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1133 RegisterAnimation("ASSEMBLE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_ASSEMBLE, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1134 RegisterAnimation("DISASSEMBLE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_DISASSEMBLE, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1135 RegisterAnimation("RAISE FLAG", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_RAISE_FLAG, true, DayZPlayerConstants.STANCEMASK_ERECT);
1136 RegisterAnimation("LOWER FLAG", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_LOWER_FLAG, true, DayZPlayerConstants.STANCEMASK_ERECT);
1137 RegisterAnimation("SET ALARM CLOCK", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_SET_ALARM, true, DayZPlayerConstants.STANCEMASK_PRONE);
1138 RegisterAnimation("SHOVEL DIG", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_SHOVEL_DIG, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1139 RegisterAnimation("VEHICLE_PUSH", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_VEHICLE_PUSH, true, DayZPlayerConstants.STANCEMASK_ERECT);
1140 RegisterAnimation("PATCHING_TIRE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_PATCHING_TIRE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1141 RegisterAnimation("PATCHING_DUCTTAPE", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_PATCHING_DUCTTAPE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1142 RegisterAnimation("PATCHING_SEWING", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_PATCHING_SEWING, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1143 RegisterAnimation("PATCHING_LEATHER_SEWING_KIT", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_PATCHING_LEATHER_SEWING_KIT, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1144 RegisterAnimation("SPLITTING FIREWOOD", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_SPLITTING_FIREWOOD, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1145 RegisterAnimation("BREAKING STICK", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_BREAKING_STICK, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1146 RegisterAnimation("CLEANING_WEAPON", TYPE_FB_LOOPING, DayZPlayerConstants.CMD_ACTIONFB_CLEANING_WEAPON, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1147
1149 RegisterAnimation("PICK UP HANDS", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_PICKUP_HANDS, true, DayZPlayerConstants.STANCEMASK_PRONE);
1150 RegisterAnimation("PICK UP INVENTORY", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_PICKUP_INVENTORY, true, DayZPlayerConstants.STANCEMASK_PRONE);
1151 RegisterAnimation("LICK BATTERY", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_LICKBATTERY, true, DayZPlayerConstants.STANCEMASK_PRONE);
1152 RegisterAnimation("LIGHT FLARE", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_LIGHTFLARE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1153 RegisterAnimation("LITCHEM LIGHT", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_LITCHEMLIGHT, true, DayZPlayerConstants.STANCEMASK_PRONE);
1154 RegisterAnimation("UNPIN GRENAGE", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_UNPINGRENAGE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1155 RegisterAnimation("RADIO ON", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_ITEM_ON, true, DayZPlayerConstants.STANCEMASK_PRONE);
1156 RegisterAnimation("RADIO OFF", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_ITEM_OFF, true, DayZPlayerConstants.STANCEMASK_PRONE);
1157 RegisterAnimation("HANDCUFF TARGET", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_HANDCUFFTARGET, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1158 RegisterAnimation("MORPHINE", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_MORPHINE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1159 RegisterAnimation("INJECTION", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_INJECTION, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1160 RegisterAnimation("INJECTION TARGET", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_INJECTIONTARGET, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1161 RegisterAnimation("DRINK SIP", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_DRINKSIP, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1162 RegisterAnimation("CLEAN HANDS BOTTLE", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_CLEANHANDSBOTTLE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1163 RegisterAnimation("OPEN ITEM ONCE", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_OPENITEM_ONCE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1164 RegisterAnimation("POKE", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_POKE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1165 RegisterAnimation("ATTACH SCOPE", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_ATTACHSCOPE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1166 RegisterAnimation("ATTACH BARREL", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_ATTACHBARREL, true, DayZPlayerConstants.STANCEMASK_PRONE);
1167 RegisterAnimation("RESTRAIN", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_RESTRAIN, true, DayZPlayerConstants.STANCEMASK_PRONE | DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1168 RegisterAnimation("PICK UP HEAVY", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_PICKUP_HEAVY, true, DayZPlayerConstants.STANCEMASK_ERECT);
1169 RegisterAnimation("STOP ALARM CLOCK", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_STOP_ALARM, true, DayZPlayerConstants.STANCEMASK_PRONE);
1170 RegisterAnimation("PRESS TRIGGER", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_PRESS_TRIGGER, true, DayZPlayerConstants.STANCEMASK_PRONE);
1171 RegisterAnimation("EAT PILL", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_EAT_PILL, true, DayZPlayerConstants.STANCEMASK_PRONE);
1172 RegisterAnimation("EAT TABLET", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_EAT_TABLET, true, DayZPlayerConstants.STANCEMASK_PRONE);
1173 RegisterAnimation("HEATPACK", TYPE_FB_ONETIME, DayZPlayerConstants.CMD_ACTIONFB_HEATPACK, true, DayZPlayerConstants.STANCEMASK_PRONE);
1178 RegisterAnimation("GREETING", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_GREETING, false);
1179 RegisterAnimation("POINT", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_POINT, false);
1180 RegisterAnimation("THUMB UP", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_THUMB, false);
1181 RegisterAnimation("THUMB DOWN", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_THUMB, false);
1182 RegisterAnimation("SILENCE", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_SILENCE, false);
1183 RegisterAnimation("TAUNT", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_TAUNT, false);
1184 RegisterAnimation("TIME OUT", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_TIMEOUT, false);
1185 RegisterAnimation("HEART", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_HEART, false);
1186 RegisterAnimation("FACEPALM", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_FACEPALM, false);
1187 RegisterAnimation("WATCHING", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_WATCHING, false);
1188 RegisterAnimation("HOLD", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_HOLD, false);
1189 RegisterAnimation("LISTENING", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_LISTENING, false);
1190 RegisterAnimation("POINT AT SELF", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_POINTSELF, false);
1191 RegisterAnimation("LOOK AT ME", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_LOOKATME, false);
1192 RegisterAnimation("OKAY", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_OKAY, false);
1193 RegisterAnimation("RPS", TYPE_MOD_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREMOD_RPS, false);
1195 RegisterAnimation("THROAT", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_THROAT, false);
1196 RegisterAnimation("CLAP", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_CLAP, false);
1197 RegisterAnimation("DABBING", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_DABBING, false);
1198 RegisterAnimation("MOVE", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_MOVE, false);
1199 RegisterAnimation("DOWN", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_DOWN, false);
1200 RegisterAnimation("COME", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_COME, false);
1201 RegisterAnimation("TAUNT KISS", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_TAUNTKISS, false);
1202 RegisterAnimation("TAUNT ELBOW", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_TAUNTELBOW, false);
1203 RegisterAnimation("TAUNT THINK", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_TAUNTTHINK, false);
1204 RegisterAnimation("NOD HEAD", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_NODHEAD, false);
1205 RegisterAnimation("SHAKE HEAD", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_SHAKEHEAD, false);
1206 RegisterAnimation("SHRUG", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_SHRUG, false);
1207 RegisterAnimation("SURRENDER", TYPE_MOD_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREMOD_SURRENDER, false);
1209 RegisterAnimation("GREETING", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_GREETING, true, DayZPlayerConstants.STANCEMASK_PRONE);
1210 RegisterAnimation("POINT", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_POINT, true, DayZPlayerConstants.STANCEMASK_PRONE);
1211 RegisterAnimation("THUMBUP", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_THUMB, true, DayZPlayerConstants.STANCEMASK_PRONE);
1212 RegisterAnimation("THUMBDOWN", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_THUMB, true, DayZPlayerConstants.STANCEMASK_PRONE);
1213 RegisterAnimation("SILENCE", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_SILENCE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1214 RegisterAnimation("TAUNT", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_TAUNT, true, DayZPlayerConstants.STANCEMASK_PRONE);
1215 RegisterAnimation("TIMEOUT", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_TIMEOUT, true, DayZPlayerConstants.STANCEMASK_PRONE);
1216 RegisterAnimation("HEART", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_HEART, true, DayZPlayerConstants.STANCEMASK_PRONE);
1217 RegisterAnimation("WATCHING", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_WATCHING, true, DayZPlayerConstants.STANCEMASK_PRONE);
1218 RegisterAnimation("HOLD", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_HOLD, true, DayZPlayerConstants.STANCEMASK_PRONE);
1219 RegisterAnimation("LISTENING", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_LISTENING, true, DayZPlayerConstants.STANCEMASK_PRONE);
1220 RegisterAnimation("POINTSELF", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_POINTSELF, true, DayZPlayerConstants.STANCEMASK_PRONE);
1221 RegisterAnimation("LOOKATME", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_LOOKATME, true, DayZPlayerConstants.STANCEMASK_PRONE);
1222 RegisterAnimation("OKAY", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_OKAY, true, DayZPlayerConstants.STANCEMASK_PRONE);
1223 RegisterAnimation("SALUTE", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_SALUTE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1224 RegisterAnimation("CAMPFIRE", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_CAMPFIRE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1225 RegisterAnimation("LYINGDOWN", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_LYINGDOWN, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1226 RegisterAnimation("SOS", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_SOS, true, DayZPlayerConstants.STANCEMASK_ERECT);
1227 RegisterAnimation("SITA", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_SITA, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1228 RegisterAnimation("SITB", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_SITB, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1229 RegisterAnimation("DABBING", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_DABBING, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT);
1230 RegisterAnimation("SURRENDER", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_SURRENDER, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_PRONE);
1231 RegisterAnimation("KNEEL", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_GESTUREFB_KNEEL, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1232 RegisterAnimation("TRAILER WAKE UP", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_TRAILER_WAKE_UP, true, DayZPlayerConstants.STANCEMASK_ERECT);
1233 RegisterAnimation("TRAILER DEAD BODY", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_TRAILER_DEAD_BODY, true, DayZPlayerConstants.STANCEMASK_ERECT);
1234 RegisterAnimation("TRAILER WALKIE TALKIE", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_TRAILER_WALKIE_TALKIE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1235 RegisterAnimation("TRAILER WOUNDED", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_TRAILER_WOUNDED, true, DayZPlayerConstants.STANCEMASK_ERECT);
1236 RegisterAnimation("TRAILER WALK AWAY", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_TRAILER_WALK_AWAY, true, DayZPlayerConstants.STANCEMASK_ERECT);
1237 RegisterAnimation("TRAILER DEAD DEAD", TYPE_FB_GESTURE_LOOPING, DayZPlayerConstants.CMD_TRAILER_DEAD, true, DayZPlayerConstants.STANCEMASK_ERECT);
1239 RegisterAnimation("THROAT", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_THROAT, true, DayZPlayerConstants.STANCEMASK_PRONE);
1240 RegisterAnimation("MOVE", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_MOVE, true, DayZPlayerConstants.STANCEMASK_PRONE);
1241 RegisterAnimation("DOWN", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_DOWN, true, DayZPlayerConstants.STANCEMASK_PRONE);
1242 RegisterAnimation("COME", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_COME, true, DayZPlayerConstants.STANCEMASK_PRONE);
1243 RegisterAnimation("TAUNT KISS", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_TAUNTKISS, true, DayZPlayerConstants.STANCEMASK_PRONE);
1244 RegisterAnimation("TAUNT THINK", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_TAUNTTHINK, true, DayZPlayerConstants.STANCEMASK_PRONE);
1245 RegisterAnimation("DANCE", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_DANCE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1246 RegisterAnimation("NOD HEAD", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_NODHEAD, true, DayZPlayerConstants.STANCEMASK_PRONE);
1247 RegisterAnimation("SHAKE HEAD", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_SHAKEHEAD, true, DayZPlayerConstants.STANCEMASK_PRONE);
1248 RegisterAnimation("SHRUG", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_SHRUG, true, DayZPlayerConstants.STANCEMASK_PRONE);
1249 RegisterAnimation("SURRENDER", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_GESTUREFB_SURRENDER, true, DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_PRONE);
1250 RegisterAnimation("TRAILER MASK", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_TRAILER_MASK, true, DayZPlayerConstants.STANCEMASK_ERECT);
1251 RegisterAnimation("TRAILER MASK_02", TYPE_FB_GESTURE_ONETIME, DayZPlayerConstants.CMD_TRAILER_MASK_02, true, DayZPlayerConstants.STANCEMASK_ERECT);
1252
1257 RegisterAnimation("1HD", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_1HD, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1258 RegisterAnimation("FIREAXE", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_FIREAXE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1259 RegisterAnimation("PITCHFORK", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_PITCHFORK, true, DayZPlayerConstants.STANCEMASK_ERECT);
1260 RegisterAnimation("PISTOL", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_PISTOL, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1261 RegisterAnimation("RIFLE", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_RIFLE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1262 RegisterAnimation("SWORD", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_SWORD, true, DayZPlayerConstants.STANCEMASK_ERECT);
1263 RegisterAnimation("UNARMED", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_UNARMED, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1264 RegisterAnimation("WOODAXE", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_WOODAXE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1265 RegisterAnimation("SPEAR", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_SPEAR, true, DayZPlayerConstants.STANCEMASK_ERECT);
1266 RegisterAnimation("SICKLE", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_SICKLE, true, DayZPlayerConstants.STANCEMASK_CROUCH);
1267 RegisterAnimation("HOE", TYPE_FB_SUICIDE_LOOPING, DayZPlayerConstants.CMD_SUICIDEFB_HOE, true, DayZPlayerConstants.STANCEMASK_ERECT);
1268 }
1269
1270}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
class DayZCreatureAnimInterface RegisterAnimationEvent(string event_name, string function_name)
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
Definition DayZGame.c:144
ERPCs
Definition ERPCs.c:2
Icon x
Icon y
bool m_IsActive
PlayerBase GetPlayer()
ref Timer m_TickTimer
override bool OnChange(Widget w, int x, int y, bool finished)
void CreateTypeNameMapping()
ButtonWidget m_ActionTypeFLA
const int TYPE_MOD_ONETIME
TextListboxWidget m_ActionsSelector
bool m_CH_ActionCancel
ref PluginDayzPlayerDebug_Ctrl m_Controls
ButtonWidget m_PlayerSyncDelete
void DisplayActions(int pType)
ButtonWidget m_ActionsEnd
bool m_CH_ActionStart
bool IsWeaponChange(out string pNewWeapon, out int pHideSlot, out int pShowSlot)
void DbgShowBoneName(DayZPlayer pPlayer)
void ToggleDebugWindowEventOld()
ButtonWidget m_ActionTypeOA
TextWidget m_ActionsGlobalStatus
ButtonWidget m_ClearEventsButton
void Actions_UpdateGlobals(DayZPlayer pPlayer)
ref map< string, ref PluginDayzPlayerDebugUserData > m_AnimationListMappings
ref PluginDayzPlayerDebug_OtherCmds m_OtherCmds
const int TYPE_MOD_GESTURE_ONETIME
const int TYPE_ALL
void PluginDayzPlayerDebugUserData(string name, int category, int pUserData, bool pFullBody, int pStanceMask=-1)
ButtonWidget m_PlayerServerWalk
void Actions_Start()
Widget m_Card1
ButtonWidget m_ActionTypeLA
Entity m_pPlayerShadow
ButtonWidget m_ActionsOTA
int m_CurrentType
void PlayerSyncDelete()
TextWidget m_ActionEventV
ref PluginDayzPlayerDebug_Weapons m_Weapons
const int TYPE_FB_GESTURE_LOOPING
TextWidget m_ActionStateV
ref array< ref PluginDayzPlayerDebugUserData > m_AnimationList
ButtonWidget m_ActionTypeFOA
void RegisterAnimations()
TextWidget m_ItemAccInst
Widget m_MainWnd
void ~PluginDayzPlayerDebug()
EditBoxWidget m_ActionsFilter
TextWidget m_ItemAccSClass
void UpdateCommandModifiers(DayZPlayer pPlayer)
void PlayerSyncCreate()
int m_CurrentMode
ref PluginDayzPlayerDebugUIHandler m_pUIHandler
void PluginDayzPlayerDebug()
TextWidget m_ItemAccClass
void UpdatePlayerStatus(DayZPlayer pPlayer)
ButtonWidget m_Card2Button
bool m_HasServerWalk
ButtonWidget m_ActionsFinish
ButtonWidget m_ActionTypeFLG
const int TYPE_FB_ONETIME
void ToggleDebugWindowEventP()
void Actions_DoInternalCommand(int pCommandId)
const int TYPE_FB_SUICIDE_LOOPING
void RegisterDebugItem(ItemBase item, PlayerBase player)
ButtonWidget m_ActionTypeFOG
class PluginDayzPlayerActionCallback extends HumanCommandActionCallback TYPE_MOD_LOOPING
ButtonWidget m_ActionTypeLG
const int TYPE_FB_GESTURE_ONETIME
bool m_HasFocus
int m_CH_ActionCommand
void Actions_DoCancel()
ButtonWidget m_ActionsStart
ButtonWidget m_Card1Button
ButtonWidget m_Card0Button
ButtonWidget m_ActionsOTL
Widget m_Card3
TextListboxWidget m_EventsHistory
ButtonWidget m_ActionsCancel
Widget m_Card4
ref map< int, string > m_TypeNameMappings
ButtonWidget m_ActionTypeAll
Widget m_Card2
void CommandHandler()
ButtonWidget m_Card3Button
const int TYPE_FB_LOOPING
const int TYPE_MOD_GESTURE_LOOPING
ButtonWidget m_Card4Button
ButtonWidget m_ActionTypeOG
EditBoxWidget m_PlayerStatusV
Widget m_Card0
PluginDayzPlayerDebug m_pPluginPlayerDebug
ButtonWidget m_PlayerSyncCreateShadow
void RegisterAnimation(string name, int category, int pUserData, bool pFullBody, int pStanceMask=-1)
void UpdateItemAccessor(DayZPlayer pPlayer)
override bool OnMouseEnter(Widget w, int x, int y)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
Definition Camera.c:2
static ref set< string > m_AnimEventMapping
override void OnStateChange(int pOldState, int pCurrentState)
override void OnFinish(bool pCanceled)
override void OnAnimationEvent(int pEventID)
bool OnClick(Widget w, int x, int y, int button)
buttons clicks
ref PluginDayZInfectedDebugUIHandler m_pUIHandler
void ShowWidgets(bool show)
bool OnChange(Widget w, int x, int y, bool finished)
Widget m_MainWnd
main controls
void ToggleDebugWindowSetMode(int pMode)
void ShowCard(int pCard)
ref Timer m_TickTimer
status refresh timer
void PluginDayzPlayerDebugUserData(string name, int category, int pUserData, bool pFullBody, int pStanceMask=-1)
map: item x vector(index, width, height)
Definition EnWidgets.c:651
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
Definition EnScript.c:666
proto native float GetWorldTime()
proto native void EnableCancelCondition(bool pEnable)
proto native void EnableStateChangeCallback()
enables state change callback OnStateChange
string GetStateString()
returns debug string of current state
Definition human.c:391
proto native bool DefaultCancelCondition()
system implemented cancel condition (now raise or sprint cancels action)