Garry's Mod

Garry's Mod

494 arvostelua
Oxygen and Stamina System (And Flashlight Battery)
3
3
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: Tool
Addon Tags: Realism
Tiedostokoko
Julkaistu
Päivitetty
2.452 MB
11.1.2021 klo 11.32
12.8.2023 klo 12.40
16 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Oxygen and Stamina System (And Flashlight Battery)

5 kokoelmassa, tekijä Rad Poseidon
Oh No Generation 5
237 luomusta
Oh No: Generation 6
254 luomusta
Help Me
317 luomusta
あああああっ!!!
239 luomusta
I've run out of names
290 luomusta
Kuvaus
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
Suositut keskustelut Näytä kaikki (8)
2
20.9. klo 9.31
[Bug] Stamina drains when holding a Space/Jump button in multiplayer
German762
19
20.1.2021 klo 18.41
[Bug] The bars don't display.
CollChuuk
1
12.8.2023 klo 12.43
[Bug] High values broken
wiimeiser
143 kommenttia
OoRmikooO 17.10. klo 21.57 
Just like in HL1 and Episode 2.:steamhappy:
sziplike97 1.10. klo 8.01 
yeah alexmas it doesnt work for me either
incompatible with smooth flashlight :(
Nocny Koczkodan 18.9. klo 10.18 
[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.8. klo 7.14 
doesn't works
LmaoMatsx 20.8. klo 9.56 
Is there a command to make pill packs have no stamina?
average овош 18.8. klo 6.11 
how can i turn it off only to me but another players will still have stamina system?
dinogutt 1.8. klo 8.37 
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.7. klo 13.37 
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.7. klo 19.01 
where is slider