View Single Post
Author Message
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 03-04-2013 , 01:04   [CSS-TF2] Auto Sprint Source [v2.1b]
Reply With Quote #1

Hi,

'Finally', we can have a sprint plugin which doesn't require players to bind any key.
You can sprint by simply pressing your use key (default: E).
I still let the possibility to bind a key with the !sprint command.

Installation:
Simply drop auto_sprint_source.smx in your addons/sourcemod/plugins folder
+drop auto_sprint_source.phrases.txt in your addons/sourcemod/translations folder.
TF2 version

Cvars:
sm_ass_enabled (def: 1) - Enable/Disable cvar
sm_ass_time (def: 3) - sprint time in seconds
sm_ass_cooldown (def: 10) - cool down time in seconds
sm_ass_speed (def: 1.33) - sprint speed ratio
sm_ass_team (def: 0) - team restriction: 0 = all / 2 = T's only / 3 = CT's only
sm_ass_adverts (def: 1) - Enable/Disable sprint and cooldown messages
sm_ass_welcome (def: 1) - Enable/Disable welcome info

Changelog:
v2.1 (Mar15)
. fixed: sprint & cooldown running on player death, or when players goes to spec / disconnects
. TF2 version also updated
v1.2.2 (Apr. 14):
. cvar flags adjusted/renamed
. 2 cvars added: sm_ass_adverts & sm_ass_welcome


(Unclaimed screenshot)

Credits:
Thanks to Shaman and Bacardi.
Some guy (whom I will not say the name) managed to do such plugin for Sourcemod too, but didn't want to make it public and share his code.
So I had to try since I needed one for a soccer server.
Also thanks to Yak for his scripting FAQ
Servers using this plugin:
http://www.gametracker.com/search/?s...l&sort=&order=
http://www.gametracker.com/search/?s...l&sort=&order=
http://www.game-monitor.com/search.p...t_src_version=

St00ne
Attached Files
File Type: txt auto_sprint_source.phrases.txt (444 Bytes, 876 views)
File Type: sp Get Plugin or Get Source (auto_sprint_source.sp - 1364 views - 8.6 KB)
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 08-11-2019 at 02:44. Reason: Small update (changed sprint to sm_sprint as advised by Red, and used GetclientSerial for the timers).
St00ne is offline