Login to ZARP





View BBCode Back »

Server Name:

Bhop

Suggestion Title:

Fix Crouch bug

How would it benefit the server:

Stop people coming to a complete stand still when uncrouching. **this does not happen every time**

Potential Issues/Exploits:

N/A

Additional notes:
When Onion was owner he had taken this and implemented it for a day then removed it. Please add it back to the server :)

If there is any issue with the code, please let me know and ill look into it myself :)

*This is not my code* Fix for the crouch bug:
function GM:Move( ply, data )
    if not IsValid( ply ) then return end
    if LocalPlayer and ply != LocalPlayer() then return end
    
    local style = ply:GetNWInt("style")
    if ply:IsOnGround() and not OnGround[ ply ] then
        OnGround[ply] = 0
    elseif ply:IsOnGround() and OnGround[ply] then
        OnGround[ply] = OnGround[ply] + 1
        if OnGround[ply] > 12 then
            //ply:SetDuckSpeed( 0.4 )
            //ply:SetUnDuckSpeed( 0.2 )
        end
    elseif not ply:IsOnGround() then
        OnGround[ply] = 0
        //ply:SetDuckSpeed( 0 )
        //ply:SetUnDuckSpeed( 0 )
    end

BBCode


Time to create page: 0.084 seconds

278 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
17/127
Online
Connect to server View Gametracker Deathrun
0/40
Online
Connect to server View Gametracker TTT
0/47
Online
Connect to server View Gametracker Bhop
0/32
Online
Connect to server View Gametracker Surf
5/32
Online
Connect to server View Gametracker Prop Hunt
3/42
Online
Connect to server View Gametracker Sandbox
0/42
Online
Connect to server Discord
253/971
Online
Top