From 64e74626b772c6f1f50e0435550126f7b30f2a34 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 19 Nov 2011 13:51:44 +0200 Subject: [PATCH] Consumable items now add to stomach load as well --- data/qcsrc/server/vore.qc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 8a2ddf5e..22528981 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -175,6 +175,11 @@ void Vore_StomachLoad_Apply() self.stomach_load += floor(prey_mass); } } + for(e = world; (e = find(e, classname, "consumable")); ) + { + if(e.predator == self) + self.stomach_load += floor(self.dmg); + } // apply weight self.gravity = 1 + (self.stomach_load / self.stomach_maxload) * cvar("g_balance_vore_load_pred_weight"); -- 2.39.2