Raised This Month: $12 Target: $400
 3% 

[CSGO] A Sprint command for CSGO


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Austin
Senior Member
Join Date: Oct 2005
Plugin ID:
8354
Plugin Version:
1.1
Plugin Category:
All
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A Sprint command for CSGO with optional slowdown, cooldown feedback messages and sounds.
    Old 01-04-2023 , 03:28   [CSGO] A Sprint command for CSGO
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (ABS_CSGO_Sprint.sp - 193 views - 13.5 KB)

    Last edited by Austin; 01-04-2023 at 09:33. Reason: Updated to newdecls
    Austin is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 19:12.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode