Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. // Position Y delta
  2. v1 = * (float * )(this + 16) - LocalPlayerZoneEntry - > y;
  3.  
  4. // Position X delta
  5. v2 = * (float * )(this + 20) - LocalPlayerZoneEntry - > x;
  6.  
  7. // Absolute value
  8. if (v1 < 0.0)
  9. v1 = -v1;
  10.  
  11. // Absolute value
  12. if (v2 < 0.0)
  13. v2 = -v2;
  14.  
  15. // What is going on here?
  16. if (v1 <= v2)
  17. v1 = v1 * 0.5;
  18. else
  19. v2 = v2 * 0.5;
  20.  
  21. // Z position delta
  22. v3 = * (float * )(this + 24) - LocalPlayerZoneEntry - > z;
  23.  
  24. // Absolute value
  25. if (v3 < 0.0)
  26. v3 = -v3;
  27.  
  28. result = v3 + v2 + v1;
  29.  
  30. // Radius
  31. if (result > * (float * )(this + 28))
  32. return 0.0;
  33.  
  34. return result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement