]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Animations for predators and prey as they are swallowing / being swallowed
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Jul 2011 23:07:10 +0000 (02:07 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Jul 2011 23:07:10 +0000 (02:07 +0300)
data/qcsrc/server/cl_player.qc
data/qcsrc/server/vore.qc

index 7e4f410553821cc8308b53d4403e353f42a73e00..f8e16cd4efb52d2de3fc164daafb3fe605724615 100644 (file)
@@ -310,7 +310,11 @@ void player_anim (void)
 \r
        if (!self.animstate_override)\r
        {\r
-               if(self.stat_eaten)\r
+               if(self.swallow_progress_pred)\r
+                       setanim(self, self.anim_duckjump, FALSE, TRUE, FALSE); // looks good for predators who are swallowing\r
+               else if(self.swallow_progress_prey)\r
+                       setanim(self, self.anim_die2, FALSE, TRUE, FALSE); // looks good for prey who's getting swallowed\r
+               else if(self.stat_eaten)\r
                {\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
index f6a3ebd7760f077f63a6051c6e1684c239a11f88..d1069129fbae3dd6f34eee829562f92ac09625b3 100644 (file)
@@ -810,6 +810,7 @@ void Vore()
                        {\r
                                self.regurgitate_prepare = time + cvar("g_balance_vore_regurgitate_delay");\r
                                PlayerSound(self, playersound_regurgitate_prepare, CHAN_VOICE, VOICETYPE_PLAYERSOUND);\r
+                               setanim(self, self.anim_pain2, FALSE, TRUE, TRUE); // looks good for preparing regurgitation\r
                                self.regurgitate_button_delay_time = time + button_delay_time;\r
                        }\r
                }\r