From: MirceaKitsune Date: Thu, 15 Mar 2012 13:00:27 +0000 (+0200) Subject: Make dropped consumables work with g_nodepthtestitems X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cbe79d17679f8eafa185b8db1293d42fa0ea6b75;p=voretournament%2Fvoretournament.git Make dropped consumables work with g_nodepthtestitems --- diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index f7468f0e..89c5a2f2 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -387,6 +387,9 @@ void Item_DroppedConsumable_Spawn(entity e) item.scale = e.scale; item.colormod = e.colormod; + if(cvar("g_nodepthtestitems")) + item.effects |= EF_NODEPTHTEST; + float scalediff; scalediff = cvar("g_healthsize") ? e.scale / e.predator.scale : e.scale; // the tighter the gut, the greater the velocity setorigin(item, e.predator.origin); diff --git a/docs/TODO.txt b/docs/TODO.txt index 93507dfc..93720e46 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -152,6 +152,8 @@ - 0.7: Bloodprison and BloodprisonCTF have no waypoints (somehow) -- 0.7 | 0.8: How do consumable items work with no depthtest items? +- 0.7 | 0.8 BUG: Bots still throw up health items when they need them -- 0.7 | 0.8 BUG: Bots still throw up health items when they need them \ No newline at end of file +- +0.8: Create a recommended bot number for maps in mapinfo + +- 0.7: Throwing up items doesn't apply velocities (might be the healthsize thing) \ No newline at end of file