Indicators under crosshairs

  • 21
  • 0
Контакты для связи отсутствуют.
Кто может кинуть код индикаторов под прицелом
 
  • 29
  • 6
indicators:
--Created by @zxsleebu
--Sleebu#0090
--Sleebu on YouGay (YouGame) — [URL="https://yougame.biz/members/317159/"]sleebu[/URL] (noad)
--Sleebu on BrokenAss (BrokenCore) — [URL="https://brokencore.club/members/17432/"]sleebu[/URL]
--Thanks fivenuss for free nixerhook sub <3

--Time spent: 1 hour

--adding ui elements
local x_offset = ui.add_slider_int("X offset", "indicators_x_offset", -100, 100, 0)
local y_offset = ui.add_slider_int("Y offset", "indicators_y_offset", -100, 100, 16)
local center = ui.add_check_box("Center", "indicators_cetner", false)

--function for fast indicator adding
local function indicator(var, name, color, logic)
    logic = logic or nil
    return {
        ["var"] = var,
        ["name"] = name,
        ["color"] = color,
        ["alpha"] = 0,
        ["logic"] = logic
    }
end

--some shit
local function clamp(v, min, max) return math.min(math.max(v, min), max) end
local bind = ui.get_key_bind
local active_exploit, active_exploit_bind = ui.get_combo_box("rage_active_exploit"), ui.get_key_bind("rage_active_exploit_bind")

--defining array with indicators
local indicators = {
    indicator(nil, "nano.technologies", color_t.new(255, 255, 255, 255), function() return true end), --0.486, 0.482, 0.988
    indicator(nil, "double tap", color_t.new(163, 213, 117, 255), function()
        return (active_exploit:get_value() == 2 and active_exploit_bind:is_active())
    end),
    indicator(nil, "onshot aa", color_t.new(119, 113, 174, 255), function()
        return (active_exploit:get_value() == 1 and active_exploit_bind:is_active())
    end),
    indicator(bind("antihit_antiaim_flip_bind"), "inv", color_t.new(119, 113, 174, 255)),
    indicator(bind("antihit_extra_fakeduck_bind"), "fakeduck", color_t.new(210, 149, 135, 255)),
    indicator(bind("antihit_extra_autopeek_bind"), "peek", color_t.new(255, 255, 255, 255)),
}

local margin, speed, size = 8, 0.06, 12
local font = renderer.setup_font("C:/Windows/fonts/segoeuib.ttf", size, 0)
client.register_callback("paint", function ()
    local lp = entitylist.get_local_player()
    if not lp:is_alive() then return end
    local speed = speed * globalvars.get_absolute_frametime() * 100
    local screen = engine.get_screen_size()
    local centering = center:get_value() and 1 or 0
    local cx = screen.x / 2 + x_offset:get_value()
    local cy = screen.y / 2
    local y = cy + 9 + y_offset:get_value()
    for i = 1, #indicators do
        local bind = indicators[i]
        local active = (bind.var ~= nil and bind.var:is_active()) or (bind.var == nil and bind.logic())
        bind.alpha = clamp(bind.alpha + (active and speed or (speed * -1)), 0, 1)
        if bind.alpha == 0 then goto skip end
        local text_size = renderer.get_text_size(font, size, bind.name)
        local bx, by, col = cx - ((text_size.x / 2) * centering), y - margin + (bind.alpha * margin), bind.color
        col.a = bind.alpha * 255
        renderer.text(bind.name, font, vec2_t.new(bx, by + 1), size, color_t.new(0, 0, 0, col.a / 1.33))
        renderer.text(bind.name, font, vec2_t.new(bx, by), size, col)
        y = y + (bind.alpha * margin)
        ::skip::
    end
end)
[/i]
 
Последнее редактирование:
  • 21
  • 0
Контакты для связи отсутствуют.
indicators:
--Created by @zxsleebu
--Sleebu#0090
--Sleebu on YouGay (YouGame) — [URL="https://yougame.biz/members/317159/"]sleebu[/URL] (noad)
--Sleebu on BrokenAss (BrokenCore) — [URL="https://brokencore.club/members/17432/"]sleebu[/URL]
--Thanks fivenuss for free nixerhook sub <3

--Time spent: 1 hour

--adding ui elements
local x_offset = ui.add_slider_int("X offset", "indicators_x_offset", -100, 100, 0)
local y_offset = ui.add_slider_int("Y offset", "indicators_y_offset", -100, 100, 16)
local center = ui.add_check_box("Center", "indicators_cetner", false)

--function for fast indicator adding
local function indicator(var, name, color, logic)
    logic = logic or nil
    return {
        ["var"] = var,
        ["name"] = name,
        ["color"] = color,
        ["alpha"] = 0,
        ["logic"] = logic
    }
end

--some shit
local function clamp(v, min, max) return math.min(math.max(v, min), max) end
local bind = ui.get_key_bind
local active_exploit, active_exploit_bind = ui.get_combo_box("rage_active_exploit"), ui.get_key_bind("rage_active_exploit_bind")

--defining array with indicators
local indicators = {
    indicator(nil, "nano.technologies", color_t.new(255, 255, 255, 255), function() return true end), --0.486, 0.482, 0.988
    indicator(nil, "double tap", color_t.new(163, 213, 117, 255), function()
        return (active_exploit:get_value() == 2 and active_exploit_bind:is_active())
    end),
    indicator(nil, "onshot aa", color_t.new(119, 113, 174, 255), function()
        return (active_exploit:get_value() == 1 and active_exploit_bind:is_active())
    end),
    indicator(bind("antihit_antiaim_flip_bind"), "inv", color_t.new(119, 113, 174, 255)),
    indicator(bind("antihit_extra_fakeduck_bind"), "fakeduck", color_t.new(210, 149, 135, 255)),
    indicator(bind("antihit_extra_autopeek_bind"), "peek", color_t.new(255, 255, 255, 255)),
}

local margin, speed, size = 8, 0.06, 12
local font = renderer.setup_font("C:/Windows/fonts/segoeuib.ttf", size, 0)
client.register_callback("paint", function ()
    local lp = entitylist.get_local_player()
    if not lp:is_alive() then return end
    local speed = speed * globalvars.get_absolute_frametime() * 100
    local screen = engine.get_screen_size()
    local centering = center:get_value() and 1 or 0
    local cx = screen.x / 2 + x_offset:get_value()
    local cy = screen.y / 2
    local y = cy + 9 + y_offset:get_value()
    for i = 1, #indicators do
        local bind = indicators[i]
        local active = (bind.var ~= nil and bind.var:is_active()) or (bind.var == nil and bind.logic())
        bind.alpha = clamp(bind.alpha + (active and speed or (speed * -1)), 0, 1)
        if bind.alpha == 0 then goto skip end
        local text_size = renderer.get_text_size(font, size, bind.name)
        local bx, by, col = cx - ((text_size.x / 2) * centering), y - margin + (bind.alpha * margin), bind.color
        col.a = bind.alpha * 255
        renderer.text(bind.name, font, vec2_t.new(bx, by + 1), size, color_t.new(0, 0, 0, col.a / 1.33))
        renderer.text(bind.name, font, vec2_t.new(bx, by), size, col)
        y = y + (bind.alpha * margin)
        ::skip::
    end
end)
[/i]

Спасибо
 
Сверху Снизу