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 7e4f410..f8e16cd 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 f6a3ebd..d106912 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