]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Some minor tweak
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 13:28:01 +0000 (16:28 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 13:28:01 +0000 (16:28 +0300)
data/qcsrc/server/vore.qc

index b7e3b6ddf1563f5956f04813b4f6dbe6fc4b55dc..8dcf2a9be07e27525cf3070fa7c7de4504d92487 100644 (file)
@@ -3,6 +3,7 @@
 .float complain_swallow;\r
 const float complain_delay = 1;\r
 const float button_delay = 0.5;\r
+const float steptime = 0.1;\r
 \r
 .float vore_oldmovetype, vore_oldsolid, vore_oldstomachload;\r
 \r
@@ -144,7 +145,7 @@ void Vore_Disconnect()
 void Vore_Digest()\r
 {\r
        // apply digestion to prey\r
-       if(time > self.eater.digestion_step + 0.1)\r
+       if(time > self.eater.digestion_step + steptime)\r
        {\r
                Damage(self, self.eater, self.eater, cvar("g_balance_vore_digestion_damage"), DEATH_DIGESTION, self.origin, '0 0 0');\r
                if(cvar("g_balance_vore_digestion_vampire") && self.eater.health < cvar("g_balance_vore_digestion_vampire_stable"))\r
@@ -167,7 +168,7 @@ void Vore_Digest()
 void Vore_Teamheal()\r
 {\r
        if(cvar("g_balance_vore_teamheal") && self.health < cvar("g_balance_vore_teamheal_stable"))\r
-       if(time > self.teamheal_step + 0.1)\r
+       if(time > self.teamheal_step + steptime)\r
        {\r
                self.health += cvar("g_balance_vore_teamheal");\r
                self.teamheal_step = time;\r