• 若下载论坛资源出现无法加载此页面错误提示,请关闭杀毒软件的HTTPS加密链接扫描
> 天使光环

Lua > 天使光环 1.0

没有下载权限
查毒链接
https://www.hvhbbs.de/
Aimware Crack Lua功能失效无法加载
900227ec4a9e2247f42c9b9320b1b2e7.webp


代码:
local Camera = gui.Reference("World","Camera")
local ColorPicker = gui.ColorPicker(Camera, "Color", "天使光环颜色", 255, 0, 0, 255)
local Slider_y = gui.Slider(Camera, "Slider_y", "天使光环上下方向", 7, 0, 12, 0.1)
local Slider_s = gui.Slider(Camera, "Slider_x", "天使光环大小", 8, 0, 12, 0.1)

function DrawChineseHat(color, extra_z, size)
    local local_entity = entities:GetLocalPlayer()
    if not local_entity or not local_entity:IsAlive() then
        return
    end
    local hat_center = local_entity:GetHitboxPosition(0)
    for i = 1, 360, 1 do
        local old_position_x = nil
        local old_position_y = nil
        local current_position_x = nil
        local current_position_y = nil
        current_position_x, current_position_y = client.WorldToScreen(Vector3(hat_center.x + math.sin(math.rad(i)) * size, hat_center.y + math.cos(math.rad(i)) * size, hat_center.z + extra_z))
        old_position_x, old_position_y = client.WorldToScreen(Vector3(hat_center.x + math.sin(math.rad(i - 1)) * size, hat_center.y + math.cos(math.rad(i - 1)) * size, hat_center.z + extra_z))
        draw.Line(current_position_x, current_position_y, old_position_x, old_position_y)
    end
end

function draw_hat()
    local local_entity = entities:GetLocalPlayer()
    if not local_entity or not local_entity:IsAlive() then return end
    if gui.GetValue("world.thirdperson") then
        draw.Color(ColorPicker:GetValue())
        DrawChineseHat({255,255,255,155}, Slider_y:GetValue(), Slider_s:GetValue())
    end
end

callbacks.Register('Draw', draw_hat)
作者
Karinrin
下载
9
查看
532
首次发布
最后更新

Ratings

0.00 星 0 星

来自Karinrin的更多资源

后退
顶部 底部