Garry's Mod

Garry's Mod

478 个评价
Oxygen and Stamina System (And Flashlight Battery)
3
3
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 写实
文件大小
发表于
更新日期
2.452 MB
2021 年 1 月 11 日 上午 11:32
2023 年 8 月 12 日 下午 12:40
16 项改动说明 ( 查看 )

订阅以下载
Oxygen and Stamina System (And Flashlight Battery)

在 Rad Poseidon 的 5 个合集中
Oh No Generation 5
237 件物品
Oh No: Generation 6
254 件物品
Help Me
317 件物品
あああああっ!!!
239 件物品
I've run out of names
290 件物品
描述
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
热门讨论 查看全部(8)
2
9 月 20 日 上午 9:31
[Bug] Stamina drains when holding a Space/Jump button in multiplayer
German762
19
2021 年 1 月 20 日 下午 6:41
[Bug] The bars don't display.
CollChuuk
1
2023 年 8 月 12 日 下午 12:43
[Bug] High values broken
wiimeiser
143 条留言
OoRmikooO 10 月 17 日 下午 9:57 
Just like in HL1 and Episode 2.:steamhappy:
sziplike97 10 月 1 日 上午 8:01 
yeah alexmas it doesnt work for me either
✩・math.apiπ̲̲ ̡ ҉ ლ 9 月 24 日 上午 9:36 
incompatible with smooth flashlight :(
Nocny Koczkodan 9 月 18 日 上午 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 8 月 27 日 上午 7:14 
doesn't works
LmaoMatsx 8 月 20 日 上午 9:56 
Is there a command to make pill packs have no stamina?
average овош 8 月 18 日 上午 6:11 
how can i turn it off only to me but another players will still have stamina system?
dinogutt 8 月 1 日 上午 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 7 月 28 日 下午 1: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 7 月 27 日 下午 7:01 
where is slider