LUA скрипт Nixware.cc state panel

Начинающий
Статус
Оффлайн
Регистрация
9 Май 2022
Сообщения
45
Реакции[?]
4
Поинты[?]
0
здрасьте это снова я .
сегодня я снова с бесполезными побрекушками...
ловите для ваших мега паст по типу gamesensecord.python и тд.

code_language.lua:
local smallest_pixel = renderer.setup_font("nix/fonts/smallest_pixel-7.ttf", 10, 0)
local slowWalkBint = ui.get_key_bind("antihit_extra_slowwalk_bind")
local m_bDucked = se.get_netvar("DT_BasePlayer", "m_bDucked")
local hits = 0
local misses = 0
local m_vecVelocity = {
    [0] = se.get_netvar("DT_BasePlayer", "m_vecVelocity[0]"),
    [1] = se.get_netvar("DT_BasePlayer", "m_vecVelocity[1]")
}

local color = {
    white = color_t.new(255, 255, 255, 255),
    light_blue = color_t.new(200, 200, 255, 255),
    light_green = color_t.new(206, 255, 157, 255),
    light_pink = color_t.new(255, 200, 255, 255),
}

function get_cond()
    localPlayer = entitylist.get_local_player()
    m_hGroundEntity = localPlayer:get_prop_int(se.get_netvar("DT_BasePlayer", "m_hGroundEntity"))
    duck = localPlayer:get_prop_int(se.get_netvar("DT_BasePlayer", "m_bDucked"))
    velocity = math.sqrt(localPlayer:get_prop_float(m_vecVelocity[0]) ^ 2 + localPlayer:get_prop_float(m_vecVelocity[1]) ^ 2)
    if m_hGroundEntity == -1 then
        return "jumping"
    elseif m_hGroundEntity ~= -1 and duck == 1 then
        return "crouching"
    elseif m_hGroundEntity ~= -1 and velocity > 5 then
        if not slowWalkBint:is_active() then
            return "moving"
        else
            return "slowwalking"
        end
    elseif m_hGroundEntity ~= -1 and velocity < 5 then
        return "standing"
    end
end

local renderer = {
    boldText = function(text, font, pos, size, color)
        local shadowpos1 = vec2_t.new(pos.x + 1, pos.y+ 1)
        local shadowpos2 = vec2_t.new(pos.x - 1, pos.y- 1)
        local shadowpos3 = vec2_t.new(pos.x, pos.y + 1)
        local shadowpos4 = vec2_t.new(pos.x, pos.y - 1)
        local shadowpos5 = vec2_t.new(pos.x + 1, pos.y + 1)
        local shadowpos6 = vec2_t.new(pos.x - 1, pos.y - 1)
        local shadowpos7 = vec2_t.new(pos.x - 1, pos.y + 1)
        local shadowpos8 = vec2_t.new(pos.x + 1, pos.y - 1)
        local shadowpos9 = vec2_t.new(pos.x + 1, pos.y)
        local shadowpos10 = vec2_t.new(pos.x - 1, pos.y)
        local shadowpos11 = vec2_t.new(pos.x, pos.y + 1)
        local shadowpos12 = vec2_t.new(pos.x, pos.y - 1)
        shadowcolor = color_t.new(0, 0, 0, 100)

        renderer.text(text, font, shadowpos1, size, shadowcolor)
        renderer.text(text, font, shadowpos2, size, shadowcolor)
        renderer.text(text, font, shadowpos3, size, shadowcolor)
        renderer.text(text, font, shadowpos4, size, shadowcolor)
        renderer.text(text, font, shadowpos5, size, shadowcolor)
        renderer.text(text, font, shadowpos6, size, shadowcolor)
        renderer.text(text, font, shadowpos7, size, shadowcolor)
        renderer.text(text, font, shadowpos8, size, shadowcolor)
        renderer.text(text, font, shadowpos9, size, shadowcolor)
        renderer.text(text, font, shadowpos10, size, shadowcolor)
        renderer.text(text, font, shadowpos11, size, shadowcolor)
        renderer.text(text, font, shadowpos12, size, shadowcolor)
        renderer.text(text, font, pos, size, color)
    end,
}

function get_invertion()
    local inverter = ui.get_key_bind("antihit_antiaim_flip_bind"):is_active()
    if inverter then
        return ">"
    else
        return "<"
    end
end


client.register_callback("shot_fired", function(shot_info)
    if shot_info.result ~= "hit" and not shot_info.manual then
        misses = misses + 1
    end
    if shot_info.result == "hit" and not shot_info.manual then
        hits = hits + 1
    end
end)


local function on_paint()
    local local_player = entitylist.get_local_player()
    renderer.boldText("nixware.cc | state panel", smallest_pixel, vec2_t.new(20, 1080/2-120), 10, color.white)
    renderer.boldText("> shot info: misses - "..misses.." hits - "..hits,  smallest_pixel, vec2_t.new(20, 1080/2-110), 10, color.light_pink)
    renderer.boldText("> player info: state - "..get_cond(), smallest_pixel, vec2_t.new(20, 1080/2-100), 10, color.light_green)
    renderer.boldText("> anti-aim info: side - "..get_invertion(), smallest_pixel, vec2_t.new(20, 1080/2-90), 10, color.light_blue)
end
client.register_callback("paint", on_paint)


надеюсь вам пригодится.
автор стояк,взято с форума никсвараScreenshot_43.png выглядит как то так.
 
Сверху Снизу