Advertisement
Guest User

Untitled

a guest
May 31st, 2021
884
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.89 KB | None | 0 0
  1. function round(num, numDecimalPlaces)
  2.     local mult = 10^(numDecimalPlaces or 0)
  3.     return math.floor(num * mult + 0.5) / mult
  4. end
  5. function calc_desync_delta()
  6. local desync_rotation = antiaim.GetFakeRotation()
  7. local real_rotation = antiaim.GetCurrentRealRotation()
  8.  
  9. local delta_to_draw = math.min(math.abs(real_rotation - desync_rotation) / 2, 58) -- ghetto lmao
  10.  
  11. return string.format("%1.f", delta_to_draw)
  12. end
  13. function calc_safety_emae()
  14. local desync_rotation = antiaim.GetFakeRotation()
  15. local real_rotation = antiaim.GetCurrentRealRotation()
  16. local delta_ = math.min(math.abs(real_rotation - desync_rotation) / 2, 58)
  17. local safety = math.min(round(1.7 * math.abs(delta_)), 100);
  18. return string.format("%1.f", safety)
  19. end
  20. function draw_this_shit()
  21. local desync_rotation = antiaim.GetFakeRotation()
  22. local real_rotation = antiaim.GetCurrentRealRotation()
  23. local safety_ = calc_safety_emae()
  24. local fakelagory = fakelag.SentPackets()
  25. local suka_nahui = calc_desync_delta()
  26. local inverter_state = antiaim.GetInverterState()
  27. local direction = "" -- отмена чел ты в муте
  28. local sent_packets_num = fakelag.SentPackets()
  29.    if inverter_state == true
  30.     then
  31.    direction = ">"
  32.   else
  33.     direction = "<"
  34. end
  35. --safe_text = " | safe: ".. safety_ .."%"
  36. --direction_text = "| side:".. direction
  37. desync_delta_text = "FAKE:(".. suka_nahui..")| side:".. direction.."   SF:".. safety_ .."%"
  38. -- онет только не он
  39.  
  40. g_Render:BoxFilled(Vector2.new(1780, 40), Vector2.new(1774, 54), Color.new(0.0, 0.0, 0.0, 20/255))
  41. g_Render:BoxFilled(Vector2.new(1856, 40), Vector2.new(1810, 54), Color.new(0.0, 0.0, 0.0, 20/255))
  42. g_Render:Text(desync_delta_text, Vector2.new(1782, 40), Color.new(1,1,1,1), 12)
  43.  
  44. g_Render:GradientBoxFilled(Vector2.new(1780, 40), Vector2.new(1778, 47), Color.new(0/255, 252/255, 21/255, 10/255), Color.new(0/255, 252/255, 21/255, 10/255), Color.new(0/255, 252/255, 21/255, 255/255), Color.new(0/255, 252/255, 21/255, 255/255))
  45. g_Render:GradientBoxFilled(Vector2.new(1780, 47), Vector2.new(1778, 54), Color.new(0/255, 252/255, 21/255, 255/255), Color.new(0/255, 252/255, 21/255, 255/255), Color.new(0/255, 252/255, 21/255, 10/255), Color.new(0/255, 252/255, 21/255, 10/255))
  46. --SF
  47. g_Render:GradientBoxFilled(Vector2.new(1908, 52), Vector2.new(1888, 54), Color.new(255/255, 189/255, 97/255, 10/255), Color.new(255/255, 189/255, 97/255, 255/255), Color.new(255/255, 189/255, 97/255, 10/255), Color.new(255/255, 189/255, 97/255, 255/255))
  48. g_Render:GradientBoxFilled(Vector2.new(1888, 52), Vector2.new(1868, 54), Color.new(255/255, 189/255, 97/255, 255/255), Color.new(255/255, 189/255, 97/255, 10/255), Color.new(255/255, 189/255, 97/255, 255/255), Color.new(255/255, 189/255, 97/255, 10/255))
  49. end
  50. --Vector2.new(1883, 52), Vector2.new(1863, 54)
  51. --(Vector2.new(1913, 52), Vector2.new(1893, 54)
  52. function draw_manager()
  53. draw_this_shit()
  54. end
  55. cheat.RegisterCallback("draw", draw_manager)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement