From f79f0ecc31e62c574ab408625febbfeefc502482 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 19 Nov 2011 13:54:43 +0200 Subject: [PATCH] Properly apply item mass --- data/qcsrc/server/t_items.qc | 1 + data/qcsrc/server/vore.qc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 7987e206..9ec15cda 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -264,6 +264,7 @@ void Item_Consumable_Spawn(entity e, entity pl) setmodel(item, e.model); item.health = e.health; item.max_health = e.max_health; + item.dmg = e.dmg; item.predator = pl; item.aiment = pl; diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 22528981..379385e8 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -178,7 +178,7 @@ void Vore_StomachLoad_Apply() for(e = world; (e = find(e, classname, "consumable")); ) { if(e.predator == self) - self.stomach_load += floor(self.dmg); + self.stomach_load += floor(e.dmg); } // apply weight -- 2.39.2