Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local menu = fatality.menu
- local config = fatality.config
- local input = fatality.input
- local render = fatality.render
- local engine_client = csgo.interface_handler:get_engine_client()
- local entity_list = csgo.interface_handler:get_entity_list()
- local aa_switch_standing = menu:get_reference( "rage", "anti-aim", "standing", "yaw add" )
- local aa_switch_standing2 = menu:get_reference( "rage", "anti-aim", "standing", "add" )
- local aa_switch_moving = menu:get_reference( "rage", "anti-aim", "moving", "yaw add" )
- local aa_switch_moving2 = menu:get_reference( "rage", "anti-aim", "moving", "add" )
- local aa_switch_air = menu:get_reference( "rage", "anti-aim", "air", "yaw add" )
- local aa_switch_air2 = menu:get_reference( "rage", "anti-aim", "air", "add" )
- local screen_size = render:screen_size()
- local aa_switch_item = config:add_item( "aa_switch_item", 0 )
- local aa_switch_checkbox = menu:add_checkbox( "Anti-aim Switch Bind (C/V/X)", "rage", "anti-aim", "general", aa_switch_item )
- local font = render:create_font("verdana", 25, 1, true)
- local key = 0x56 -- V key from virtual https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes thanks @isendgreatfeetpics for this part ^^
- local key2 = 0x43 -- C key
- local key3 = 0x58 -- X key
- local switch = false
- local switch2 = false
- local switch3 = false
- fatality.callbacks:add("paint",
- function()
- if not engine_client:is_in_game( ) then
- return end
- local local_player = entity_list:get_localplayer( )
- if not local_player:is_alive( ) then
- return end
- if not aa_switch_item:get_bool() then
- aa_switch_standing:set_bool(false)
- aa_switch_moving:set_bool(false)
- aa_switch_air:set_bool(false)
- else
- if (input:is_key_pressed(key)) then
- if aa_switch_item:get_bool() then
- switch = true
- switch2 = false
- switch3 = false
- aa_switch_standing:set_bool(true)
- aa_switch_moving:set_bool(true)
- aa_switch_air:set_bool(true)
- aa_switch_standing2:set_float(90)
- aa_switch_moving2:set_float(90)
- aa_switch_air2:set_float(90)
- end
- end
- if (input:is_key_pressed(key2)) then
- if aa_switch_item:get_bool() then
- switch = false
- switch2 = true
- switch3 = false
- aa_switch_standing:set_bool(true)
- aa_switch_moving:set_bool(true)
- aa_switch_air:set_bool(true)
- aa_switch_standing2:set_float(-90)
- aa_switch_moving2:set_float(-90)
- aa_switch_air2:set_float(-90)
- end
- end
- if (input:is_key_pressed(key3)) then
- if aa_switch_item:get_bool() then
- switch = false
- switch2 = false
- switch3 = true
- aa_switch_standing:set_bool(true)
- aa_switch_moving:set_bool(true)
- aa_switch_air:set_bool(true)
- aa_switch_standing2:set_float(0)
- aa_switch_moving2:set_float(0)
- aa_switch_air2:set_float(0)
- end
- end
- end
- if aa_switch_item:get_bool() then
- if switch then
- render:indicator( screen_size.x / 150, screen_size.y / 2 - 20, "Right", true, -1 );
- else
- render:indicator( screen_size.x / 150, screen_size.y / 2 - 20, "Right", false, -1 );
- end
- if switch2 then
- render:indicator( screen_size.x / 150, screen_size.y / 2 - 40, "Left", true, -1 );
- else
- render:indicator( screen_size.x / 150, screen_size.y / 2 - 40, "Left", false, -1 );
- end
- if switch3 then
- render:indicator( screen_size.x / 150, screen_size.y / 2 - 60, "Back", true, -1 );
- else
- render:indicator( screen_size.x / 150, screen_size.y / 2 - 60, "Back", false, -1 );
- end
- else
- switch = false
- switch2 = false
- switch3 = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement