But I can use noclip after code refresh.
Any hints?
[lua]
function PLUGIN:Move( ply, mv ) -- Restricts movement when player has leg break buff
if ply:HasBuff( "leghurt" ) then
local m = .25
local f = mv:GetForwardSpeed()
local mf = math.Clamp( f * m, 0, ply:GetWalkSpeed() )
local mfv = math.abs( math.sin( CurTime() * 3 ) ) * mf
mv:SetForwardSpeed( mfv )
mv:SetSideSpeed( 0 )
end
end
[/lua]
if ply:HasBuff( "leghurt" ) and ply:GetMoveType() == MOVETYPE_WALK then
Sorry, you need to Log In to post a reply to this thread.