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