From: MirceaKitsune Date: Sat, 19 Nov 2011 11:54:43 +0000 (+0200) Subject: Properly apply item mass X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f79f0ecc31e62c574ab408625febbfeefc502482;p=voretournament%2Fvoretournament.git Properly apply item mass --- 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