]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix and improve prey animations
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 11:24:15 +0000 (14:24 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 11:24:15 +0000 (14:24 +0300)
data/qcsrc/server/cl_player.qc

index 23e350cc6c6020b97802b7e119d9a77cef674a57..148170f7f0f898b80df894ef9fbf1194f3a1a748 100644 (file)
@@ -311,10 +311,10 @@ void player_anim (void)
        {\r
                if(self.stat_eaten)\r
                {\r
        {\r
                if(self.stat_eaten)\r
                {\r
-                       if(self.BUTTON_ATCK)\r
-                               setanim(self, self.anim_duckjump, FALSE, TRUE, FALSE); // looks good for players attempting to attack the stomach\r
+                       if(self.BUTTON_ATCK || self.predator.digesting)\r
+                               setanim(self, self.anim_pain2, FALSE, TRUE, FALSE); // looks good for prey attacking the stomach or being digested\r
                        else\r
                        else\r
-                               setanim(self, self.anim_jump, FALSE, TRUE, FALSE); // looks good for players idling inside the stomach\r
+                               setanim(self, self.anim_jump, FALSE, TRUE, FALSE); // looks good for prey idling inside the stomach\r
                }\r
                else if (!(self.flags & FL_ONGROUND))\r
                {\r
                }\r
                else if (!(self.flags & FL_ONGROUND))\r
                {\r