From 9a6bd5753cc14904a4402c60a13bb0a684b2a840 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 20 Jan 2017 14:23:31 +0100 Subject: [PATCH] Remove a useless tracebox_hits_trigger_hurt: dropped weapons are removed as soon as they fall on a trigger_hurt and can't be rated while they are in the air --- qcsrc/server/bot/default/havocbot/roles.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/bot/default/havocbot/roles.qc b/qcsrc/server/bot/default/havocbot/roles.qc index 536c8b205..87746ce57 100644 --- a/qcsrc/server/bot/default/havocbot/roles.qc +++ b/qcsrc/server/bot/default/havocbot/roles.qc @@ -36,8 +36,11 @@ void havocbot_goalrating_items(entity this, float ratingscale, vector org, float d = pointcontents(trace_endpos + '0 0 1'); if(d == CONTENT_WATER || d == CONTENT_SLIME || d == CONTENT_LAVA) continue; - if(tracebox_hits_trigger_hurt(it.origin, it.mins, it.maxs, trace_endpos)) - continue; + // this tracebox_hits_trigger_hurt call isn't needed: + // dropped weapons are removed as soon as they fall on a trigger_hurt + // and can't be rated while they are in the air + //if(tracebox_hits_trigger_hurt(it.origin, it.mins, it.maxs, trace_endpos)) + // continue; } else { -- 2.39.2