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

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

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

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

Lua > 平滑第三人称 1.0

没有下载权限
查毒链接
https://www.hvhbbs.cc/
注:Aimware Crack Lua功能失效无法加载
2b6f1f58-cdb6-4aa6-986f-8a7f451d6ab5.webp


代码:
local Camera = gui.Reference("World","Camera")
local thirdperson_slider = gui.Slider(Camera, "thirdperson_slider", "平滑第三人称", 150, 0, 500)
local distance = 0

function on_paint()
    local screen_width, screen_height = draw.GetScreenSize()
    local scx, scy = screen_width * 0.5, screen_height * 0.5
 
    local_player = entities.GetLocalPlayer()

    if local_player == nil then
        return
    end
   
    if not entities.GetLocalPlayer():IsAlive() then
        return
    end

    local multiplier = (1.0 / 0.2) * globals.FrameTime()

    if gui.GetValue("world.thirdperson") then
        if distance < 1.0 then
            distance = ( distance + ( multiplier * ( 1 - distance ) ) )
        end
    else
        distance = 0
    end

    if distance >= 1.0 then
        distance = 1
    end

    if gui.GetValue("world.thirdperson") then
        gui.SetValue("world.thirdpersondist", (thirdperson_slider:GetValue() * distance))
    end
end

callbacks.Register("Draw", on_paint)
> 天使光环
Lua  > 天使光环  1.0
作者
Karinrin
下载
4
查看
448
首次发布
最后更新

Ratings

0.00 星 0 星

来自Karinrin的更多资源

后退
顶部 底部