From 1b4ee4e11270d05eab7e5d09940c53e13ae7d85d Mon Sep 17 00:00:00 2001 From: Hamdi Date: Sat, 15 Jul 2023 20:29:33 +0100 Subject: [PATCH] Add new trace flags to cssdk_const.inc (#278) --- reapi/extra/amxmodx/scripting/include/cssdk_const.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc index 65ced5b..8aa09a0 100644 --- a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc +++ b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc @@ -71,6 +71,14 @@ #define FL_KILLME (1<<30) // This entity is marked for death -- This allows the engine to kill ents at the appropriate time #define FL_DORMANT (1<<31) // Entity is dormant, no updates to client +/** +* global_get(glb_trace_flags) values +* @note Custom flags that we can retrieve in pfnShouldCollide/TraceLine/TraceHull +*/ +#define FTRACE_BULLET (1<<16) +#define FTRACE_FLASH (1<<17) +#define FTRACE_KNIFE (1<<18) + /** * get_entvar(entity, var_movetype) values */