196#ifdef DIAG_MISC_ACTION_ON_CURSOR
432#ifdef TRIGGER_DEBUG_BASIC
546 case ERPCs.DIAG_ITEM_DEBUG_ACTIONS:
557 case ERPCs.DIAG_PLAYER_SYMPTOMS_DEBUG_ON:
558 case ERPCs.DIAG_PLAYER_SYMPTOMS_DEBUG_OFF:
559 case ERPCs.DIAG_PLAYER_SYMPTOMS_DEBUG:
561 if (
player.GetSymptomManager())
570 case ERPCs.DIAG_CRAFTING_INSTANT:
584 case ERPCs.DIAG_CHEATS_MODIFIERS:
592 case ERPCs.DIAG_CHEATS_KILL_PLAYER:
594 player.SetHealth(
"",
"", -1);
599 case ERPCs.DIAG_CHEATS_INVINCIBILITY:
609 parent.SetAllowDamage(
true);
610 parent.SetCanBeDestroyed(
true);
613 player.SetAllowDamage(
true);
614 player.SetCanBeDestroyed(
true);
621 parent.SetAllowDamage(
true);
622 parent.SetCanBeDestroyed(
false);
625 player.SetAllowDamage(
true);
626 player.SetCanBeDestroyed(
false);
632 parent.SetAllowDamage(
false);
634 player.SetAllowDamage(
false);
643 case ERPCs.DIAG_CHEATS_DISABLE_STAMINA:
651 case ERPCs.DIAG_CHEATS_RESET_PLAYER:
653 player.ResetPlayer(
false);
658 case ERPCs.DIAG_CHEATS_RESET_PLAYER_MAX:
665 case ERPCs.DIAG_CHEATS_INVENTORY_ACCESS:
673 case ERPCs.DIAG_CHEATS_ITEMS_FIX:
675 player.FixAllInventoryItems();
681 case ERPCs.DIAG_CHEATS_CREATE_HIT:
687 case ERPCs.DIAG_CHEATS_CREATE_HIT_LIGHT:
696 case ERPCs.DIAG_SOFT_SKILLS_SHOW_DEBUG:
701 player.GetSoftSkillsManager().StartSynchTimer();
704 player.GetSoftSkillsManager().StopSynchTimer();
705 player.GetSoftSkillsManager().ResetDebugWindow();
712 case ERPCs.DIAG_SOFT_SKILLS_TOGGLE_STATE:
720 case ERPCs.DIAG_SOFT_SKILLS_TOGGLE_MODEL:
728 case ERPCs.DIAG_SOFT_SKILLS_SPECIALTY_VALUE:
743 case ERPCs.DIAG_LIFESPAN_BLOODY_HANDS:
754 case ERPCs.DIAG_LIFESPAN_PLAYTIME_UPDATE:
762 player.SetLastShavedSeconds(0);
775 case ERPCs.DIAG_MISC_LOG_PLAYER_STATS:
787 case ERPCs.DIAG_MISC_ENVIRONMENT_DEBUG:
797 case ERPCs.DIAG_MISC_ENVIRONMENT_LOGGING_DRYWET:
810 case ERPCs.DIAG_MISC_FALLDAMAGE_DEBUG:
814 if (
player.GetFallDamage())
821 case ERPCs.DIAG_MISC_GO_UNCONSCIOUS:
828 case ERPCs.DIAG_MISC_GO_UNCONSCIOUS_DELAYED:
835 case ERPCs.DIAG_MISC_QUICK_RESTRAIN:
845 case ERPCs.DIAG_MISC_HAIR_LEVEL_HIDE:
850 player.UpdateHairSelectionVisibility(
true);
858 case ERPCs.DIAG_MISC_QUICK_FISHING:
866 case ERPCs.DIAG_MISC_TARGETABLE_BY_AI:
874 case ERPCs.DIAG_MISC_DEBUG_MONITOR:
884 case ERPCs.DIAG_SIMULATE_INFINITE_LOOP:
887 Print(
"simulating infinite loop");
892 case ERPCs.DIAG_SIMULATE_NULL_POINTER:
900 case ERPCs.DIAG_SIMULATE_DIVISION_BY_ZERO:
908 case ERPCs.DIAG_SIMULATE_ERROR_FUNCTION:
918 case ERPCs.DIAG_WEAPON_PARTICLES:
926 case ERPCs.DIAG_WEAPON_RECOIL:
934 case ERPCs.DIAG_WEAPON_BURST_VERSION:
945 case ERPCs.DIAG_BLEEDING_DISABLE_BLOOD_LOSS:
953 case ERPCs.DIAG_BLEEDING_ACTIVATE_SOURCE:
961 case ERPCs.DIAG_BLEEDING_ACTIVATE_ALL_SOURCES:
963 player.GetBleedingManagerServer().ActivateAllBS();
971 case ERPCs.DIAG_LOGS_ACTIONS:
979 case ERPCs.DIAG_LOGS_WEAPONS:
987 case ERPCs.DIAG_LOGS_SYNC:
995 case ERPCs.DIAG_LOGS_BASEBUILDING:
1003 case ERPCs.DIAG_LOGS_SYMPTOMS:
1011 case ERPCs.DIAG_LOGS_INVENTORY_MOVE:
1019 case ERPCs.DIAG_LOGS_INVENTORY_RESERVATION:
1027 case ERPCs.DIAG_LOGS_INVENTORY_HFSM:
1035 case ERPCs.DIAG_LOGS_QUICKBAR:
1043 case ERPCs.DIAG_LOGS_BLEEDING_CHANCES:
1053 case ERPCs.DIAG_BASEBUILDING_WOOD:
1061 case ERPCs.DIAG_BASEBUILDING_GATE:
1072 case ERPCs.DIAG_FINISHERS_FORCE_FINISHER:
1083 case ERPCs.DIAG_CAMERATOOLS_CAM_DATA:
1085 if (!
player.m_CameraToolsMenuClient)
1088 player.m_CameraToolsMenuClient.OnRPC(
ctx);
1096 case ERPCs.DIAG_TIMEACCEL:
1111 GetGame().RPCSingleParam(
p,
ERPCs.DIAG_TIMEACCEL_CLIENT_SYNC,
tap,
true,
p.GetIdentity());
1130 case ERPCs.DIAG_TIMEACCEL_CLIENT_SYNC:
1147 case ERPCs.DIAG_VEHICLE_DEBUG_OUTPUT:
1154 case ERPCs.DIAG_VEHICLES_DUMP_CRASH_DATA_REQUEST:
1166 if (
player.IsUnconscious())
1167 player.SetHealth(
"",
"Shock", 100);
1170 player.m_UnconsciousEndTime = -60;
1171 player.SetHealth(
"",
"Shock", 0);
1186 value.Replace(
" ",
"");