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

Function cheat_instaDeath

TheForceEngine/TFE_DarkForces/player.cpp:1394–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1392 }
1393
1394 void cheat_instaDeath()
1395 {
1396 // This way if we already had one-hit-kill enabled, we don't end
1397 // up with one-hit kill off and insta-death on - though if the
1398 // player wants that to happen, they can type LA_IMDEATH again
1399 // after using this cheat.
1400 s_instaDeathEnabled = ~s_instaDeathEnabled;
1401 const char* msg = TFE_System::getMessage(TFE_MSG_HARDCORE);
1402 if (msg) { hud_sendTextMessage(msg, 1); }
1403 }
1404
1405 void player_setupCamera()
1406 {

Callers 2

executeCheatFunction · 0.85
configDarkForcesCheatsFunction · 0.85

Calls 2

hud_sendTextMessageFunction · 0.85
getMessageFunction · 0.50

Tested by

no test coverage detected