SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- remake lua by zel |
| 1 | + | UI.AddCheckbox("Draw indicators");
|
| 2 | - | local engine_client = csgo.interface_handler:get_engine_client() |
| 2 | + | UI.AddSliderInt("Indicator offset", 1, 100);
|
| 3 | - | local menu = fatality.menu |
| 3 | + | function drawFunction(){
|
| 4 | - | local render = fatality.render |
| 4 | + | var shouldDraw = UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Draw indicators");
|
| 5 | - | local input = fatality.input |
| 5 | + | if (shouldDraw) {
|
| 6 | - | local config = fatality.config |
| 6 | + | |
| 7 | - | local entity_list = csgo.interface_handler:get_entity_list() |
| 7 | + | var screen_size = Global.GetScreenSize(); |
| 8 | - | local global_vars = csgo.interface_handler:get_global_vars() |
| 8 | + | var x = screen_size[0] / 92 |
| 9 | - | |
| 9 | + | var y = screen_size[1] - (UI.GetValue("Misc", "JAVASCRIPT", "Script Items","Indicator offset") * 10)
|
| 10 | - | local stand_add_ref22 = menu:get_reference("RAGE", "ANTI-AIM", "Standing", "Add")
|
| 10 | + | var keybindArray = [ |
| 11 | - | local stand_add_ref = menu:get_reference("RAGE", "ANTI-AIM", "Standing", "Fake type", "Real around fake")
|
| 11 | + | |
| 12 | - | local stand_dir_ref = menu:get_reference("RAGE", "ANTI-AIM", "Standing", "Fake amount")
|
| 12 | + | ]; |
| 13 | - | local move_add_ref22 = menu:get_reference("RAGE", "ANTI-AIM", "Moving", "Add")
|
| 13 | + | |
| 14 | - | local move_add_ref = menu:get_reference("RAGE", "ANTI-AIM", "Moving", "Add")
|
| 14 | + | if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
|
| 15 | - | local move_dir_ref = menu:get_reference("RAGE", "ANTI-AIM", "Moving", "Fake amount")
|
| 15 | + | keybindArray.push("DUCK")
|
| 16 | - | |
| 16 | + | } |
| 17 | - | -- added side for air |
| 17 | + | if (UI.IsHotkeyActive("Rage", "General", "General", "Safe point override")) {
|
| 18 | - | local air_add_ref2 = menu:get_reference("RAGE", "ANTI-AIM", "Air", "Add")
|
| 18 | + | keybindArray.push("SP")
|
| 19 | - | local air_add_amount_2 = menu:get_reference("RAGE", "ANTI-AIM", "Air", "Add")
|
| 19 | + | } |
| 20 | - | local air_dir_ref = menu:get_reference("RAGE", "ANTI-AIM", "Air", "Fake amount")
|
| 20 | + | if (UI.IsHotkeyActive("Rage", "Pistol", "Damage", "Minimum damage (on key)")) {
|
| 21 | - | |
| 21 | + | keybindArray.push("DMG")
|
| 22 | - | local size_item = config:add_item( "size_item", 18 ) |
| 22 | + | } |
| 23 | - | local size_slider = menu:add_slider( "Arrows size", "visuals", "misc", "local", size_item, 0, 23, 1 ) |
| 23 | + | if (UI.IsHotkeyActive("Rage", "Pistol", "Pistol config", "Hitbox override")) {
|
| 24 | - | local pos_item = config:add_item( "pos_item", 0 ) |
| 24 | + | keybindArray.push("FB")
|
| 25 | - | local lise_slider = menu:add_slider( "Indicator", "rage", "aimbot", "misc" , pos_item, -1080, 0, 1 ) |
| 25 | + | } |
| 26 | - | |
| 26 | + | if (UI.IsHotkeyActive("Rage", "Exploits", "Double Tap")) {
|
| 27 | - | |
| 27 | + | keybindArray.push("DT")
|
| 28 | - | |
| 28 | + | } |
| 29 | - | |
| 29 | + | |
| 30 | - | local colour_item = config:add_item("C_colour_item", 19 ) -- 14
|
| 30 | + | var text_size = 4 |
| 31 | - | local colour_slider = menu:add_slider("Arrows colour", "visuals", "misc", "local", colour_item, 0 , 20, 1)
|
| 31 | + | |
| 32 | - | |
| 32 | + | for (var i=0;i < keybindArray.length;i++) {
|
| 33 | - | local rainbow_item = config:add_item( "C_rainbow_item", 0 ) |
| 33 | + | //Global.Print("STD:" + keybindArray[i][0])
|
| 34 | - | local rainbow_item_checkbox = menu:add_checkbox( "Enable rainbow arrows", "visuals", "misc", "local", rainbow_item ) |
| 34 | + | var textHeight = text_size*5.5 |
| 35 | - | |
| 35 | + | var y_add = (textHeight * i) |
| 36 | - | local darkmode_item = config:add_item( "C_darkmode_item", 1.0 ) |
| 36 | + | var clr = [124,195,13,255] |
| 37 | - | local darkmode_checkbox = menu:add_checkbox( "Enable dark mode for disabled arrows", "visuals", "misc", "local", darkmode_item ) |
| 37 | + | if (keybindArray[i] == "DMG") {
|
| 38 | - | |
| 38 | + | clr = [255,255,255,255] |
| 39 | - | local directindicator_item = config:add_item( "C_directindicator_item", 1.0 ) |
| 39 | + | } |
| 40 | - | local global_vars = csgo.interface_handler:get_global_vars( ) |
| 40 | + | if (keybindArray[i] == "SP") {
|
| 41 | - | local engine = csgo.interface_handler:get_engine_client( ) |
| 41 | + | clr = [124,195,13,255] |
| 42 | - | local entity_list = csgo.interface_handler:get_entity_list( ) |
| 42 | + | } |
| 43 | - | |
| 43 | + | if (keybindArray[i] == "FB") {
|
| 44 | - | |
| 44 | + | clr = [124,195,13,255] |
| 45 | - | |
| 45 | + | } |
| 46 | - | local side = false |
| 46 | + | if (keybindArray[i] == "DUCK") {
|
| 47 | - | local side_2 = false |
| 47 | + | clr = [255,255,255,255] |
| 48 | - | local side_3 = false |
| 48 | + | } |
| 49 | - | local switch_key = 0x58 -- SWITCH KEY BY DEFAULT ITS MAYBE "X" // CHANGE IT HERE https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes |
| 49 | + | if (keybindArray[i] == "DT") {
|
| 50 | - | local switch_held = false |
| 50 | + | clr = [124,195,13,255] |
| 51 | - | local subpos = 0 |
| 51 | + | } |
| 52 | - | |
| 52 | + | |
| 53 | - | |
| 53 | + | Render.String( x, y - y_add, 0, keybindArray[i], clr,text_size); |
| 54 | - | -- draw arrows 1 |
| 54 | + | } |
| 55 | - | function draw_side_arrow(x, y, size, color, side) |
| 55 | + | } |
| 56 | - | if(side) then |
| 56 | + | } |
| 57 | - | for i = 0, (size - 1) do |
| 57 | + | Global.RegisterCallback("Draw","drawFunction") |