if(!warmup_stage)
{
int pl_lives = GameRules_scoring_add(player, LMS_LIVES, 0);
+ float pl_health = IS_DEAD(player) ? start_health : GetResource(player, RES_HEALTH);
+ float pl_armor = IS_DEAD(player) ? start_armorvalue : GetResource(player, RES_ARMOR);
if (!last_forfeiter_lives || pl_lives < last_forfeiter_lives)
{
last_forfeiter_lives = pl_lives;
- last_forfeiter_health = GetResource(player, RES_HEALTH);
- last_forfeiter_armorvalue = GetResource(player, RES_ARMOR);
+ last_forfeiter_health = pl_health;
+ last_forfeiter_armorvalue = pl_armor;
}
else if (pl_lives == last_forfeiter_lives)
{
// these values actually can belong to a different forfeiter
- last_forfeiter_health = min(last_forfeiter_health, GetResource(player, RES_HEALTH));
- last_forfeiter_armorvalue = min(last_forfeiter_armorvalue, GetResource(player, RES_ARMOR));
+ last_forfeiter_health = min(last_forfeiter_health, pl_health);
+ last_forfeiter_armorvalue = min(last_forfeiter_armorvalue, pl_armor);
}
GameRules_scoring_add(player, LMS_LIVES, -pl_lives);
}
MULTITEAM_CENTER(KEYHUNT_START, N_ENABLE, 0, 0, "", CPID_KEYHUNT, "0 0", _("^BGYou are starting with the ^TC^TT Key"), "", KEY)
MSG_CENTER_NOTIF(LMS_NOLIVES, N_ENABLE, 0, 0, "", CPID_LMS, "0 0", _("^BGYou have no lives left, you must wait until the next match"), "")
- // TODO update notifications.cfg
MSG_CENTER_NOTIF(LMS_VISIBLE_LEADER, N_ENABLE, 0, 0, "", CPID_LMS, "0 0", _("^BGEnemies can now see you on radar!"), "")
MSG_CENTER_NOTIF(LMS_VISIBLE_OTHER, N_ENABLE, 0, 0, "", CPID_LMS, "0 0", _("^BGLeaders can now be seen by enemies on radar!"), "")