From 52e3698bdf4450698556bebe847296ba49eab70d Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 4 May 2011 04:01:21 +0300 Subject: [PATCH] Lastly, add some good animations to prey. Idle prey will use the jump animation, and prey that perform stomach kicks will use the duckjump animation, simulating them attacking the stomach. --- data/qcsrc/server/cl_player.qc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc index 85192565..23e350cc 100644 --- a/data/qcsrc/server/cl_player.qc +++ b/data/qcsrc/server/cl_player.qc @@ -309,7 +309,14 @@ void player_anim (void) if (!self.animstate_override) { - if (!(self.flags & FL_ONGROUND)) + if(self.stat_eaten) + { + if(self.BUTTON_ATCK) + setanim(self, self.anim_duckjump, FALSE, TRUE, FALSE); // looks good for players attempting to attack the stomach + else + setanim(self, self.anim_jump, FALSE, TRUE, FALSE); // looks good for players idling inside the stomach + } + else if (!(self.flags & FL_ONGROUND)) { if (self.crouch) setanim(self, self.anim_duckjump, FALSE, TRUE, self.restart_jump); -- 2.39.2