Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Position Y delta
- v1 = * (float * )(this + 16) - LocalPlayerZoneEntry - > y;
- // Position X delta
- v2 = * (float * )(this + 20) - LocalPlayerZoneEntry - > x;
- // Absolute value
- if (v1 < 0.0)
- v1 = -v1;
- // Absolute value
- if (v2 < 0.0)
- v2 = -v2;
- // What is going on here?
- if (v1 <= v2)
- v1 = v1 * 0.5;
- else
- v2 = v2 * 0.5;
- // Z position delta
- v3 = * (float * )(this + 24) - LocalPlayerZoneEntry - > z;
- // Absolute value
- if (v3 < 0.0)
- v3 = -v3;
- result = v3 + v2 + v1;
- // Radius
- if (result > * (float * )(this + 28))
- return 0.0;
- return result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement