Вопрос Как пофиксить данную луа | Неверлуз?

Новичок
Статус
Оффлайн
Регистрация
12 Апр 2021
Сообщения
1
Реакции[?]
0
Поинты[?]
0
Вот такая луа , но я не могу правильно её перенести на новый апи , постоянно ошибки и т.д заебался уже , буду благодарен если кто-то поможет и кинет под хайд !) Или кто может обьяснить как пофиксить

Код:
local aimbot = {
    enable = menu.Switch("Unhittable | Improved Ragebot", "Enable  Improved Ragebot", false, "Enables ragebot features"),
    mode = menu.Combo("Unhittable | Improved Ragebot", "Mode", {"Prefer", "Force"}, 0,  ""),
    prefer_head = menu.MultiCombo("Unhittable | Improved Ragebot", "Prefer head", {"Standing", "Slowwalk", "Running", "In Air", "Holding E"}, 0, "Example: Prefers head on if enemy is running"),
    prefer_body = menu.MultiCombo("Unhittable | Improved Ragebot", "Prefer body", {"Standing", "Slowwalk", "Running", "In Air", "Lethal", "Ducking", "Holding E"}, 0, "Example: Prefers body on if enemy is standing"),
    force_head = menu.MultiCombo("Unhittable | Improved Ragebot", "Force head", {"Standing", "Slowwalk", "Running", "In Air", "Holding E"}, 0, "Example: Prefers head on if enemy is running"),
    force_body = menu.MultiCombo("Unhittable | Improved Ragebot", "Force body", {"Standing", "Slowwalk", "Running", "In Air", "Lethal", "Ducking", "Holding E"}, 0, "Example: Prefers body on if enemy is standing"),   
}


--retarded stuff for ragebot
local function ragebot_head(ent, state)
ragebot.EnableHitbox(ent, 0, state)
ragebot.EnableMultipoints(ent, 0, state)
ragebot.EnableHitbox(ent, 1, state)
ragebot.EnableMultipoints(ent, 1, state)
end

local function ragebot_baim(ent, state)
ragebot.EnableHitbox(ent, 2, state)
ragebot.EnableMultipoints(ent, 2, state)
ragebot.EnableHitbox(ent, 3, state)
ragebot.EnableMultipoints(ent, 3, state)
ragebot.EnableHitbox(ent, 4, state)
ragebot.EnableMultipoints(ent, 4, state)
ragebot.EnableHitbox(ent, 5, state)
ragebot.EnableMultipoints(ent, 5, state)
ragebot.EnableHitbox(ent, 6, state)
ragebot.EnableMultipoints(ent, 6, state)
end

local function ragebot_legs(ent, state)
ragebot.EnableHitbox(ent, 7, state)
ragebot.EnableMultipoints(ent, 7, state)
ragebot.EnableHitbox(ent, 8, state)
ragebot.EnableMultipoints(ent, 8, state)
ragebot.EnableHitbox(ent, 9, state)
ragebot.EnableMultipoints(ent, 9, state)
ragebot.EnableHitbox(ent, 10, state)
ragebot.EnableMultipoints(ent, 10, state)
ragebot.EnableHitbox(ent, 11, state)
ragebot.EnableMultipoints(ent, 11, state)
ragebot.EnableHitbox(ent, 12, state)
ragebot.EnableMultipoints(ent, 12, state)
end

local function ragebot_arms(ent, state)
ragebot.EnableHitbox(ent, 13, state)
ragebot.EnableMultipoints(ent, 13, state)
ragebot.EnableHitbox(ent, 14, state)
ragebot.EnableMultipoints(ent, 14, state)
ragebot.EnableHitbox(ent, 15, state)
ragebot.EnableMultipoints(ent, 15, state)
ragebot.EnableHitbox(ent, 16, state)
ragebot.EnableMultipoints(ent, 16, state)
ragebot.EnableHitbox(ent, 17, state)
ragebot.EnableMultipoints(ent, 17, state)
ragebot.EnableHitbox(ent, 18, state)
ragebot.EnableMultipoints(ent, 18, state)
end

