• ✿ MoeBBS 全部交流群公示 ✿
    ↓↓↓遇到病毒或者恶意文件或是需要帮助?点击下面链接开个工单或者群内艾特管理,管理员将会在12-48小时内回复↓↓↓
    HVHBBS-TICKET
  • ✿ 资源版权与免责声明 ✿

    本站所有资源均来自用户分享,版权归原作者所有。资源仅供交流,严禁用于商业用途。

    侵权处理: 如发现本站资源侵犯了您的权益,请联系管理团队处理。

    ⚠ 注意: 申请删帖时,请务必提供您作为该资源开发者/版权方的权属证明(如原创工程文件、首发记录等)。经核实后,我们将立即处理。
    *本站无法完全保证用户上传内容的安全性与合法性,请下载前自行甄别,使用风险自负。
  • 若下载论坛资源出现无法加载此页面错误提示,请关闭杀毒软件的HTTPS加密链接扫描。
> 天使光环

Lua > 天使光环 1.0

没有下载权限
查毒链接
https://www.hvhbbs.cc/
注: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
下载
10
查看
582
首次发布
最后更新

Ratings

0.00 星 0 星

来自Karinrin的更多资源

后退
顶部 底部