Skip to content

Commit

Permalink
Merge pull request #483 from Szwagi/fix-timer-use-exploit
Browse files Browse the repository at this point in the history
Fix timer +use through player exploit
  • Loading branch information
zealain authored Apr 19, 2024
2 parents a3f358d + 0fa4cb9 commit 2f27c1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/gokz-core/misc.sp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f27c1f

Please sign in to comment.