Show a no swallow indicator when the entity is a player you could normally swallow...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 12:21:57 +0000 (15:21 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 15 Apr 2011 12:21:57 +0000 (15:21 +0300)
data/qcsrc/client/View.qc
data/qcsrc/server/vore.qc

index 2d50c99..a0a337b 100644 (file)
@@ -1008,6 +1008,8 @@ void CSQC_UpdateView(float w, float h)
                                wcross_style = "_canswallow_team.tga";\r
                        else if(swallow_indicator > 0)\r
                                wcross_style = "_canswallow.tga";\r
+                       else if(swallow_indicator < 0)\r
+                               wcross_style = "_canswallow_no.tga";\r
                        else\r
                                wcross_style = cvar_string("crosshair");\r
 \r
index d675f5d..8a9dc2f 100644 (file)
@@ -547,6 +547,8 @@ void Vore()
                if(self.BUTTON_ATCK)\r
                        Vore_Swallow(prey);\r
        }\r
+       else if(prey != world)\r
+               self.stat_canswallow = -1;\r
 \r
        // toggle digestion, if the player has someone in their stomach\r
        if(self.BUTTON_DIGEST && cvar("g_vore_digestion"))\r