Regenerating armor

This commit is contained in:
Izuru Yakumo
2025-07-20 22:38:05 -03:00
parent 95ec0e83fa
commit 8275f617a7
3 changed files with 14 additions and 0 deletions

View File

@@ -470,6 +470,11 @@ void ClientTimerActions( gentity_t *ent, int msec ) {
}
}
// New in Illusion Arena r33
// Regenerating armor
if ( client->ps.stats[STAT_ARMOR] < client->ps.stats[STAT_MAX_HEALTH] ) {
client->ps.stats[STAT_ARMOR]+=g_regen_armor.integer;
}
// count down armor when over max
if ( client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH] ) {
client->ps.stats[STAT_ARMOR]--;