Garry's Mod

Garry's Mod

318 ratings
TTT Sprint
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
22.996 KB
26 May, 2017 @ 1:47am
17 May, 2021 @ 3:42am
36 Change Notes ( view )

Subscribe to download
TTT Sprint

In 1 collection by Fresh Garry
Fresh Garrys TTT Server Addons
386 items
Description
This is a sprint Addon for TTT with stamina.
If it is installed you are allowed to sprint while pressing FORWARD (Default: W) and your Sprint key (by default USE Default: E or Shift key) until you have no stamina anymore. It regenerates if you are not sprinting. The normal function of the USE key will work too. The sprint key can be changed (paragraph 3).

You can change the position of the stamina bar by opening Help and Settings (Default: F1) and go to the Sprint tab, as you can see in the pictures. There are several built in positions for the HUD but you can also change it with the sliders. And its also possible to change the settings with commands in the console:
ttt_sprint_hud_offset_x | The x offset of the HUD. Def: 275
ttt_sprint_hud_offset_y | The y offset of the HUD. Def: 60
ttt_sprint_hud_allignment | The allignment of the hud. (0 = bottom, left; 1 = top, left; 2 = top, right; 3 = bottom, right) Def: 0

There is also the possibility to change the Sprint activation by opening the Help and Settings (Default: F1). You can choose between USE Key, Shift , Control, Custom Keys and Double tab. If you selected Custom you can change the key by typing in your key number. You can find the key numbers by opening the link ( https://wiki.garrysmod.com/page/Enums/KEY ) in the menu. IF you choose Double tap you can yhange tha time you have to perform the double tap.
You can also change this Settings with commands in the console:
ttt_sprint_activate_key | The key used to sprint. (0 = Use, 1 = Shift, 2 = Control, 3 = Custom, 4 = Double tap) Def:1
ttt_sprint_activate_key_custom | The custom key used to sprint if ttt_sprint_activate_key = 3. It has to be a Number. (Example: 32 = V Key) Def: 32 Key Numbers: https://wiki.garrysmod.com/page/Enums/KEY
ttt_sprint_doubletaptime | The time you have for double tapping if ttt_sprint_activate_key = 4. (0.001-1) Def:0.25
ttt_fgaddons_textmessage | Enables or disables the message in the chat. Def:1
ttt_sprint_crosshairdebugsize | The size of the crosshair used to prevent no crosshair while not sprinting. (Disabled = 0) Def:1

There are also configuration commands for admins:
ttt_sprint_no_crosshair | Makes the crosshair disappear while sprinting. Def: 1
ttt_sprint_regenerate | Sets stamina regeneration speed. (0.01-2) Def: 0.15
ttt_sprint_consume | Sets stamina consumption speed. (0.1-5) Def: 0.3
ttt_sprint_bonus_rel | The relative speed bonus given while sprinting. (0.1-2) Def: 0.5
(This commands affect the game after a new round starts)

Credits:
Special thanks to Lars ( https://steamhost.cn/steamcommunity_com/id/weexe/ ) because he helped me to get this working on DDC Servers.

Known Bugs:
- none
Feel free to report bugs!
119 Comments
Fresh Garry  [author] 8 Mar, 2022 @ 10:48am 
Hi,
at the moment there is no extra option for that. As workaround you could try to move it out of the screen. You could request the feature here: https://github.com/FreshGarry/TTT-Sprint And maybe someone will implement it. I could look after it if i have time and there are some more people requesting that feature.
Poxonjr 8 Mar, 2022 @ 4:11am 
Possible to remove VGUI entirely so it doesn't show the sprinting hud?
Fresh Garry  [author] 1 Jun, 2021 @ 1:58pm 
Well I am sorry for that. It semms to be an issue calculating your screen width. Anyways because i cant reproduce it i am not really able to fix that. I am glad that workaround works for you and you can use it.
hawky_ 30 May, 2021 @ 11:05pm 
@Fresh Garry well, I kinda just fixed it by using "ttt_sprint_hud_offset_x 1450" and it appeared the most right on my screen. thx for replying anyways
Fresh Garry  [author] 30 May, 2021 @ 1:13pm 
@Controlled by Bots
Hast du schon mal versucht, das Addon neu zu installieren, oder ohne andere Addons zu testen? Bei mir funktioniert das Addon wunderbar. Um das Addon zu bearbeiten muss man das erst extrahieren. Das ist ziemlich aufwendig. Du kannst die source Dateien hier finden: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=933056549&tscn=1622325881
@hawky_
I am sorry for that. But i cant help you there. I guess you could write that to the outhors of the rayhud. Maybe they can fix that. Otherways if you could implement the fix you could request it to merge here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=933056549&tscn=1622325881
hawky_ 29 May, 2021 @ 10:16pm 
Well, with rayhud it doesnt really show the alignment in F1. Only the activation key, rip.
Im a good Hooker 29 May, 2021 @ 3:04pm 
irgendwie funktioniert es nicht mit den commands in der konsole und das addon ist auch nicht im addon ordner wie finde ich jetzt dieses addon das ich das wenigstens umschreiben kann in der datei selbst
Fresh Garry  [author] 7 Apr, 2021 @ 1:40pm 
if you mean this adon with original sprint u just have to uninstall/deactivate this addon.
LakyBow 6 Apr, 2021 @ 1:58pm 
how do I remove the original sprint from the game?
Fresh Garry  [author] 3 Apr, 2021 @ 11:00am 
At the moment that is not possible and I cant see the point of having the sprinting only work for traitors. You could make a pull request here https://github.com/FreshGarry/TTT-Sprint and if somebody codes it i can add it to the addon.