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