mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2025-02-16 17:21:04 +00:00
Count down health to 100 in DM/CTF/DOM too.
This commit is contained in:
parent
ec32109571
commit
b053cc7144
1 changed files with 2 additions and 2 deletions
|
@ -658,7 +658,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) {
|
||||||
// count down health when over max
|
// count down health when over max
|
||||||
// STONELANCE
|
// STONELANCE
|
||||||
// if ( ent->health > client->ps.stats[STAT_MAX_HEALTH] ) {
|
// if ( ent->health > client->ps.stats[STAT_MAX_HEALTH] ) {
|
||||||
if (((!isRallyRace() && !g_gametype.integer == GT_DERBY)
|
if (((!isRallyRace() && g_gametype.integer != GT_DERBY)
|
||||||
|| level.startRaceTime) && ent->health > client->ps.stats[STAT_MAX_HEALTH]){
|
|| level.startRaceTime) && ent->health > client->ps.stats[STAT_MAX_HEALTH]){
|
||||||
// END
|
// END
|
||||||
ent->health--;
|
ent->health--;
|
||||||
|
@ -668,7 +668,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) {
|
||||||
// count down armor when over max
|
// count down armor when over max
|
||||||
// STONELANCE
|
// STONELANCE
|
||||||
// if ( client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH] ) {
|
// if ( client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH] ) {
|
||||||
if (((!isRallyRace() && !g_gametype.integer == GT_DERBY) || level.startRaceTime)
|
if (((!isRallyRace() && g_gametype.integer != GT_DERBY) || level.startRaceTime)
|
||||||
&& client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH]){
|
&& client->ps.stats[STAT_ARMOR] > client->ps.stats[STAT_MAX_HEALTH]){
|
||||||
// END
|
// END
|
||||||
client->ps.stats[STAT_ARMOR]--;
|
client->ps.stats[STAT_ARMOR]--;
|
||||||
|
|
Loading…
Reference in a new issue