From: MirceaKitsune Date: Wed, 4 May 2011 01:01:21 +0000 (+0300) Subject: Lastly, add some good animations to prey. Idle prey will use the jump animation,... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=52e3698bdf4450698556bebe847296ba49eab70d;p=voretournament%2Fvoretournament.git 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. --- 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);