92 bool m_EnableModifiers =
true;
93 bool m_EnableUnlimitedAmmo;
94 bool m_DisableBloodLoss =
false;
95 bool m_IsInvincible =
false;
96 bool m_ShowCraftingDebugActions =
false;
97 bool m_LogPlayerStats =
false;
98 bool m_SoftSkillsState =
false;
99 bool m_SoftSkillsDebug =
false;
100 bool m_GunParticlesState =
false;
101 bool m_SoftSkillsModel =
false;
103 bool m_PermanentCrossHair =
false;
104 bool m_ToggleHud =
false;
105 bool m_ShowingWeaponDebug =
false;
106 bool m_AimNoiseEnabled =
true;
107 int m_DisplayPlayerInfo =
false;
108 bool m_ProceduralRecoilEnabled =
true;
109 bool m_EnableQuickRestrain =
false;
110 bool m_EnableQuickFishing =
false;
111 bool m_StaminaDisabled =
false;
112 bool m_EnvironmentStats =
false;
113 bool m_DrawCheckerboard =
false;
114 bool m_PresenceNotifierDebug =
false;
115 bool m_ShowBleedingSources =
false;
116 bool m_XboxCursor =
true;
117 float m_SpecialtyLevel = 0;
118 float m_LifespanLevel = 0;
119 int m_DayzPlayerDebugMenu = -1;
120 int m_BleedingSourceRequested;
121 int m_HairLevelSelected = 0;
122 int m_TotalHairLevelsAdjusted;
127 Shape m_VehicleFreeAreaBox;
138 g_Game.ConfigGetTextArray(
"cfgVehicles Head_Default simpleHiddenSelections",m_HairSelectionArray);
139 m_TotalHairLevelsAdjusted = m_HairSelectionArray.Count() - 1;
140 for (
int i = 0; i < m_HairSelectionArray.Count(); i++)
142 m_HairHidingStateMap.Insert(i,1);
148 m_Timer.Run(0.5,
this,
"Update", NULL,
true);
161 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SHOW_BLEEDING_SOURCES,
"",
"Show Bleeding Sources",
"Bleeding");
162 DiagMenu.RegisterBool(
DiagMenuIDs.DM_DISABLE_BLOOD_LOSS,
"",
"Disable Blood Loss",
"Bleeding");
163 DiagMenu.RegisterRange(
DiagMenuIDs.DM_ACTIVATE_SOURCE,
"",
"Activate Source #",
"Bleeding",
"1, 32, 0, 1");
164 DiagMenu.RegisterBool(
DiagMenuIDs.DM_ACTIVATE_ALL_BS,
"",
"Activate All Sources",
"Bleeding");
175 DiagMenu.RegisterBool(
DiagMenuIDs.DM_CHEATS_MODIFIERS_ENABLE,
"lalt+2",
"Tick Modifiers",
"Cheats");
176 DiagMenu.RegisterBool(
DiagMenuIDs.DM_CHEATS_INVINCIBILITY,
"lalt+1",
"Invincibility(IDDQD)",
"Cheats");
178 DiagMenu.RegisterBool(
DiagMenuIDs.DM_CHEATS_PLAYER_INSTAKILL,
"",
"Kill Player",
"Cheats");
179 DiagMenu.RegisterBool(
DiagMenuIDs.DM_CHEATS_STAMINA_DISABLE,
"",
"Disable stamina",
"Cheats");
188 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PLAYER_CRAFTING_GENERATE,
"",
"Generate Cache",
"Crafting");
189 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PLAYER_CRAFTING_DEBUG_ACTIONS_ENABLE,
"",
"Debug Insta Crafting",
"Crafting");
190 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PLAYER_CRAFTING_DUMP,
"",
"Dump recipes to file",
"Crafting");
200 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PLAYER_SYMPTOMS_SHOW,
"lalt+6",
"Show States",
"Player States");
209 DiagMenu.RegisterBool(
DiagMenuIDs.DM_TRANSFER_VALUES_SHOW,
"",
"ShowValues",
"TransferValues");
217 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PLAYER_AGENTS_INJECTS_SHOW,
"lalt+5",
"Allow Inject Actions",
"Player Agents");
225 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SOFT_SKILLS_SHOW_DEBUG,
"",
"Show Debug",
"Soft Skills" );
226 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SOFT_SKILLS_TOGGLE_STATE,
"",
"Enable SoftSkills",
"Soft Skills" );
227 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SOFT_SKILLS_TOGGLE_MODEL,
"",
"Enable linear model",
"Soft Skills" );
228 DiagMenu.RegisterRange(
DiagMenuIDs.DM_SOFT_SKILLS_SPECIALTY_VALUE,
"",
"Set specialty value",
"Soft Skills",
"-1, 1, 0, 0.01" );
237 DiagMenu.RegisterRange(
DiagMenuIDs.DM_LIFESPAN_PLAYTIME_UPDATE,
"",
"Playtime in seconds",
"Lifespan",
"0, 3600, 0, 300" );
245 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SIMULATE_INFINITE_LOOP,
"",
"Simulate infinite loop",
"Simulate script");
246 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SIMULATE_NULL_POINTER,
"",
"Simulate null pointer",
"Simulate script");
247 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SIMULATE_DIVISION_BY_ZERO,
"",
"Simulate division by 0",
"Simulate script");
248 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SIMULATE_ERROR_FUNCTION,
"",
"Simulate Error() function",
"Simulate script");
256 DiagMenu.RegisterBool(
DiagMenuIDs.DM_ITEM_DEBUG_ACTIONS_SHOW,
"lalt+4",
"Item Debug Actions",
"Misc");
259 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PLAYER_STATS_LOG_ENABLE,
"",
"Log Player Stats",
"Misc");
262 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PERMANENT_CROSSHAIR,
"",
"Enable permanent crosshair",
"Misc");
263 DiagMenu.RegisterBool(
DiagMenuIDs.DM_SHOW_VEHICLE_GETOUT_BOX,
"",
"Debug transport freespace",
"Misc");
265 DiagMenu.RegisterRange(
DiagMenuIDs.DM_DISPLAY_PLAYER_INFO,
"",
"Display Player Info",
"Misc",
"0,2,0,1");
266 DiagMenu.RegisterBool(
DiagMenuIDs.DM_ENVIRONMENT_DEBUG_ENABLE,
"",
"Show Environment stats",
"Misc");
267 DiagMenu.RegisterBool(
DiagMenuIDs.DM_DRAW_CHECKERBOARD,
"",
"Draw Checkerboard on screen",
"Misc");
268 DiagMenu.RegisterBool(
DiagMenuIDs.DM_PRESENCE_NOTIFIER_DBG,
"",
"Show Presence to AI dbg",
"Misc");
270 DiagMenu.RegisterBool(
DiagMenuIDs.DM_GO_UNCONSCIOUS_DELAYED,
"",
"Uncons. in 10sec",
"Misc");
274 DiagMenu.RegisterBool(
DiagMenuIDs.DM_DISABLE_PERSONAL_LIGHT,
"",
"Disable Personal Light",
"Misc");
276 DiagMenu.RegisterBool(
DiagMenuIDs.DM_HOLOGRAM,
"lctrl+h",
"Hologram placing debug",
"Misc");
280 DiagMenu.RegisterBool(
DiagMenuIDs.DM_ACTION_TARGETS_NEW,
"",
"New AT Selection",
"Action Targets",
true);
281 DiagMenu.RegisterBool(
DiagMenuIDs.DM_ACTION_TARGETS_DEBUG,
"",
"Show Debug",
"Action Targets");
282 DiagMenu.RegisterBool(
DiagMenuIDs.DM_ACTION_TARGETS_SELPOS_DEBUG,
"",
"Show selection pos debug",
"Action Targets");
283 DiagMenu.RegisterBool(
DiagMenuIDs.DM_HAIR_DISPLAY_DEBUG,
"",
"Display Debug",
"Hair Hiding");
284 DiagMenu.RegisterRange(
DiagMenuIDs.DM_HAIR_LEVEL,
"",
"Hair Level#",
"Hair Hiding",
"0,"+m_TotalHairLevelsAdjusted+
",0,1");
285 DiagMenu.RegisterBool(
DiagMenuIDs.DM_HAIR_LEVEL_HIDE,
"",
"Toggle Hair Level",
"Hair Hiding");
295 DiagMenu.RegisterBool(
DiagMenuIDs.DM_MELEE_DEBUG_ENABLE,
"",
"Enable Melee Debug",
"Melee");
306 DiagMenu.RegisterBool(
DiagMenuIDs.DM_GUN_PARTICLES,
"",
"Enable gun particles",
"Weapon",
true );
310 DiagMenu.RegisterBool(
DiagMenuIDs.DM_WEAPON_ALLOW_RECOIL,
"",
"Procedural Recoil",
"Weapon");
312 DiagMenu.RegisterBool(
DiagMenuIDs.DM_WEAPON_UNLIMITED,
"lalt+9",
"Unlimited Ammo",
"Weapon");
327 CheckCraftingDebugActions();
328 CheckItemDebugActions();
329 CheckAgentInjectActions();
330 CheckGenerateRecipeCache();
331 CheckDayzPlayerMenu();
332 CheckSoftSkillsDebug();
333 CheckSoftSkillsState();
334 CheckSoftSkillsModel();
336 CheckSpecialtyLevel();
338 CheckLifeSpanPlaytimeUpdate();
339 CheckPermanentCrossHairUpdate();
341 CheckShowWeaponDebug();
342 CheckInvincibility();
345 CheckProceduralRecoil();
346 CheckUnlimitedAmmo();
348 CheckEnvironmentStats();
350 CheckDrawCheckerboard();
353 CheckPresenceNotifierDebug();
354 CheckGoUnconscious();
355 CheckGoUnconsciousDelayed();
356 CheckSimulateNULLPointer();
357 CheckSimulateDivisionByZero();
358 CheckSimulateInfiniteLoop();
359 CheckSimulateErrorFunction();
360 CheckShowBleedingSources();
361 CheckDisableBloodLoss();
362 CheckActivateAllBS();
364 CheckActivateBleedingSource();
365 CheckQuickRestrain();
369 CheckPersonalLight();
371 CheckVehicleGetOutBox();
375 void CheckModifiers()
379 if(!m_EnableModifiers)
381 SendModifiersRPC(
true);
382 m_EnableModifiers =
true;
387 if(m_EnableModifiers)
389 SendModifiersRPC(
false);
390 m_EnableModifiers =
false;
395 void CheckUnlimitedAmmo()
399 if(!m_EnableUnlimitedAmmo)
401 SendUnlimitedRPC(
true);
402 m_EnableUnlimitedAmmo =
true;
408 if(m_EnableUnlimitedAmmo)
410 SendUnlimitedRPC(
false);
411 m_EnableUnlimitedAmmo =
false;
417 void CheckDisableBloodLoss()
421 if(!m_DisableBloodLoss)
423 SendDisableBloodLossRPC(
true);
424 m_DisableBloodLoss =
true;
429 if(m_DisableBloodLoss)
431 SendDisableBloodLossRPC(
false);
432 m_DisableBloodLoss =
false;
437 void CheckActivateAllBS()
441 SendActivateAllBSRPC();
451 if(player && player.GetBleedingManagerRemote())
453 player.GetBleedingManagerRemote().Reload();
459 void CheckGenerateRecipeCache()
463 PluginRecipesManager plugin_recipes_manager;
464 Class.CastTo(plugin_recipes_manager,
GetPlugin(PluginRecipesManager));
465 plugin_recipes_manager.CallbackGenerateCache();
470 void CheckShowBleedingSources()
475 if( !m_ShowBleedingSources )
478 player.GetBleedingManagerRemote().SetDiag(
true);
479 m_ShowBleedingSources =
true;
484 if( m_ShowBleedingSources )
487 player.GetBleedingManagerRemote().SetDiag(
false);
488 m_ShowBleedingSources =
false;
493 void CheckKillPlayer()
502 void CheckGoUnconscious()
506 SendGoUnconsciousRPC(
false);
511 void CheckGoUnconsciousDelayed()
515 SendGoUnconsciousRPC(
true);
520 void CheckHairLevel()
523 if (value != m_HairLevelSelected)
525 m_HairLevelSelected = value;
537 SendSetHairLevelHideRPC(-1,value);
542 SendSetHairLevelHideRPC(m_HairLevelSelected,value);
547 void CheckPersonalLight()
555 void CheckItemDebugActions()
561 int test =
ItemBase.GetDebugActionsMask();
564 SendDebugActionsRPC();
572 ItemBase.SetDebugActionsMask(mask2);
573 SendDebugActionsRPC();
578 void CheckBulletImpact()
583 pl_player.SpawnDamageDealtEffect();
593 void CheckShockImpact()
598 if (tmp >= 1.0) tmp = 0.25;
599 pl_player.SpawnShockEffect(tmp);
611 void CheckAgentInjectActions()
619 SendDebugActionsRPC();
627 ItemBase.SetDebugActionsMask(mask2);
628 SendDebugActionsRPC();
654 void CheckCraftingDump()
658 PluginRecipesManager plugin_recipes_manager;
659 Class.CastTo(plugin_recipes_manager,
GetPlugin(PluginRecipesManager));
660 plugin_recipes_manager.GenerateHumanReadableRecipeList();
668 void CheckCraftingDebugActions()
672 if(!m_ShowCraftingDebugActions)
674 SendDebugCraftingRPC(
true);
675 PluginRecipesManager plugin_recipes_manager;
676 Class.CastTo(plugin_recipes_manager,
GetPlugin(PluginRecipesManager));
677 plugin_recipes_manager.SetEnableDebugCrafting(
true);
678 m_ShowCraftingDebugActions =
true;
683 if(m_ShowCraftingDebugActions)
685 SendDebugCraftingRPC(
false);
686 PluginRecipesManager plugin_recipes_manager2;
687 Class.CastTo(plugin_recipes_manager2,
GetPlugin(PluginRecipesManager));
688 plugin_recipes_manager2.SetEnableDebugCrafting(
false);
689 m_ShowCraftingDebugActions =
false;
694 void CheckInvincibility()
700 SendInvincibilityRPC(
true);
701 m_IsInvincible =
true;
708 SendInvincibilityRPC(
false);
709 m_IsInvincible =
false;
719 if(!m_StaminaDisabled)
721 m_StaminaDisabled =
true;
726 if(m_StaminaDisabled)
728 m_StaminaDisabled =
false;
734 void CheckLogPlayerStats()
738 if(!m_LogPlayerStats)
740 SendLogPlayerStatsRPC(
true);
741 m_LogPlayerStats =
true;
748 SendLogPlayerStatsRPC(
false);
749 m_LogPlayerStats =
false;
755 void CheckSoftSkillsDebug()
762 if(!m_SoftSkillsDebug)
765 player.GetSoftSkillsManager().CreateDebugWindow(
true );
766 SoftSkillsShowDebugRPC(
true);
767 m_SoftSkillsDebug =
true;
772 if(m_SoftSkillsDebug)
775 player.GetSoftSkillsManager().CreateDebugWindow(
false );
776 SoftSkillsShowDebugRPC(
false);
777 m_SoftSkillsDebug =
false;
783 void CheckSoftSkillsState()
787 if(!m_SoftSkillsState)
789 SoftSkillsToggleStateRPC(
true);
790 m_SoftSkillsState =
true;
795 if(m_SoftSkillsState)
797 SoftSkillsToggleStateRPC(
false);
798 m_SoftSkillsState =
false;
804 void CheckGunParticles()
808 if(!m_GunParticlesState)
810 GunParticlesToggleStateRPC(
false);
811 m_GunParticlesState =
true;
816 if(m_GunParticlesState)
818 GunParticlesToggleStateRPC(
true);
819 m_GunParticlesState =
false;
825 void CheckSoftSkillsModel()
829 if(!m_SoftSkillsModel)
831 SoftSkillsToggleModelRPC(
true);
832 m_SoftSkillsModel =
true;
837 if(m_SoftSkillsModel)
839 SoftSkillsToggleModelRPC(
false);
840 m_SoftSkillsModel =
false;
846 void CheckSpecialtyLevel()
848 float specialty_value =
DiagMenu.GetRangeValue(
DiagMenuIDs.DM_SOFT_SKILLS_SPECIALTY_VALUE );
850 if( m_SpecialtyLevel != specialty_value )
852 SoftSkillsSetSpecialtyRPC( specialty_value );
853 m_SpecialtyLevel = specialty_value;
858 void CheckActivateBleedingSource()
862 if( bleeding_source != m_BleedingSourceRequested )
864 SendActivateBleedingSource(bleeding_source);
865 m_BleedingSourceRequested = bleeding_source;
871 void CheckBloodyHands()
877 LifespanBloodyHandsRPC(
true);
885 LifespanBloodyHandsRPC(
false);
892 void CheckLifeSpanPlaytimeUpdate()
896 if( m_LifespanLevel != lifespan_level )
898 LifespanPlaytimeUpdateRPC( lifespan_level );
899 m_LifespanLevel = lifespan_level;
903 void CheckPermanentCrossHairUpdate()
905 PluginPermanentCrossHair crosshair;
908 if(!m_PermanentCrossHair)
911 crosshair.SwitchPermanentCrossHair(
true);
912 m_PermanentCrossHair =
true;
917 if(m_PermanentCrossHair)
920 crosshair.SwitchPermanentCrossHair(
false);
921 m_PermanentCrossHair =
false;
927 void CheckVehicleGetOutBox()
931 if (m_VehicleFreeAreaBox)
933 m_VehicleFreeAreaBox.Destroy();
934 m_VehicleFreeAreaBox = null;
937 HumanCommandVehicle hcv =
GetGame().GetPlayer().GetCommand_Vehicle();
942 else if (m_VehicleFreeAreaBox)
944 m_VehicleFreeAreaBox.Destroy();
945 m_VehicleFreeAreaBox = null;
950 void CheckToggleHud()
958 hud =
GetGame().GetMission().GetHud();
959 hud.Show( m_ToggleHud );
960 GetGame().GetMission().HideCrosshairVisibility();
968 hud =
GetGame().GetMission().GetHud();
969 hud.Show( m_ToggleHud );
970 GetGame().GetMission().RefreshCrosshairVisibility();
977 void CheckShowWeaponDebug()
982 if(!m_ShowingWeaponDebug)
986 player.ShowWeaponDebug(
true);
987 m_ShowingWeaponDebug =
true;
992 if(m_ShowingWeaponDebug)
995 player.ShowWeaponDebug(
false);
996 m_ShowingWeaponDebug =
false;
1001 void CheckProceduralRecoil()
1006 if(!m_ProceduralRecoilEnabled)
1010 SendProceduralRecoilRPC(
true);
1011 m_ProceduralRecoilEnabled =
true;
1016 if(m_ProceduralRecoilEnabled)
1020 SendProceduralRecoilRPC(
false);
1021 m_ProceduralRecoilEnabled =
false;
1026 void CheckQuickRestrain()
1031 if(!m_EnableQuickRestrain)
1033 SendEnableQuickRestrainRPC(
true);
1034 m_EnableQuickRestrain =
true;
1039 if(m_EnableQuickRestrain)
1041 SendEnableQuickRestrainRPC(
false);
1042 m_EnableQuickRestrain =
false;
1048 void CheckQuickFishing()
1053 if (!m_EnableQuickFishing)
1055 SendEnableQuickFishingRPC(
true);
1056 m_EnableQuickFishing =
true;
1061 if (m_EnableQuickFishing)
1063 SendEnableQuickFishingRPC(
false);
1064 m_EnableQuickFishing =
false;
1071 void CheckCamShake()
1075 GetGame().GetPlayer().GetCurrentCamera().SpawnCameraShake(1,1,15,4);
1082 void CheckAimNoise()
1087 if(!m_AimNoiseEnabled)
1091 player.GetAimingModel().SetAimNoiseAllowed(
true);
1092 m_AimNoiseEnabled =
true;
1097 if(m_AimNoiseEnabled)
1100 player.GetAimingModel().SetAimNoiseAllowed(
false);
1101 m_AimNoiseEnabled =
false;
1107 void CheckDayzPlayerMenu()
1111 if (actMenuValue != m_DayzPlayerDebugMenu)
1119 pd.ToggleDebugWindowSetMode(actMenuValue);
1123 m_DayzPlayerDebugMenu = actMenuValue;
1129 void CheckDisplayMenu()
1131 PluginRemotePlayerDebugClient plugin_remote_client;
1136 if( m_DisplayPlayerInfo != value )
1138 plugin_remote_client = PluginRemotePlayerDebugClient.Cast(
GetPlugin(PluginRemotePlayerDebugClient) );
1141 m_DisplayPlayerInfo = value;
1146 if( m_DisplayPlayerInfo != 0 )
1148 plugin_remote_client = PluginRemotePlayerDebugClient.Cast(
GetPlugin(PluginRemotePlayerDebugClient) );
1151 m_DisplayPlayerInfo = 0;
1156 void CheckEnvironmentStats()
1160 if(!m_EnvironmentStats)
1161 m_EnvironmentStats =
true;
1165 if(m_EnvironmentStats)
1166 m_EnvironmentStats =
false;
1170 void CheckDrawCheckerboard()
1174 if(!m_DrawCheckerboard) m_DrawCheckerboard =
true;
1178 if(m_DrawCheckerboard) m_DrawCheckerboard =
false;
1182 void CheckPresenceNotifierDebug()
1186 if(!m_PresenceNotifierDebug) m_PresenceNotifierDebug =
true;
1190 if(m_PresenceNotifierDebug) m_PresenceNotifierDebug =
false;
1195 void CheckSimulateNULLPointer()
1199 SendSimulateNULLPointer();
1204 void CheckSimulateDivisionByZero()
1208 SendSimulateDivisionByZero();
1213 void CheckSimulateInfiniteLoop()
1217 SendSimulateInfiniteLoop();
1222 void CheckSimulateErrorFunction()
1226 SendSimulateErrorFunction();
1232 void SendDebugActionsRPC()
1240 void SendEnableQuickRestrainRPC(
bool enable)
1244 if(player) player.SetQuickRestrain(enable);
1250 void SendEnableQuickFishingRPC(
bool enable)
1254 if (player) player.SetQuickFishing(enable);
1260 void SendProceduralRecoilRPC(
bool enable)
1264 if(player) player.GetAimingModel().SetProceduralRecoilEnabled(enable);
1270 void SendActivateAllBSRPC()
1276 void SendKillPlayerRPC()
1282 void SendInvincibilityRPC(
bool enable)
1289 void SendLogPlayerStatsRPC(
bool enable)
1296 void SendModifiersRPC(
bool enable)
1303 void SendUnlimitedRPC(
bool enable)
1310 void SendDisableBloodLossRPC(
bool enable)
1317 void SendDebugCraftingRPC(
bool enable)
1324 void SoftSkillsShowDebugRPC(
bool enable)
1331 void SoftSkillsToggleStateRPC(
bool enable)
1338 void GunParticlesToggleStateRPC(
bool enable)
1345 void SoftSkillsToggleModelRPC(
bool enable)
1352 void SoftSkillsSetSpecialtyRPC(
float specialty_value )
1359 void LifespanBloodyHandsRPC(
bool enable)
1366 void LifespanPlaytimeUpdateRPC(
float playtime )
1373 void SendMeleeBlockStanceRPC(
bool enable)
1380 void SendMeleeFightRPC(
bool enable)
1387 void SendGoUnconsciousRPC(
bool is_delayed)
1389 Param1<bool> p1 =
new Param1<bool>(is_delayed);
1394 void SendSimulateNULLPointer()
1399 void SendSimulateDivisionByZero()
1405 void SendSimulateInfiniteLoop()
1411 void SendSimulateErrorFunction()
1417 void SendActivateBleedingSource(
int bleeding_source)
1419 Param1<int> p1 =
new Param1<int>(bleeding_source);
1424 void SendSetHairLevelRPC()
1430 void SendSetHairLevelHideRPC(
int level,
bool value)
1444 case ERPCs.DEV_SIMULATE_NULL_POINTER:
1446 NULL_player.SetHealth(
"",
"", -1);
1449 case ERPCs.DEV_SIMULATE_DIVISION_BY_ZERO:
1451 int division_by_zero = 1/zero;
1454 case ERPCs.DEV_SIMULATE_INFINITE_LOOP:
1457 Print(
"simulated infinite loop");
1461 case ERPCs.DEV_SIMULATE_ERROR_FUNCTION:
1462 Error(
"Simulated error");
1471 case ERPCs.DEV_ACTIVATE_BS:
1473 player.GetBleedingManagerServer().DebugActivateBleedingSource(
CachedObjectsParams.PARAM1_INT.param1);
1476 case ERPCs.DEV_RPC_UNLIMITED_AMMO:
1489 case ERPCs.RPC_DISABLE_MODIFIERS:
1492 player.SetModifiers( enable );
1495 case ERPCs.DEV_RPC_DISABLE_BLOODLOOS:
1500 case ERPCs.RPC_KILL_PLAYER:
1501 player.SetHealth(
"",
"", -1);
1504 case ERPCs.DEV_ACTIVATE_ALL_BS:
1505 player.GetBleedingManagerServer().ActivateAllBS();
1508 case ERPCs.RPC_ENABLE_INVINCIBILITY:
1511 player.SetAllowDamage(!enable);
1514 case ERPCs.RPC_ITEM_DEBUG_ACTIONS:
1517 ItemBase.SetDebugActionsMask(mask);
1520 case ERPCs.RPC_WEAPON_PROC_RECOIL:
1523 player.GetAimingModel().SetProceduralRecoilEnabled(enable);
1526 case ERPCs.RPC_ENABLE_QUICK_RESTRAIN:
1529 player.SetQuickRestrain(enable);
1532 case ERPCs.RPC_ENABLE_QUICK_FISHING:
1535 player.SetQuickFishing(enable);
1538 case ERPCs.RPC_LOG_PLAYER_STATS:
1543 case ERPCs.RPC_SOFT_SKILLS_TOGGLE_STATE:
1548 case ERPCs.RPC_SOFT_SKILLS_DEBUG_WINDOW:
1554 player.GetSoftSkillsManager().StartSynchTimer();
1558 player.GetSoftSkillsManager().StopSynchTimer();
1559 player.GetSoftSkillsManager().ResetDebugWindow();
1564 case ERPCs.RPC_GUN_PARTICLES_TOGGLE:
1569 case ERPCs.RPC_CRAFTING_DEBUG:
1571 PluginRecipesManager plugin_recipes_manager;
1572 Class.CastTo(plugin_recipes_manager,
GetPlugin(PluginRecipesManager));
1576 case ERPCs.RPC_SOFT_SKILLS_TOGGLE_MODEL:
1581 case ERPCs.RPC_SOFT_SKILLS_SET_SPECIALTY:
1587 player.GetStatSpecialty().Set( specialty );
1590 case ERPCs.RPC_LIFESPAN_BLOODY_HANDS:
1595 lifespan_bloody_hands.UpdateBloodyHandsVisibility( player, enable );
1598 case ERPCs.RPC_LIFESPAN_PLAYTIME_UPDATE:
1601 float playtime = player.StatGet(
"playtime");
1602 float opposite_playtime = playtime * ( -1 );
1603 player.StatUpdate(
"playtime", opposite_playtime );
1606 player.StatUpdate(
"playtime", playtime_update );
1607 player.SetLastShavedSeconds( 0 );
1611 module_lifespan_update.UpdateLifespan( player,
true );
1612 module_lifespan_update.ChangeFakePlaytime( player, playtime_update );
1615 case ERPCs.DEV_GO_UNCONSCIOUS:
1619 if(player.IsUnconscious())
1621 player.SetHealth(
"",
"Shock",100);
1625 player.m_UnconsciousEndTime = -60;
1626 player.SetHealth(
"",
"Shock",0);
1635 case ERPCs.DEV_HAIR_LEVEL_HIDE:
1638 player.UpdateHairSelectionVisibility(
true);
1643 void GoUnconsciousDelayed(Param1<PlayerBase> p1)
1646 if(player.IsUnconscious())
1648 player.SetHealth(
"",
"Shock",100);
1652 player.m_UnconsciousEndTime = -60;
1653 player.SetHealth(
"",
"Shock",0);
Super root of all classes in Enforce script.
Plugin interface for controlling of agent pool system.
void OnRPC(PlayerBase player, int rpc_type, ParamsReadContext ctx)
Serialization general interface. Serializer API works with:
void SynchSpecialtyLevel()
void SetSpecialtyLevel(float specialty_level)
override Shape DebugFreeAreaAtDoor(int currentSeat, float maxAllowedObjHeight=0.5, float horizontalExtents=0.5, float playerHeight=1.7)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
void OnInit()
Callback for user defined initialization. Called for all suites during TestHarness....
void PluginDayzPlayerDebug()
ref map< string, ref BloodyHands > m_BloodyHands
PluginBase GetPlugin(typename plugin_type)
class PluginManager g_Plugins
void SoftSkillManagerDebug(SoftSkillsManager softskill_manager)