]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_player.qc
Grabber: Don't behave differently while the player is crouching. Fixes a bug
[voretournament/voretournament.git] / data / qcsrc / server / cl_player.qc
index 23e350cc6c6020b97802b7e119d9a77cef674a57..430d6655b9c7f692343153dfcae2031ea690c0a2 100644 (file)
@@ -114,6 +114,7 @@ void CopyBody(float keepvelocity)
        self.lip = oldself.lip;\r
        self.colormap = oldself.colormap;\r
        self.colormod = oldself.colormod;\r
+       self.glowmod = oldself.glowmod;\r
        self.iscreature = oldself.iscreature;\r
        self.angles = oldself.angles;\r
        self.avelocity = oldself.avelocity;\r
@@ -311,10 +312,10 @@ void player_anim (void)
        {\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
+                       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
                        else\r
-                               setanim(self, self.anim_jump, FALSE, TRUE, FALSE); // looks good for players idling inside the stomach\r
+                               setanim(self, self.anim_jump, FALSE, TRUE, FALSE); // looks good for prey idling inside the stomach\r
                }\r
                else if (!(self.flags & FL_ONGROUND))\r
                {\r
@@ -1335,7 +1336,7 @@ void GlobalSound(string sample, float chan, float voicetype)
                        break;\r
                case VOICETYPE_GURGLE:\r
                        if(self.stomach_load)\r
-                               sound(self, chan, sample, VOL_BASE * self.stomach_load / cvar("g_balance_vore_swallow_limit"), ATTN_NORM);\r
+                               sound(self, chan, sample, VOL_BASE * self.stomach_load / g_balance_vore_swallow_limit, ATTN_NORM);\r
                        else\r
                                stopsound(self, chan);\r
                        break;\r