]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix health regeneration starting when player is frozen, more easily noticeable settin...
authorterencehill <piuntn@gmail.com>
Tue, 20 Nov 2012 23:18:59 +0000 (00:18 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 20 Nov 2012 23:18:59 +0000 (00:18 +0100)
qcsrc/server/mutators/gamemode_freezetag.qc
qcsrc/server/w_minstanex.qc

index 95c8790c3055c720c448b9494996ee41bd552727..97ab6854610013570cfb3d3cf2bc271d6c19d959 100644 (file)
@@ -360,6 +360,8 @@ MUTATOR_HOOKFUNCTION(freezetag_PlayerPreThink)
        float n;
        vector revive_extra_size;
 
+       if(self.freezetag_frozen && !self.freezetag_revive_progress)
+               self.health = 1;
        if(next_round || (time > warmup - autocvar_g_freezetag_warmup && time < warmup))
                return 1; // already waiting for next round to start
 
index 1f1137e4b845b151321d1501c5dbdca9e325b2fd..08841f571841126125f8b06dbf61c11bd557694c 100644 (file)
@@ -104,8 +104,9 @@ void minstagib_ammocheck(void)
                minstagib_stop_countdown(self);
        else if (self.ammo_cells > 0 || (self.items & IT_UNLIMITED_WEAPON_AMMO))
        {
+               if (self.minstagib_needammo)
+                       self.health = 100;
                minstagib_stop_countdown(self);
-               self.health = 100;
        }
        else
        {