Description
A Sprint command for CSGO with optional slowdown, cooldown and feedback messages and sounds.
Feature list
Implements a speed boost for a configurable amount of time.
Optional slowdown time after the speed boost is used
Configurable cooldown time
Optional feedback messages
Optional feedback sounds
CVAR/Commands
sm_abs_sprint
The command to bind to a key to activate sprint.
For example in the console type
bind "q" "sm_abs_sprint"
Use whatever free key you have or want for sprint instead of the "q" key in this example
sm_abs_sprint_enabled
Sprint Enabled = 1 or Disabled = 0
sm_abs_sprint_duration
Time in seconds speed boost will last
Default = 6
sm_abs_sprint_speed
Speed boost amount
Default = 1.50 times as fast
sm_abs_sprint_slowdown_enabled;
Sprint Slowdown Enabled = 1 or Disabled = 0
When enabled player speed is slower than normal for a period of time after using sprint
sm_abs_sprint_slowdown_duration;
Time in seconds slowdown will last
Default = 8
If slowdown is enabled then the the time you have to wait before using sprint agin is:
sm_abs_sprint_slowdown_duration + sm_abs_sprint_cooldown_duration
sm_abs_sprint_slowdown_speed;
Speed slowdown amount
Default = 0.75 times as fast
sm_abs_sprint_cooldown_duration
Time in seconds to wait before using the speed boost again
Default = 30
sm_abs_sprint_showMessages
Sprint Messages Enabled = 1 or Disabled = 0
Colored messages will be shown for Sprint/Slowdown/Cooldown - Start/End
sm_abs_sprint_playSounds
Sprint Sounds Enabled = 1 or Disabled = 0
Sounds will be Played for Sprint/Slowdown/Cooldown - Start/End
sm_sm_abs_sprint_soundVolume
Sprint Sounds Volume 0 to 50
Default = 30
Sets how loud the sounds will be
Installation instructions
Click the Get Plugin link below
Put the ABS_CSGO_Sprint.smx file into your SourceMod plugins folder.
Plans
I implemented about everything I could think of for this but will consider
adding "good" new ideas for it.
The plugin is well tested but will fix any bugs if found.
Credits
The scripting techniques in this plugin came from the CSS version.
Credit goes to St00ne / (and Bacardi Of Course!)
https://forums.alliedmods.net/showth...ghlight=sprint
Thank You!
Changes from the original CSS version.
1) Bug fix. At least for running under CSGO the original CSS plugin would crash if there was a
map change while one of the timers were running, either in sprint or in cooldown timer.
2) Enabling sprint with the use key has been removed since most of
the time you don't want to also enable sprint with use.
3) Added an optional slowdown feature where you move slower for a period of time after using sprint.
4) Added features to optionally show messages and play sounds for the sprint states of
Sprint/Slowdown/Cooldown - Start/End
Changelog
2023-01-04
v1.0 Released
v1.1 Released - Updated to newdecls required