Garry's Mod

Garry's Mod

Oxygen and Stamina System (And Flashlight Battery)
142 Comments
sziplike97 1 Oct @ 8:01am 
yeah alexmas it doesnt work for me either
incompatible with smooth flashlight :(
Nocny Koczkodan 18 Sep @ 10:18am 
[Oxygen and Stamina System (And Flashlight Battery)] lua/autorun/server/sv_ox_st.lua:212: attempt to compare nil with number
1. v - lua/autorun/server/sv_ox_st.lua:212
2. unknown - lua/includes/modules/hook.lua:102
AlexMas16 27 Aug @ 7:14am 
doesn't works
LmaoMatsx 20 Aug @ 9:56am 
Is there a command to make pill packs have no stamina?
average овош 18 Aug @ 6:11am 
how can i turn it off only to me but another players will still have stamina system?
dinogutt 1 Aug @ 8:37am 
Can you add a option that allows draining flashlight battery to restore shield or the charge in energy-powered weapons (like those often found in halo packs)
Sanders 28 Jul @ 1:37pm 
i have it set so we could use the stamina for "100 seconds" yet running and timing its no more then 15 sec why?
egeops123 27 Jul @ 7:01pm 
where is slider
egeops123 27 Jul @ 7:01pm 
solid wdym?
solid12 27 Jul @ 2:20pm 
I pressed Mouse 3 on the slider and it set it back to default
egeops123 26 Jul @ 12:58pm 
creator please answer my question any time i really want get chased with this mod
egeops123 26 Jul @ 12:36pm 
i need an emergency help please someone tell me
egeops123 26 Jul @ 12:26pm 
yo guys how do i fix my stamina system to original settings because i played with settings.
NyanCatGamer02 13 Jul @ 7:16pm 
There could be any way to fix the drowning feature that won't regenerate the lost health after drowning?
NyanCatGamer02 13 Jul @ 12:05am 
oh my god, I never knew I needed this until I subscribed to it, great job!!!
CyanStar 11 Jun @ 12:10am 
I love this addon, with my only real suggestion being maybe a way to assign different values for each slider to different players like you run out of stamina faster but others run out slower. Idk how difficult that would be to code tho-
sleepingpilot 3 May @ 3:46pm 
actually really underrated
MonoBoca 7 Feb @ 8:17pm 
i cant save configs:steamsad:
Sevka Slav 27 Jan @ 4:01pm 
meh fine, btw this mod of yours is hella cool, saying this so you feel good
is it possible someday for you to add UI modifications to it? I would like it to look more gritty and STALKER 2 like or dark instead of cartoony blue and green, not that I have a problem
Rad Poseidon  [author] 27 Jan @ 2:08pm 
I'm saying that it's on the creator of that mod. The code isn't open source so I'd have to unpackage it, and I don't think it's worth it to add compatibility for a specific mod when the developer of that one could have and should have just edited the player metatable to modify Player:FlashlightIsOn()
Sevka Slav 23 Jan @ 4:29pm 
... no I swear it does not use up the battery, besides I noticed this mod all it does is just paste a flashlight texture... which kinda sucks... but the animation is great
Sevka Slav 23 Jan @ 4:25pm 
wait, oh... sorry, hmm I don't know, when I used this, the flashlight battery hasn't gone done
Sevka Slav 23 Jan @ 4:25pm 
are you saying you could make a compatibility for this?
Rad Poseidon  [author] 23 Jan @ 4:08pm 
This addon uses GMod's default flashlight hooks to work. It's entirely possible for that mod to tie into them instead, which is what they should do.
Sevka Slav 22 Jan @ 12:11am 
is there any way you can make it compatible with this? https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2778699319&searchtext=flashlight+battery With this mod when I turn on the flashlight it doesn't drain battery
Rad Poseidon  [author] 26 Dec, 2024 @ 9:11pm 
Looks like TFA's old cbobbing. There are several reuploads
PixelPreasure 26 Dec, 2024 @ 12:23pm 
whats the viewbobbing addon?
Corcho 30 Nov, 2024 @ 1:57pm 
can hud you're using?
Rad Poseidon  [author] 17 Sep, 2024 @ 10:10am 
All of the gameplay values are server-sided, hence why they are prefixed with sv_
Domi Gamer 16 Sep, 2024 @ 10:07am 
And if you run this addon on the server, then all players have different stamina settings? Or is the server admin responsible for setting stamina for all players?
MERCY_ALL 20 Apr, 2024 @ 10:41am 
fun fact: if you set the width and height to 0 you just got the %
AzureAsher4544 13 Apr, 2024 @ 10:24am 
the position
AzureAsher4544 13 Apr, 2024 @ 10:22am 
how do i reset the things
Rad Poseidon  [author] 25 Feb, 2024 @ 12:04pm 
That is a plan, I sort of whipped out this current version over the summer when I had some time from school, as you can tell the O2 tank item is kind of buggy and incomplete.
It'll get updated again eventually, I haven't abandoned it, it's just more like the mod is on standby for the time being.
Fredrick 18 Feb, 2024 @ 11:40am 
I recommend adding in batteries to restore the flashlight's power by half in case the flashlight never recovers over time.
Olly 28 Jan, 2024 @ 4:19am 
The bars are all stuck empty for me despite the bars showing 100. any ideas why?
Coffee 19 Jan, 2024 @ 9:01am 
realistic!
wiimeiser 28 Dec, 2023 @ 6:47pm 
Might be a conflict with something Jmod added. I know it added nutrition and scrounging recently.
Smug Corvo 28 Dec, 2023 @ 10:37am 
For some reason, this mod paired with JMod prevents me from sprinting
YOU 3 Dec, 2023 @ 7:28pm 
thanks, maybe try improving the aspects you dont like about it if you want to. :steamthumbsup:
Rad Poseidon  [author] 3 Dec, 2023 @ 10:53am 
Old HUD I made. It's not very good, at least in my mind, but it is on my profile.
YOU 2 Dec, 2023 @ 6:43pm 
whats that hud
Jesiel61 30 Nov, 2023 @ 2:13pm 
i have some ideas for this addon, for the stamina bar there could be like a few different versions of it to look different since the one that we have is fine it's just kinda plain same for the oxygen meter maybe there could be alts like a oxygen tank or a bubble that would be cool, and for the flashlight maybe the meter could just be a battery or a flashlight and maybe you could add a thing that when your underwater bubbles come out of your playermodel's head area and you can control how much appear and that's all the idea's i have for this!
The Entire Polish Space Agency 10 Nov, 2023 @ 8:05pm 
Awesome mod!!! Recommend this mod to any gmod realism enthusiast!
5_Cell 21 Oct, 2023 @ 5:21pm 
dell you really popped off with this one i never knew you were steam workshop famous
Vaelune 20 Sep, 2023 @ 2:35pm 
i wish it looked like the vanilla half life 2-esque hud style
Fizzie 25 Aug, 2023 @ 5:21pm 
@Sargasm
I don't think this mod gives a blurred screen effect, even if you run out of stamina.
I've been using this mod for a long time, so you might be experiencing something from another mod.
Mental 25 Aug, 2023 @ 4:06pm 
no matter what I do with the values, even if I dsable everything, the screen stays blurry like I'm tired
findecisive 24 Aug, 2023 @ 2:05am 
just raise sv_oxygen_maxoxygen