]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Consumable items now add to stomach load as well
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 11:51:44 +0000 (13:51 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 11:51:44 +0000 (13:51 +0200)
data/qcsrc/server/vore.qc

index 8a2ddf5e5096fbb9d0f91a63055edd2a911b438e..22528981ec0f88161868326a7f5f3af0d44b1d4d 100644 (file)
@@ -175,6 +175,11 @@ void Vore_StomachLoad_Apply()
                        self.stomach_load += floor(prey_mass);\r
                }\r
        }\r
+       for(e = world; (e = find(e, classname, "consumable")); )\r
+       {\r
+               if(e.predator == self)\r
+                       self.stomach_load += floor(self.dmg);\r
+       }\r
 \r
        // apply weight\r
        self.gravity = 1 + (self.stomach_load / self.stomach_maxload) * cvar("g_balance_vore_load_pred_weight");\r