Advertisement
Guest User

22desync

a guest
Aug 24th, 2019
742
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. --
  2. -- Sorry for the Sloppy coding, I'm used to sourcepawn coding (csgo plugins stuff)
  3. --
  4.  
  5. --
  6. -- BASE LUA inspired by ZEL's version.
  7. -- Adapted & modified by Edward22 for the newest anti-aim updates provided by Admin.
  8. --
  9.  
  10. --
  11. -- Leave feedback.
  12. --
  13.  
  14. local engine_client = csgo.interface_handler:get_engine_client()
  15. local menu = fatality.menu
  16. local render = fatality.render
  17. local input = fatality.input
  18.  
  19. local stand_add_ref22 = menu:get_reference("RAGE", "ANTI-AIM", "Standing", "Add")
  20. local stand_add_ref = menu:get_reference("RAGE", "ANTI-AIM", "Standing", "Fake type", "Real around fake")
  21. local stand_dir_ref = menu:get_reference("RAGE", "ANTI-AIM", "Standing", "Fake amount")
  22. local move_add_ref22 = menu:get_reference("RAGE", "ANTI-AIM", "Moving", "Add")
  23. local move_add_ref = menu:get_reference("RAGE", "ANTI-AIM", "Moving", "Add")
  24. local move_dir_ref = menu:get_reference("RAGE", "ANTI-AIM", "Moving", "Fake amount")
  25.  
  26. local side = false
  27. local switch_key = 0x58 -- SWITCH KEY BY DEFAULT ITS "X" // CHANGE IT HERE https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
  28. local switch_held = false
  29.  
  30. local font = render:create_font('Verdana', 32, 700, true)
  31. fatality.callbacks:add("paint", function()
  32. if(engine_client:is_in_game()) then
  33. -- Logic
  34. if input:is_key_down(switch_key) then
  35. if not switch_held then
  36. side = not side
  37.  
  38. if side then
  39. stand_add_ref22:set_float(-10) -- STANDING YAW LEFT SIDE //
  40. stand_dir_ref:set_int(100) -- CUSTOM FAKE .. MOVING LEFT //
  41. move_add_ref:set_float(-23) -- MOVING YAW LEFT SIDE //
  42. move_dir_ref:set_int(100) -- CUSTOM FAKE // MOVING LEFT //
  43. else
  44. stand_add_ref22:set_float(22) -- STANDING YAW RIGHT SIDE //
  45. stand_dir_ref:set_int(-100) -- CUSTOM FAKE // STAND RIGHT //
  46. move_add_ref:set_float(22) -- MOVING YAW RIGHT SIDE //
  47. move_dir_ref:set_int(-100) -- CUSTOM FAKE // MOVING RIGHT //
  48. end
  49. end
  50.  
  51. switch_held = true
  52. else
  53. switch_held = false
  54. end
  55.  
  56. -- Drawing // change colors if you want.
  57. local screen_size = render:screen_size()
  58. local x, y = screen_size.x / 2, screen_size.y / 2
  59.  
  60. -- Change colors as you wish (Use html picker
  61. -- USE HTML COLOR CODES R G B ALPHA (transparency) 0 = transparent, 255 = solid color
  62. local col_l = csgo.color(31, 31, 31, 255)
  63. local col_r = csgo.color(31, 31, 31, 255)
  64.  
  65. if not side then
  66. col_l = csgo.color(13, 166, 217, 255)
  67. else
  68. col_r = csgo.color(13, 166, 217, 255)
  69. end
  70.  
  71. render:text(font, x - 50, y - 18, '(', col_l)
  72. render:text(font, x + 35, y - 18, ')', col_r)
  73. end
  74. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement