Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 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_switch_fake = menu:get_reference( "rage", "anti-aim", "standing", "fake direction" )
  8. local aa_switch_fake2 = menu:get_reference( "rage", "anti-aim", "moving", "fake direction" )
  9. local aa_switch_fake3 = menu:get_reference( "rage", "anti-aim", "air", "fake direction" )
  10. local aa_switch_standing = menu:get_reference( "rage", "anti-aim", "standing", "yaw add" )
  11. local aa_switch_standing2 = menu:get_reference( "rage", "anti-aim", "standing", "add" )
  12. local aa_switch_moving = menu:get_reference( "rage", "anti-aim", "moving", "yaw add" )
  13. local aa_switch_moving2 = menu:get_reference( "rage", "anti-aim", "moving", "add" )
  14. local aa_switch_air = menu:get_reference( "rage", "anti-aim", "air", "yaw add" )
  15. local aa_switch_air2 = menu:get_reference( "rage", "anti-aim", "air", "add" )
  16. local screen_size = render:screen_size()
  17. local aa_switch_item = config:add_item( "aa_switch_item", 0 )
  18. local aa_switch_checkbox = menu:add_checkbox( "Static Anti-Aim", "rage", "anti-aim", "general", aa_switch_item )
  19.  
  20. local font = render:create_font("verdana", 25, 1, true)
  21.  
  22. local key = 0x06
  23. local key2 = 0x05
  24. local key3 = 0x58
  25. local switch = false
  26. local switch2 = false
  27. local switch3 = false
  28.  
  29. fatality.callbacks:add("paint",
  30.  
  31. function()
  32.  
  33. if not engine_client:is_in_game( ) then
  34. return end
  35.  
  36. local local_player = entity_list:get_localplayer( )
  37.  
  38. if not local_player:is_alive( ) then
  39. return end
  40.  
  41. if not aa_switch_item:get_bool() then
  42.  
  43. aa_switch_standing:set_bool(false)
  44. aa_switch_moving:set_bool(false)
  45. aa_switch_air:set_bool(false)
  46.  
  47. else
  48.  
  49. if (input:is_key_pressed(key)) then
  50.  
  51. if aa_switch_item:get_bool() then
  52.  
  53. switch = true
  54. switch2 = false
  55. switch3 = false
  56. aa_switch_standing:set_bool(true)
  57. aa_switch_moving:set_bool(true)
  58. aa_switch_air:set_bool(true)
  59. aa_switch_standing2:set_float(25)
  60. aa_switch_moving2:set_float(25)
  61. aa_switch_fake:set_int(3)
  62. aa_switch_fake2:set_int(3)
  63. aa_switch_fake3:set_int(3)
  64. aa_switch_air2:set_float(49)
  65.  
  66. end
  67.  
  68. end
  69.  
  70. if (input:is_key_pressed(key2)) then
  71.  
  72. if aa_switch_item:get_bool() then
  73.  
  74. switch = false
  75. switch2 = true
  76. switch3 = false
  77. aa_switch_standing:set_bool(true)
  78. aa_switch_moving:set_bool(true)
  79. aa_switch_air:set_bool(true)
  80. aa_switch_standing2:set_float(-20)
  81. aa_switch_fake:set_int(2)
  82. aa_switch_fake2:set_int(2)
  83. aa_switch_fake3:set_int(2)
  84. aa_switch_moving2:set_float(-20)
  85. aa_switch_air2:set_float(-20)
  86.  
  87. end
  88.  
  89. end
  90.  
  91. if (input:is_key_pressed(key3)) then
  92.  
  93. if aa_switch_item:get_bool() then
  94.  
  95. switch = false
  96. switch2 = false
  97. switch3 = true
  98. aa_switch_standing:set_bool(true)
  99. aa_switch_moving:set_bool(true)
  100. aa_switch_air:set_bool(true)
  101. aa_switch_standing2:set_float(0)
  102. aa_switch_moving2:set_float(0)
  103. aa_switch_air2:set_float(0)
  104.  
  105. end
  106.  
  107. end
  108.  
  109. end
  110.  
  111. if aa_switch_item:get_bool() then
  112. if switch then
  113. render:indicator( screen_size.x / 1.9 , screen_size.y / 2 - 15, ">", true, -1 );
  114. else
  115. render:indicator( screen_size.x / 1.9, screen_size.y / 2 - 15, ">", false, -1 );
  116. end
  117. if switch2 then
  118. render:indicator( screen_size.x / 2.15, screen_size.y / 2 - 15, "<", true, -1 );
  119. else
  120. render:indicator( screen_size.x / 2.15, screen_size.y / 2 - 15, "<", false, -1 );
  121. end
  122. else
  123. switch = false
  124. switch2 = false
  125. switch3 = false
  126. end
  127.  
  128. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement