]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Apply my previous commit to items as well
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 10:37:36 +0000 (12:37 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 10:37:36 +0000 (12:37 +0200)
data/qcsrc/server/t_items.qc

index 402a25c1856b46693026614f0cf81f05599dfb7b..fa7b6f4199689ac058e9dfaa62069a36a8391497 100644 (file)
@@ -387,11 +387,13 @@ void Item_DroppedConsumable_Spawn(entity e)
        item.scale = e.scale;\r
        item.colormod = e.colormod;\r
 \r
+       float scalediff;\r
+       scalediff = cvar("g_healthsize") ? e.scale / e.predator.scale : 1; // the tighter the gut, the greater the velocity\r
        setorigin(item, e.predator.origin);\r
        item.angles_y = e.predator.angles_y;\r
        makevectors(e.predator.v_angle);\r
-       item.velocity = v_forward * cvar("g_balance_vore_regurgitate_force");\r
-       e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce");\r
+       item.velocity = v_forward * cvar("g_balance_vore_regurgitate_force") * scalediff;\r
+       e.predator.velocity += -v_forward * cvar("g_balance_vore_regurgitate_predatorforce") * scalediff;\r
 \r
        item.touch = Item_DroppedConsumable_Touch;\r
        item.cnt = time + 1; // 1 second delay\r