Garry's Mod

Garry's Mod

338 oy
Oxygen and Stamina System (And Flashlight Battery)
2
2
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
İçerik Türü: Eklenti
Eklenti Türü: Alet
Eklenti Etiketleri: Gerçekçilik
Dosya Boyutu
Gönderilme
Güncellenme
2.452 MB
11 Oca 2021 @ 11:32
12 Ağu 2023 @ 12:40
16 Değişiklik Notu ( görüntüle )

İndirmek için abone ol
Oxygen and Stamina System (And Flashlight Battery)

Rad Poseidon tarafından 4 koleksiyonda
Oh No Generation 5
237 öğe
Oh No: Generation 6
254 öğe
Help Me
319 öğe
あああああっ!!!
240 öğe
Açıklama
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
Popüler Tartışmalar Tümünü Görüntüle (7)
19
20 Oca 2021 @ 18:41
[Bug] The bars don't display.
CollChuuk
1
12 Ağu 2023 @ 12:43
[Bug] High values broken
wiimeiser
1
17 Ağu @ 14:03
[Suggestion] Faster stamina usage based on remaining health
Khanical
113 Yorum
Rad Poseidon  [yaratıcı] 17 Eyl @ 10:10 
All of the gameplay values are server-sided, hence why they are prefixed with sv_
Domi Gamer 16 Eyl @ 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 Nis @ 10:41 
fun fact: if you set the width and height to 0 you just got the %
AzureAsher4544 13 Nis @ 10:24 
the position
AzureAsher4544 13 Nis @ 10:22 
how do i reset the things
Rad Poseidon  [yaratıcı] 25 Şub @ 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 Şub @ 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 Oca @ 4:19 
The bars are all stuck empty for me despite the bars showing 100. any ideas why?
Coffe 19 Oca @ 9:01 
realistic!
wiimeiser 28 Ara 2023 @ 18:47 
Might be a conflict with something Jmod added. I know it added nutrition and scrounging recently.