ФПС лимит

Flufick

Известный
Автор темы
262
17
Всем привет, на лаунчер арз фпс лимит не помогает персу плыть быстрее, т.е когда ставишь огран 20 перс плывет как и с 100, есть вариант пофиксить эту дичь? Без swimfps.asi и д.р т.к плывут тоже медленно, но быстрее чем с 100 фпс
 
Решение
swimfix.lua:
local active = false
local speed = 10 -- скорость плавания

function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('swimfix', function() active = not active sampAddChatMessage(active and 'on' or 'off', -1) end)
    while true do wait(0)
        if active then
            if isCharInWater(PLAYER_PED) then
                local _, id = sampGetPlayerIdByCharHandle(PLAYER_PED); local anim = sampGetPlayerAnimationId(id); local lib, name = sampGetAnimationNameAndFile(anim)
                if lib == 'SWIM' then
                    setCharAnimSpeed(PLAYER_PED, name, speed)
                end
            end
        end
    end
end
Активация: /swimfix
Можно ускорить анимацию и он будет плыть быстрее...

delete samp pls

Участник
28
15
swimfix.lua:
local active = false
local speed = 10 -- скорость плавания

function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('swimfix', function() active = not active sampAddChatMessage(active and 'on' or 'off', -1) end)
    while true do wait(0)
        if active then
            if isCharInWater(PLAYER_PED) then
                local _, id = sampGetPlayerIdByCharHandle(PLAYER_PED); local anim = sampGetPlayerAnimationId(id); local lib, name = sampGetAnimationNameAndFile(anim)
                if lib == 'SWIM' then
                    setCharAnimSpeed(PLAYER_PED, name, speed)
                end
            end
        end
    end
end
Активация: /swimfix
Можно ускорить анимацию и он будет плыть быстрее, скорость можно изменить в коде.
 

Flufick

Известный
Автор темы
262
17
swimfix.lua:
local active = false
local speed = 10 -- скорость плавания

function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('swimfix', function() active = not active sampAddChatMessage(active and 'on' or 'off', -1) end)
    while true do wait(0)
        if active then
            if isCharInWater(PLAYER_PED) then
                local _, id = sampGetPlayerIdByCharHandle(PLAYER_PED); local anim = sampGetPlayerAnimationId(id); local lib, name = sampGetAnimationNameAndFile(anim)
                if lib == 'SWIM' then
                    setCharAnimSpeed(PLAYER_PED, name, speed)
                end
            end
        end
    end
end
Активация: /swimfix
Можно ускорить анимацию и он будет плыть быстрее, скорость можно изменить в коде.
А можно в файле пожалуйста