From 0fa4cb9d49b4aa5c520730a2172c5cbe01aebfb9 Mon Sep 17 00:00:00 2001 From: Szwagi Date: Fri, 19 Apr 2024 18:36:40 +0100 Subject: [PATCH] Fix timer +use through player exploit --- addons/sourcemod/scripting/gokz-core/misc.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/sourcemod/scripting/gokz-core/misc.sp b/addons/sourcemod/scripting/gokz-core/misc.sp index a1178803..b4e6e29c 100644 --- a/addons/sourcemod/scripting/gokz-core/misc.sp +++ b/addons/sourcemod/scripting/gokz-core/misc.sp @@ -677,9 +677,9 @@ static int FindUseEntity(int client) float m_vecMins[3]; float m_vecMaxs[3]; float m_vecOrigin[3]; - GetEntPropVector(ent, Prop_Send, "m_vecOrigin", m_vecOrigin); - GetEntPropVector(ent, Prop_Send, "m_vecMins", m_vecMins); - GetEntPropVector(ent, Prop_Send, "m_vecMaxs", m_vecMaxs); + GetEntPropVector(client, Prop_Send, "m_vecOrigin", m_vecOrigin); + GetEntPropVector(client, Prop_Send, "m_vecMins", m_vecMins); + GetEntPropVector(client, Prop_Send, "m_vecMaxs", m_vecMaxs); delta[2] = IntervalDistance(endpos[2], m_vecOrigin[2] + m_vecMins[2], m_vecOrigin[2] + m_vecMaxs[2]); if (GetVectorLength(delta) < 80.0)