local function handle_aimbot()
if aimbot.enable:GetBool() then
for idx = 1, g_GlobalVars.maxClients + 1 do
    local ent = g_EntityList:GetClientEntity(idx)
        if ent and ent:IsPlayer() then
            local player = ent:GetPlayer()
            local view_angles = player:GetRenderAngles()
            local is_teammate = player:IsTeamMate()
            local me = g_EntityList:GetClientEntity(g_EngineClient:GetLocalPlayer())
            if me == nil then
            return
            end
            local localPlayer = me:GetPlayer()
            local enemy_pos = ent:GetProp("DT_BaseEntity", "m_vecOrigin")
            local my_pos = localPlayer:GetProp("DT_BaseEntity", "m_vecOrigin")
            local dist = my_pos:DistTo(enemy_pos)
            local health = player:GetProp("DT_BasePlayer", "m_iHealth")
            local distance_int = math.floor(dist)
                if not player:IsTeamMate() and health > 0 then
                local speed = math.floor(get_velocity(player))
                local duck_amount = player:GetProp("DT_BasePlayer", "m_flDuckAmount")
                local new_dist = distance_int / 8
                local m_fFlags = player:GetProp("DT_BasePlayer", "m_fFlags")
                
            --prefer body
            if aimbot.prefer_body:GetBool(0) then
                if (speed <= 2) then
                    ragebot.SetHitboxPriority(ent:EntIndex(), 3, 1000)
                    ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
                end
            end
                if aimbot.prefer_body:GetBool(1) then
                    if speed <= 100 and speed > 2 then
                        ragebot.SetHitboxPriority(ent:EntIndex(), 3, 1000)
                        ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
                    end
                end
                if aimbot.prefer_body:GetBool(2) then
                       if speed > 100 then
                        ragebot.SetHitboxPriority(ent:EntIndex(), 3, 1000)
                        ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
                end
              end
                if aimbot.prefer_body:GetBool(3) then
                    if bit.band(m_fFlags, bit.lshift(1, 0)) == 0 then
                        ragebot.SetHitboxPriority(ent:EntIndex(), 3, 1000)
                        ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
                    end
                end
            --prefer baim if lethal
                if aimbot.prefer_body:GetBool(4) then
                local weapon = localPlayer:GetActiveWeapon()
    
                if weapon == nil then
                return
                end

                local weapon_damage = weapon:GetWeaponDamage()

                if (health > 0 and health < weapon_damage) then
                        ragebot.SetHitboxPriority(ent:EntIndex(), 3, 1000)
                        ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
            end
        end
                if aimbot.prefer_body:GetBool(5) then
                       if duck_amount == 1 then
                        ragebot.SetHitboxPriority(ent:EntIndex(), 3, 1000)
                        ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
                    end
              end
                if aimbot.prefer_body:GetBool(6) then
                    if view_angles.pitch >= 0 and view_angles.pitch <= 50 or view_angles.pitch >= 329 and view_angles.pitch <= 360 then
                        ragebot.SetHitboxPriority(ent:EntIndex(), 3, 1000)
                        ragebot.ForceHitboxSafety(ent:EntIndex(), 3)
                        ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
                end
                end
            --force body
            if aimbot.force_body:GetBool(0) then
                if (speed <= 2) then
                    ragebot_baim(ent:EntIndex(), true)
                    ragebot_head(ent:EntIndex(), false)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                end
            end
                if aimbot.force_body:GetBool(1) then
                    if speed <= 100 and speed > 2 then
                    ragebot_baim(ent:EntIndex(), true)
                    ragebot_head(ent:EntIndex(), false)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                    end
                end
                if aimbot.force_body:GetBool(2) then
                       if speed > 100 then
                    ragebot_baim(ent:EntIndex(), true)
                    ragebot_head(ent:EntIndex(), false)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                end
              end
                if aimbot.force_body:GetBool(3) then
                    if bit.band(m_fFlags, bit.lshift(1, 0)) == 0 then
                    ragebot_baim(ent:EntIndex(), true)
                    ragebot_head(ent:EntIndex(), false)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                    end
                end
            --force baim if lethal
                if aimbot.force_body:GetBool(4) then
                local weapon = localPlayer:GetActiveWeapon()
    
                if weapon == nil then
                return
                end

                local weapon_damage = weapon:GetWeaponDamage()

                if (health > 0 and health < weapon_damage) then
                    ragebot_baim(ent:EntIndex(), true)
                    ragebot_head(ent:EntIndex(), false)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
            end
        end
                if aimbot.force_body:GetBool(5) then
                       if duck_amount == 1 then
                    ragebot_baim(ent:EntIndex(), true)
                    ragebot_head(ent:EntIndex(), false)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                    end
              end
                if aimbot.force_body:GetBool(6) then
                    if view_angles.pitch >= 0 and view_angles.pitch <= 50 or view_angles.pitch >= 329 and view_angles.pitch <= 360 then
                    ragebot_baim(ent:EntIndex(), true)
                    ragebot_head(ent:EntIndex(), false)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                end
                end               


            --prefer head
            if aimbot.prefer_head:GetBool(0) then
                if (speed <= 2) then
                    ragebot.SetHitboxPriority(ent:EntIndex(), 0, 1000)
                    end
                end
                if aimbot.prefer_head:GetBool(1) then
                    if speed <= 100 and speed > 2 then
                        ragebot.SetHitboxPriority(idx, 0, 1000)
                    end
                end
                if aimbot.prefer_head:GetBool(2) then
                   if speed > 100 then
                    ragebot.SetHitboxPriority(idx, 0, 1000)
                  end
              end
                if aimbot.prefer_head:GetBool(3) then
                       if bit.band(m_fFlags, bit.lshift(1, 0)) == 0 then
                        ragebot.SetHitboxPriority(idx, 0, 1000)
                  end
              end
                if aimbot.prefer_head:GetBool(4) then
                    if view_angles.pitch >= 0 and view_angles.pitch <= 50 or view_angles.pitch >= 329 and view_angles.pitch <= 360 then
                        ragebot.SetHitboxPriority(idx, 0, 1000)
                    end
                end
            --prefer baim if lethal
                if aimbot.prefer_head:GetBool(4) then
                local weapon = localPlayer:GetActiveWeapon()
    
                if weapon == nil then
                return
                end

                local weapon_damage = weapon:GetWeaponDamage()

                if (health > 0 and health < weapon_damage) then
                    ragebot.SetHitboxPriority(ent:EntIndex(), 3, 2)
                    ragebot.SetHitboxPriority(ent:EntIndex(), 2, 1)
                    ragebot.SetHitboxPriority(ent:EntIndex(), 4, 10)
            end
        end
            --force head
            if aimbot.force_head:GetBool(0) then
                if (speed <= 2) then
                    ragebot_baim(ent:EntIndex(), false)
                    ragebot_head(ent:EntIndex(), true)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                    end
                end
                if aimbot.force_head:GetBool(1) then
                    if speed <= 100 and speed > 2 then
                        ragebot_baim(ent:EntIndex(), false)
                        ragebot_head(ent:EntIndex(), true)
                        ragebot_legs(ent:EntIndex(), false)
                        ragebot_arms(ent:EntIndex(), false)
                    end
                end
                if aimbot.force_head:GetBool(2) then
                   if speed > 100 then
                    ragebot_baim(ent:EntIndex(), false)
                    ragebot_head(ent:EntIndex(), true)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
                  end
              end
                if aimbot.force_head:GetBool(3) then
                       if bit.band(m_fFlags, bit.lshift(1, 0)) == 0 then
                        ragebot_baim(ent:EntIndex(), false)
                        ragebot_head(ent:EntIndex(), true)
                        ragebot_legs(ent:EntIndex(), false)
                        ragebot_arms(ent:EntIndex(), false)
                  end
              end
                if aimbot.force_head:GetBool(4) then
                    if view_angles.pitch >= 0 and view_angles.pitch <= 50 or view_angles.pitch >= 329 and view_angles.pitch <= 360 then
                        ragebot_baim(ent:EntIndex(), false)
                        ragebot_head(ent:EntIndex(), true)
                        ragebot_legs(ent:EntIndex(), false)
                        ragebot_arms(ent:EntIndex(), false)
                    end
                end
            --prefer baim if lethal
                if aimbot.force_head:GetBool(4) then
                local weapon = localPlayer:GetActiveWeapon()
    
                if weapon == nil then
                return
                end

                local weapon_damage = weapon:GetWeaponDamage()

                if (health > 0 and health < weapon_damage) then
                    ragebot_baim(ent:EntIndex(), false)
                    ragebot_head(ent:EntIndex(), true)
                    ragebot_legs(ent:EntIndex(), false)
                    ragebot_arms(ent:EntIndex(), false)
            end
        end

        end
    end
end
end
end
 
Олдфаг
Статус
Оффлайн
Регистрация
28 Дек 2018
Сообщения
2,583
Реакции[?]
1,439
Поинты[?]
0
убрали из апи форс, сейфити, префер хитбоксы и тд, в паблик апи так точно нет.
 
Сверху Снизу