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

Function player_revive

TheForceEngine/TFE_DarkForces/player.cpp:1063–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061 }
1062
1063 void player_revive()
1064 {
1065 // player_revive() is called when the player respawns, which is why it sets 100 for shields here.
1066 // In the case of picking up the item, the value is then set to 200 after the function call.
1067 s_playerInfo.shields = min(100, s_shieldsMax);
1068 s_playerInfo.health = s_healthMax;
1069 s_playerInfo.healthFract = 0;
1070 s_playerDying = 0;
1071 }
1072
1073 s32 player_getLifeCount()
1074 {

Callers 2

pickupItemFunction · 0.85
handlePlayerDyingFunction · 0.85

Calls 1

minFunction · 0.85

Tested by

no test coverage detected