]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Lastly, add some good animations to prey. Idle prey will use the jump animation,...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 01:01:21 +0000 (04:01 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 May 2011 01:01:21 +0000 (04:01 +0300)
data/qcsrc/server/cl_player.qc

index 8519256514975c2e225e1c871c82a653d9c08a65..23e350cc6c6020b97802b7e119d9a77cef674a57 100644 (file)
@@ -309,7 +309,14 @@ void player_anim (void)
 \r
        if (!self.animstate_override)\r
        {\r
-               if (!(self.flags & FL_ONGROUND))\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
+                       else\r
+                               setanim(self, self.anim_jump, FALSE, TRUE, FALSE); // looks good for players idling inside the stomach\r
+               }\r
+               else if (!(self.flags & FL_ONGROUND))\r
                {\r
                        if (self.crouch)\r
                                setanim(self, self.anim_duckjump, FALSE, TRUE, self.restart_jump);\r