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

Function cheat_subLife

TheForceEngine/TFE_DarkForces/player.cpp:1360–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1358 }
1359
1360 void cheat_subLife()
1361 {
1362 if (s_lifeCount > 0)
1363 {
1364 s_lifeCount--;
1365 const char* msg = TFE_System::getMessage(TFE_MSG_SUBLIFE);
1366 if (msg) { hud_sendTextMessage(msg, 1); }
1367 }
1368 }
1369
1370 void cheat_maxLives()
1371 {

Callers 2

executeCheatFunction · 0.85
configDarkForcesCheatsFunction · 0.85

Calls 2

hud_sendTextMessageFunction · 0.85
getMessageFunction · 0.50

Tested by

no test coverage detected