Garry's Mod
327 ψήφοι
Oxygen and Stamina System (And Flashlight Battery)
2
2
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: Tool
Addon Tags: Realism
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
2.452 MB
11 Ιαν 2021, 11:32
12 Αυγ 2023, 12:40
16 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
Oxygen and Stamina System (And Flashlight Battery)

ΣΕ 4 ΣΥΛΛΟΓΕΣ ΑΠΟ Rad Poseidon
Oh No Generation 5
237 αντικείμενα
Oh No: Generation 6
257 αντικείμενα
Help Me
321 αντικείμενα
あああああっ!!!
240 αντικείμενα
ΠΕΡΙΓΡΑΦΗ
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
Δημοφιλείς συζητήσεις ΠΡΟΒΟΛΗ ΟΛΩΝ (7)
19
20 Ιαν 2021, 18:41
[Bug] The bars don't display.
CollChuuk
1
12 Αυγ 2023, 12:43
[Bug] High values broken
wiimeiser
1
17 Αυγ, 14:03
[Suggestion] Faster stamina usage based on remaining health
Khanical
113 σχόλια
Rad Poseidon  [Δημιουργός] 17 Σεπ, 10:10 
All of the gameplay values are server-sided, hence why they are prefixed with sv_
Domi Gamer 16 Σεπ, 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 Απρ, 10:41 
fun fact: if you set the width and height to 0 you just got the %
AzureAsher4544 13 Απρ, 10:24 
the position
AzureAsher4544 13 Απρ, 10:22 
how do i reset the things
Rad Poseidon  [Δημιουργός] 25 Φεβ, 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 Φεβ, 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 Ιαν, 4:19 
The bars are all stuck empty for me despite the bars showing 100. any ideas why?
Coffe is lazy 19 Ιαν, 9:01 
realistic!
wiimeiser 28 Δεκ 2023, 18:47 
Might be a conflict with something Jmod added. I know it added nutrition and scrounging recently.