void Vore_PreyRelease(entity e, float pred_disconnect)\r
{\r
// if the keepdeadprey feature is on, don't spit a dead prey's carcass out\r
- if(e.health <= 0 && cvar("g_vore_keepdeadprey"))\r
+ if(e.deadflag != DEAD_NO && cvar("g_vore_keepdeadprey"))\r
{\r
// if keepdeadprey is enabled and the predator disconnected, detach the dead prey\r
if(pred_disconnect)\r
self.predator.digestion_step = time + steptime;\r
}\r
\r
- if(self.health <= 0)\r
+ if(self.deadflag != DEAD_NO)\r
if(stov(cvar_string("g_vore_regurgitatecolor_digest")))\r
self.colormod = stov(cvar_string("g_vore_regurgitatecolor_digest"));\r
}\r
if(self.predator.classname != "player")\r
return;\r
\r
- if(self.deadflag)\r
+ if(self.deadflag != DEAD_NO)\r
{\r
Vore_PreyRelease(self, FALSE);\r
return;\r
}\r
\r
- if(self.predator.deadflag)\r
+ if(self.predator.deadflag != DEAD_NO)\r
Vore_Regurgitate(self);\r
else if(vlen(self.predator.velocity) > cvar("g_balance_vore_regurgitate_speedcap"))\r
Vore_Regurgitate(self);\r