From cbe79d17679f8eafa185b8db1293d42fa0ea6b75 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 15 Mar 2012 15:00:27 +0200 Subject: [PATCH] Make dropped consumables work with g_nodepthtestitems --- data/qcsrc/server/t_items.qc | 3 +++ docs/TODO.txt | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 -- 2.39.2