Advertisement
Guest User

Untitled

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