Vore_AutoDigest(pl);\r
}\r
\r
+void Item_DroppedConsumable_Touch()\r
+{\r
+ if(time < self.cnt)\r
+ return;\r
+\r
+ // give the consumable item to the player touching it\r
+ if(other.stomach_load + self.dmg <= other.stomach_maxload)\r
+ {\r
+ Item_Consumable_Spawn(self, other);\r
+ remove(self);\r
+ self = world;\r
+ }\r
+}\r
+\r
void Item_DroppedConsumable_Spawn(entity e)\r
{\r
entity item;\r
item.velocity = v_forward * cvar("g_balance_vore_regurgitate_force");\r
e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce");\r
\r
+ item.touch = Item_DroppedConsumable_Touch;\r
+ item.cnt = time + 1; // 1 second delay\r
SUB_SetFade(item, time + 20, 1);\r
}\r
\r