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

Function cheat_addLife

TheForceEngine/TFE_DarkForces/player.cpp:1345–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343 }
1344
1345 void cheat_addLife()
1346 {
1347 if (s_lifeCount < 9)
1348 {
1349 s_lifeCount++;
1350 const char* msg = TFE_System::getMessage(TFE_MSG_ADDLIFE);
1351 if (msg) { hud_sendTextMessage(msg, 1); }
1352 }
1353 else
1354 {
1355 const char* msg = TFE_System::getMessage(TFE_MSG_ADDLIFEFAIL);
1356 if (msg) { hud_sendTextMessage(msg, 1); }
1357 }
1358 }
1359
1360 void cheat_subLife()
1361 {

Callers 2

executeCheatFunction · 0.85
configDarkForcesCheatsFunction · 0.85

Calls 2

hud_sendTextMessageFunction · 0.85
getMessageFunction · 0.50

Tested by

no test coverage detected