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 23e350c..148170f 100644 (file)
@@ -311,10 +311,10 @@ void player_anim (void)
        {\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
-                               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