From: MirceaKitsune Date: Mon, 6 Sep 2010 17:37:20 +0000 (+0300) Subject: Fix comments and move check X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=1d0d96c849dea6a204474dd8e8e8e86637b2ef66 Fix comments and move check --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 81cfdf6a..8d59e2bb 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -227,12 +227,10 @@ void Vore_Teamheal() .float stomachkick_delay; void Vore_StomachKick() { - // 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 + // allows prey to kick the predator's stomach and do some damage / attempt to escape if(self.eater.classname != "player") return; - // kick the predator's stomach and do damage, or escape if we are lucky - if(self.BUTTON_ATCK) if(time > self.stomachkick_delay) { float damage; @@ -379,7 +377,8 @@ void Vore() if(teams_matter && self.team == self.eater.team) Vore_Teamheal(); - Vore_StomachKick(); + if(self.BUTTON_ATCK) + Vore_StomachKick(); Vore_CameraEffect_Apply(); } \ No newline at end of file