From: havoc Date: Sun, 5 Jun 2005 09:18:42 +0000 (+0000) Subject: don't hit your own model with cl_prydoncursor traces X-Git-Tag: xonotic-v0.1.0preview~4786 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea7c948fcd587d637ffbeb93bbca2b3ae514d94a;p=xonotic%2Fdarkplaces.git don't hit your own model with cl_prydoncursor traces git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5396 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_collision.c b/cl_collision.c index c97f0a3f..81cc2a38 100644 --- a/cl_collision.c +++ b/cl_collision.c @@ -223,6 +223,8 @@ float CL_SelectTraceLine(const vec3_t start, const vec3_t end, vec3_t impact, ve continue; if (!ent->model || !ent->model->TraceBox) continue; + if ((ent->flags & RENDER_EXTERIORMODEL) && !chase_active.integer) + continue; // if transparent and not selectable, skip entity if (!(cl_entities[n].state_current.effects & EF_SELECTABLE) && (ent->alpha < 1 || (ent->effects & (EF_ADDITIVE | EF_NODEPTHTEST)))) continue;