MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / executeCheat

Function executeCheat

TheForceEngine/TFE_DarkForces/mission.cpp:1104–1264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1102 }
1103
1104 void executeCheat(CheatID cheatID)
1105 {
1106 // Do not allow cheats while recording
1107 if (cheatID == CHEAT_NONE || isRecording())
1108 {
1109 return;
1110 }
1111
1112 switch (cheatID)
1113 {
1114 case CHEAT_LACDS:
1115 {
1116 cheat_revealMap();
1117 } break;
1118 case CHEAT_LANTFH:
1119 {
1120 automap_updateMapData(MAP_TELEPORT);
1121 cheat_teleport();
1122 } break;
1123 case CHEAT_LAPOGO:
1124 {
1125 cheat_toggleHeightCheck();
1126 } break;
1127 case CHEAT_LARANDY:
1128 {
1129 cheat_supercharge();
1130 } break;
1131 case CHEAT_LAIMLAME:
1132 {
1133 cheat_godMode();
1134 } break;
1135 case CHEAT_LAPOSTAL:
1136 {
1137 cheat_postal();
1138 } break;
1139 case CHEAT_LADATA:
1140 {
1141 cheat_toggleData();
1142 } break;
1143 case CHEAT_LABUG:
1144 {
1145 cheat_bugMode();
1146 } break;
1147 case CHEAT_LAREDLITE:
1148 {
1149 cheat_pauseAI();
1150 } break;
1151 case CHEAT_LASECBASE:
1152 {
1153 cheat_gotoLevel(0);
1154 } break;
1155 case CHEAT_LATALAY:
1156 {
1157 cheat_gotoLevel(1);
1158 } break;
1159 case CHEAT_LASEWERS:
1160 {
1161 cheat_gotoLevel(2);

Callers 2

handleBufferedInputFunction · 0.85
handleGeneralInputFunction · 0.85

Calls 15

isRecordingFunction · 0.85
cheat_revealMapFunction · 0.85
automap_updateMapDataFunction · 0.85
cheat_teleportFunction · 0.85
cheat_toggleHeightCheckFunction · 0.85
cheat_superchargeFunction · 0.85
cheat_godModeFunction · 0.85
cheat_postalFunction · 0.85
cheat_toggleDataFunction · 0.85
cheat_bugModeFunction · 0.85
cheat_pauseAIFunction · 0.85
cheat_gotoLevelFunction · 0.85

Tested by

no test coverage detected