LUA скрипт Gamesense resolver

Начинающий
Статус
Оффлайн
Регистрация
24 Июл 2022
Сообщения
129
Реакции[?]
4
Поинты[?]
0
self-made resolver$$$

lua:
local rage_other_checkbox = ui.new_checkbox("Rage", "Other", "Resolver")

local function resolverIndicator(player)
    if not ui.get(rage_other_checkbox) or entity.is_dormant(player) then
        return false
    else
        return true
    end
end

local function resolverEvent()
    local localPlayer = entity.get_local_player()
    local enemiesList = entity.get_players(true)

    for i, enemyObj in ipairs(enemiesList) do
        if ui.get(rage_other_checkbox) and entity.is_alive(localPlayer) and not entity.is_dormant(enemyObj) then
            plist.set(enemyObj, "Force body yaw", true)
            local properBodyYaw = math.floor(entity.get_prop(enemyObj, "m_flPoseParameter", 11) * 120 - 60)
            plist.set(enemyObj, "Force body yaw value", properBodyYaw)
        else
            plist.set(enemyObj, "Force body yaw", false)
            plist.set(enemyObj, "Force body yaw value", 0)
        end
    end
end

client.set_event_callback("paint", resolverEvent)
 
Сверху Снизу