Garry's Mod

Garry's Mod

26 ratings
STStamina
 
Rate  
Favorite
Favorited
Unfavorite
Type: Tool, Addon
Tags: Fun, Realism
File Size
Posted
Updated
0.002 MB
Jul 23, 2018 @ 4:37pm
Jul 25, 2018 @ 3:20pm
2 Change Notes ( view )

Subscribe to download
STStamina

Subscribed
Unsubscribe
In 1 collection by SweptThrone
Throneco Complete Pack
106 items
Description
A very simple yet effective stamina system.

Everyone loves games with stamina systems, right? It never gets annoying or anything.

STStamina adds a custom stamina system to your Garry's Mod game.

When a player sprints, their stamina will decrease. Jump to take out a big chunk of stamina. Swim around and watch your stamina drain. Stand still or take a pill and your stamina will quickly regenerate. If your stamina is below 25, your character will sound exhausted and you'll be unable to sprint and jumping will be nerfed.

This should work on all gamemodes that support sprinting.

Please report any and all issues you find.

I made this originally for a self-made heist gamemode, but I just thought I'd release it.

[discord.gg]
[github.com]

Credits:
Valve - Sounds
Me - All of the code
< >
16 Comments
SweptThrone  [author] Sep 30 @ 8:10am 
Well that can’t be happening unless something broke your PlayerInitialSpawn hook, so I don’t know what to tell you
zorich_michael Sep 30 @ 7:00am 
nope no other errors that i can see in the spam field of error
SweptThrone  [author] Sep 29 @ 10:34pm 
that shouldn't be happening, do you get any other errors before that one? it's probably being called every tick, so if you can't find anything before it, uninstall this and see if there are any errors having to do with anything else.
zorich_michael Sep 29 @ 8:49pm 
File exists in two addons - possible conflicts! lua/ulib/shared/hook.lua (ULib and STStamina)

[ERROR] lua/autorun/server/doststamina.lua:53: bad argument #1 to 'SetWalkSpeed' (number expected, got nil)
1. SetWalkSpeed - [C]:-1
2. fn - lua/autorun/server/doststamina.lua:53
3. unknown - lua/ulib/shared/hook.lua:109

and i dont loose stamina at all so rip
mcbone_kenney Apr 18 @ 3:34pm 
STamina
TheKnightOfReach Jan 6 @ 3:10pm 
Huh, it actually doesn't look that bad.
SweptThrone  [author] Jan 6 @ 1:52pm 
https://cdn.discordapp.com/attachments/443833969818206217/531590561145028614/unknown.png it's the black bar in the bottom left, but it's usually filled with green, but i screwed around with stuff on my end so it isn't. it's big, clunky, aligned poorly, and overall just an eyesore.
SweptThrone  [author] Jan 6 @ 1:46pm 
it's big and ugly lol ill be honest but i dont have a picture
TheKnightOfReach Jan 6 @ 12:06pm 
Is there a pic of the stamina bar, so i can see how "Big" and "ugly" it is?
The Cockmonger™ Nov 18, 2018 @ 3:10pm 
Ok, my bad I didnt see it. I dont have the best eyes