}\r
\r
Vore_Disconnect();\r
- entity e;\r
- for(e = world; (e = find(e, classname, "consumable")); )\r
- {\r
- // remove consumable items when we spectate\r
- if(e.predator == self)\r
- Item_Consumable_Remove(e, TRUE);\r
- }\r
\r
kh_Key_DropAll(self, TRUE);\r
\r
\r
Vore_Disconnect();\r
self.swallow_progress_pred = self.swallow_progress_prey = 0;\r
- for(e = world; (e = find(e, classname, "consumable")); )\r
- {\r
- // remove consumable items when we respawn\r
- if(e.predator == self)\r
- Item_Consumable_Remove(e, FALSE);\r
- }\r
\r
self.classname = "player";\r
self.wasplayer = TRUE;\r
}\r
\r
Vore_Disconnect();\r
- entity e;\r
- for(e = world; (e = find(e, classname, "consumable")); )\r
- {\r
- // remove consumable items when we disconnect\r
- if(e.predator == self)\r
- Item_Consumable_Remove(e, TRUE);\r
- }\r
\r
CheatShutdownClient();\r
\r
\r
.float inithealth, initdmg;\r
.float item_digestion_step;\r
-void Item_Consumable_Remove(entity e, float regurgitate);\r
void Item_Consumable_Think()\r
{\r
if(self.predator.regurgitate_prepare && time > self.predator.regurgitate_prepare)\r
void Vore_Disconnect()\r
{\r
// frees prey from their predators when someone disconnects or goes spectating, or in other circumstances\r
+ entity e;\r
\r
// prey disconnects or goes spectating while inside someone's belly\r
if(self.stat_eaten)\r
if(head.predator == self)\r
Vore_Regurgitate(head);\r
}\r
+ // remove consumable items when we disconnect\r
+ for(e = world; (e = find(e, classname, "consumable")); )\r
+ {\r
+ if(e.predator == self)\r
+ Item_Consumable_Remove(e, TRUE);\r
+ }\r
\r
self.stomach_load = self.gravity = 0; // prevents a bug\r
Vore_GurgleSound(); // stop the gurgling sound\r