]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/vore.qc
Fix comments and move check
[voretournament/voretournament.git] / data / qcsrc / server / vore.qc
index 26f68af702e85be06d5808f41180d3d92424a32e..8d59e2bbd8091e29ef0944a184db052fe4972a42 100644 (file)
@@ -227,12 +227,10 @@ void Vore_Teamheal()
 .float stomachkick_delay;\r
 void Vore_StomachKick()\r
 {\r
-       // allows prey to kick the predator's stomach and do some damage / attempt to escape, or bring the predator's digestion upon their self when there's no other option\r
+       // allows prey to kick the predator's stomach and do some damage / attempt to escape\r
        if(self.eater.classname != "player")\r
                return;\r
 \r
-       // kick the predator's stomach and do damage, or escape if we are lucky\r
-       if(self.BUTTON_ATCK)\r
        if(time > self.stomachkick_delay)\r
        {\r
                float damage;\r
@@ -245,13 +243,6 @@ void Vore_StomachKick()
 \r
                self.stomachkick_delay = time + cvar("g_balance_vore_kick_delay");\r
        }\r
-\r
-       // start the predator's digestion\r
-       if(self.BUTTON_ATCK2)\r
-       {\r
-               centerprint(self.eater, strcat(self.netname, " has triggered your digestion"));\r
-               self.eater.digesting = TRUE;\r
-       }\r
 }\r
 \r
 .float gurglesound_finished, gurglesound_oldstomachload;\r
@@ -386,7 +377,8 @@ void Vore()
        if(teams_matter && self.team == self.eater.team)\r
                Vore_Teamheal();\r
 \r
-       Vore_StomachKick();\r
+       if(self.BUTTON_ATCK)\r
+               Vore_StomachKick();\r
 \r
        Vore_CameraEffect_Apply();\r
 }
\ No newline at end of file