mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-16 17:10:55 +00:00
SERVER: Regen health instantly when a new Round starts
This commit is contained in:
parent
41cd921c5f
commit
24f772d0b9
2 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue