From: MirceaKitsune Date: Sat, 19 Nov 2011 11:51:44 +0000 (+0200) Subject: Consumable items now add to stomach load as well X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=64e74626b772c6f1f50e0435550126f7b30f2a34;p=voretournament%2Fvoretournament.git Consumable items now add to stomach load as well --- 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");