]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Pause health rot when gaining health from digesting items
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 15:14:52 +0000 (17:14 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 15:14:52 +0000 (17:14 +0200)
data/qcsrc/server/t_items.qc

index 6d9dfadf1cfa4acfb22bf9d72c674e97a6a4ddae..975ea4ffdae9fc5b667497fd5c7f218a1f55ffc2 100644 (file)
@@ -261,6 +261,7 @@ void Item_Consumable_Think()
 \r
                        self.health -= damage;\r
                        self.predator.health += damage;\r
+                       self.predator.pauserothealth_finished = max(self.predator.pauserothealth_finished, time + cvar("g_balance_pause_health_rot"));\r
 \r
                        self.item_digestion_step = time + vore_steptime;\r
                }\r