From 7bd167f43e7f952bcb79004687dc491cf1d37185 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sat, 14 Aug 2021 18:47:01 +0200 Subject: [PATCH] Set "Self" for downwards check in navbot --- src/navparser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/navparser.cpp b/src/navparser.cpp index a6564518..61f5a00d 100644 --- a/src/navparser.cpp +++ b/src/navparser.cpp @@ -641,6 +641,8 @@ static void followCrumbs() Vector end = g_pLocalPlayer->v_Origin; end.z -= 100.0f; + trace::filter_default.SetSelf(RAW_ENT(LOCAL_E)); + ray.Init(g_pLocalPlayer->v_Origin, end, RAW_ENT(LOCAL_E)->GetCollideable()->OBBMins(), RAW_ENT(LOCAL_E)->GetCollideable()->OBBMaxs()); g_ITrace->TraceRay(ray, MASK_PLAYERSOLID, &trace::filter_default, &trace); // Only reset if we are standing on a building