Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. local menu = fatality.menu
  2. local config = fatality.config
  3. local input = fatality.input
  4. local render = fatality.render
  5. local engine_client = csgo.interface_handler:get_engine_client()
  6. local entity_list = csgo.interface_handler:get_entity_list()
  7. local aa_state_standing = menu:get_reference( "rage", "anti-aim", "standing", "yaw add" )
  8. local aa_state_standing2 = menu:get_reference( "rage", "anti-aim", "standing", "add" )
  9. local standing_fakedir = menu:get_reference( "rage", "anti-aim", "standing", "fake direction" )
  10. local standinga_fakedir = menu:get_reference( "rage", "anti-aim", "standing", "fake amount" )
  11. local aa_state_moving = menu:get_reference( "rage", "anti-aim", "moving", "yaw add" )
  12. local aa_state_moving2 = menu:get_reference( "rage", "anti-aim", "moving", "add" )
  13. local moving_fakedir = menu:get_reference( "rage", "anti-aim", "moving", "fake direction" )
  14. local movinga_fakedir = menu:get_reference( "rage", "anti-aim", "moving", "fake amount" )
  15. local aa_state_air = menu:get_reference( "rage", "anti-aim", "air", "yaw add" )
  16. local aa_state_air2 = menu:get_reference( "rage", "anti-aim", "air", "add" )
  17. local air_fakedir = menu:get_reference( "rage", "anti-aim", "air", "fake direction" )
  18. local aira_fakedir = menu:get_reference( "rage", "anti-aim", "air", "fake amount" )
  19. local screen_size = render:screen_size()
  20. local aa_state_item = config:add_item( "aa_state_item", 0 )
  21. local aa_state_checkbox = menu:add_checkbox( "legit antiaim $$$", "rage", "anti-aim", "general", aa_state_item )
  22.  
  23. local key = 0x59 -- Y key http://asger-p.dk/info/virtualkeycodes.php if you wanna change keys
  24. local key2 = 0x43 -- C key
  25.  
  26. local switch = false
  27. local switch2 = false
  28.  
  29.  
  30. fatality.callbacks:add("paint",
  31.  
  32. function()
  33.  
  34. if not engine_client:is_in_game( ) then
  35. return end
  36.  
  37. local local_player = entity_list:get_localplayer( )
  38.  
  39. if not local_player:is_alive( ) then
  40. return end
  41.  
  42. if not aa_state_item:get_bool() then
  43.  
  44. aa_state_standing:set_bool(false)
  45. aa_state_moving:set_bool(false)
  46. aa_state_air:set_bool(false)
  47.  
  48. else
  49.  
  50.  
  51.  
  52.  
  53. if (input:is_key_pressed(key)) then
  54.  
  55. if aa_state_item:get_bool() then
  56.  
  57. switch = true
  58. switch2 = false
  59.  
  60. aa_state_standing:set_bool(true)
  61. aa_state_moving:set_bool(true)
  62. aa_state_air:set_bool(true)
  63. aa_state_standing2:set_float(150)
  64. aa_state_moving2:set_float(150)
  65. aa_state_air2:set_float(150)
  66. standing_fakedir:set_int( 4 )
  67. moving_fakedir:set_int( 4 )
  68. air_fakedir:set_int( 4 )
  69. standinga_fakedir:set_float(60)
  70. movinga_fakedir:set_float(60)
  71. aira_fakedir:set_float(60)
  72.  
  73. end
  74.  
  75. end
  76.  
  77. if (input:is_key_pressed(key2)) then
  78.  
  79. if aa_state_item:get_bool() then
  80.  
  81. switch = false
  82. switch2 = true
  83.  
  84. aa_state_standing:set_bool(true)
  85. aa_state_moving:set_bool(true)
  86. aa_state_air:set_bool(true)
  87. aa_state_standing2:set_float(150)
  88. aa_state_moving2:set_float(150)
  89. aa_state_air2:set_float(150)
  90. standing_fakedir:set_int( 4 )
  91. moving_fakedir:set_int( 4 )
  92. air_fakedir:set_int( 4 )
  93. standinga_fakedir:set_float(60)
  94. movinga_fakedir:set_float(60)
  95. aira_fakedir:set_float(60)
  96.  
  97. end
  98.  
  99. end
  100.  
  101. end
  102.  
  103.  
  104. if aa_state_item:get_bool() then
  105. if switch then
  106. render:indicator( screen_size.x / 2 - 500, screen_size.y / 2 - 15, ">", true, -1 );
  107. end
  108. if switch2 then
  109. render:indicator( screen_size.x / 2 - 520, screen_size.y / 2 - 15, ">", true, -1 );
  110. end
  111.  
  112.  
  113. else
  114. switch = false
  115. switch2 = false
  116.  
  117. end
  118.  
  119. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement