if(cvar("g_nodepthtestitems"))\r
item.effects |= EF_NODEPTHTEST;\r
\r
- float scalediff;\r
- scalediff = cvar("g_healthsize") ? e.scale / e.predator.scale : e.scale; // the tighter the gut, the greater the velocity\r
+ float scalediff, sz;\r
+ sz = e.scale; // the line below does not work if I define this directly (fteqcc bug?)\r
+ scalediff = cvar("g_healthsize") ? sz / e.predator.scale : sz; // the tighter the gut, the greater the velocity\r
+\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") * 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
SUB_SetFade(item, time + 20, 1);\r
\r
- 0.7 | 0.8 BUG: Bots still throw up health items when they need them\r
\r
-- +0.8: Create a recommended bot number for maps in mapinfo\r
-\r
-- 0.7: Throwing up items doesn't apply velocities (might be the healthsize thing)
\ No newline at end of file
+- +0.8: Create a recommended bot number for maps in mapinfo
\ No newline at end of file