Skip to content

Commit

Permalink
Fix timer +use through player exploit
Browse files Browse the repository at this point in the history
  • Loading branch information
Szwagi committed Apr 19, 2024
1 parent a3f358d commit 0fa4cb9
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 0fa4cb9

Please sign in to comment.