SERVER: Regen health instantly when a new Round starts

This commit is contained in:
Steam Deck User 2023-03-10 12:24:19 -05:00
parent 41cd921c5f
commit 24f772d0b9
2 changed files with 7 additions and 1 deletions

View file

@ -387,7 +387,9 @@ void() PlayerPostThink =
if (self.health_was_very_low == true) {
self.health += 120 * frametime;
} else {
self.health = self.max_health;
// Was 100% instant, but this delays it by only a few
// frames so the graphic doesn't just vanish when healed.
self.health += 300 * frametime;
}
// Make sure we mark that we weren't just super hurt anymore.

View file

@ -211,6 +211,10 @@ void() NewRound =
if (tempe.secondary_grenades > 2)
tempe.secondary_grenades = 2;
}
// Set everyone to full health.
tempe.health = tempe.max_health;
tempe = find(tempe, classname, "player");
}