Garry's Mod
338 evaluări
Oxygen and Stamina System (And Flashlight Battery)
2
2
   
Premiază
Adaugă la preferate
Preferat
Elimină din preferate
Content Type: Addon
Addon Type: Tool
Addon Tags: Realism
Dimensiunea fișierului
Postat
Actualizat
2.452 MB
11 ian. 2021 la 11:32
12 aug. 2023 la 12:40
16 jurnale de actualizare ( vizionare )

Abonează-te pentru a descărca
Oxygen and Stamina System (And Flashlight Battery)

În 4 colecții create de Rad Poseidon
Oh No Generation 5
237 obiecte
Oh No: Generation 6
254 obiecte
Help Me
319 obiecte
あああああっ!!!
240 obiecte
Descriere
Attention
Before you make a post about the new update breaking things, please make sure you've changed the addon settings first. Your old settings will not work!


I apologize for the horrendous video quality before hand, OBS doesn't like my Garry's Mod

If you're anything like me, you probably don't like the existing Suit Power system. Drowning because you left your flashlight on isn't exactly realistic, but at the same time neither is breathing forever.

The Solution? An addon that adds Oxygen, Sprint Stamina and the Flashlight Battery as separate values independent of one another. This addon.

Features
  • Three Separate Modules for Oxygen, Stamina and Flashlight Battery that can be turned on independently of on another
  • Running Out of Stamina prevents the player from sprinting (And Jumping too if you want)
  • Running Out of Oxygen causes the player to drown at a configurable rate
  • Running out of Flashlight Battery uhh... Turns your flashlight off
  • Configurable Settings for How Fast Each module runs out and regenerates
  • Configurable HUD Pos and Size for each meter

Config
Variable
What It Does
sv_oxygen_maxoxygen
How Much Oxygen The Player Has
sv_oxygen_recoveramount
The Rate at Which to Recover Oxygen
sv_oxygen_damage_timer
How often to damage a drowning player
sv_oxygen_damage_amount
How much to damage a drowning player
sv_stamina_recoveramount
The rate at which to recover stamina
sv_stamina_recovertime
How long after the player stops sprinting/jumping to start recovering stamina
sv_stamina_sprint_at
How much stamina the player needs to sprint, this will not come in to effect if they are already sprinting
sv_stamina_jumpcost
How much stamina jumping uses
sv_stamina_jumplimited
Whether or not you need stamina to jump
sv_stamina_swimuses
If and how much stamina swimming uses
sv_flashlight_maxbattery
How Much Battery the flashlight has
All Config options are under the tool menu at
Oxygen & Stamina => Server

If you have any suggestions, or run into any bugs, please start a discussion prefixed with [Bug] or [Suggestion] respectively

Planned Features
  • Improve the manipulation hooks
  • Add more configuration to the low stamina and oxygen effects
  • Add configurable panting sounds for running and coming out of the water

A special thanks to the members of the Garry's Mod Discord for helping me debug some things my moronic self couldn't have alone
Discuții populare Vezi toate (7)
19
20 ian. 2021 la 18:41
[Bug] The bars don't display.
CollChuuk
1
12 aug. 2023 la 12:43
[Bug] High values broken
wiimeiser
1
17 aug. la 14:03
[Suggestion] Faster stamina usage based on remaining health
Khanical
113 comentarii
Rad Poseidon  [autor] 17 sept. la 10:10 
All of the gameplay values are server-sided, hence why they are prefixed with sv_
Domi Gamer 16 sept. la 10:07 
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. la 10:41 
fun fact: if you set the width and height to 0 you just got the %
AzureAsher4544 13 apr. la 10:24 
the position
AzureAsher4544 13 apr. la 10:22 
how do i reset the things
Rad Poseidon  [autor] 25 febr. la 12:04 
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 febr. la 11:40 
I recommend adding in batteries to restore the flashlight's power by half in case the flashlight never recovers over time.
Olly 28 ian. la 4:19 
The bars are all stuck empty for me despite the bars showing 100. any ideas why?
Coffe 19 ian. la 9:01 
realistic!
wiimeiser 28 dec. 2023 la 18:47 
Might be a conflict with something Jmod added. I know it added nutrition and scrounging recently.