This post has been marked by the post author as the answer.
remember to keep a backup of the original
you want to change this logic here a bit
if ( GetGamePlayerControlCanRun() == 1 and (GetGamePlayerStatePlrKeyShift() == 1 or GetGamePlayerStatePlrKeyShift2() == 1) ) then
-- sprinting speed, modified by directions.
SetGamePlayerControlBasespeed(2.0)
if ( GetGamePlayerControlThirdpersonEnabled() == 1 and GetGamePlayerControlThirdpersonCameraFollow() == 1 ) then
-- WASD run speed
else
if ( g_PlrKeyS == 1 ) then
SetGamePlayerControlBasespeed(1.0)
else
if ( g_PlrKeyW == 1 ) then
if ( g_PlrKeyA == 1 or g_PlrKeyD == 1 ) then
SetGamePlayerControlBasespeed(1.75)
end
else
if ( g_PlrKeyA == 1 or g_PlrKeyD == 1 ) then
SetGamePlayerControlBasespeed(1.5)
end
end
end
end
SetGamePlayerControlIsRunning(1)
else
SetGamePlayerControlBasespeed(1.0)
SetGamePlayerControlIsRunning(0)
end
so that it looks something like this
if ( GetGamePlayerControlCanRun() == 1 and GetGamePlayerStatePlrKeyShift() ~= 1 and GetGamePlayerStatePlrKeyShift2() ~= 1 ) then
-- sprinting speed, modified by directions.
SetGamePlayerControlBasespeed(2.0)
if ( GetGamePlayerControlThirdpersonEnabled() == 1 and GetGamePlayerControlThirdpersonCameraFollow() == 1 ) then
-- WASD run speed
else
if ( g_PlrKeyS == 1 ) then
SetGamePlayerControlBasespeed(1.0)
else
if ( g_PlrKeyW == 1 ) then
if ( g_PlrKeyA == 1 or g_PlrKeyD == 1 ) then
SetGamePlayerControlBasespeed(1.75)
end
else
if ( g_PlrKeyA == 1 or g_PlrKeyD == 1 ) then
SetGamePlayerControlBasespeed(1.5)
end
end
end
end
SetGamePlayerControlIsRunning(0)
else
SetGamePlayerControlBasespeed(1.0)
SetGamePlayerControlIsRunning(0)
end