• 若下载论坛资源出现无法加载此页面错误提示,请关闭杀毒软件的HTTPS加密链接扫描
> 平滑第三人称

Lua > 平滑第三人称 1.0

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

Ratings

0.00 星 0 星

来自Karinrin的更多资源

后退
顶部 底部