Free Garry's Mod Oxygen addon
Well, in my first post I will be releasing a free, very small and simple script that will reflect oxygen under water.
I’ve noticed a lot of players basing or hiding printers under water, and afking near them. Since it was a small problem, I decided to make a very small script that reflects oxygen under water. After a configurable amount of time (Default: 20sec) the player starts to lose health (4-6 hp) untill they eventually die.
The script should be usable on every gamemode, but the Workshop content has been made to be a DarkRP Module and requires DarkRP Modifications to use!
Installation
- Subscribe to this workshop addon
- Add the workshop to your own collection
Workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=2446467273
GitHub Gist: https://gist.github.com/naviisml/19c57ed0b4bfae31b1c68401a8b57176
I like the idea but you haven't explained at all what oxygen is and what gameplay mechanics it provides... I have no idea what the addon does.
'This addon allows you to add oxygen to DarkRP.' ain't enough chief.
Stupid of me, I’ve updated the post with (I think) enough information.
I decided to mess with it a little, so instead of it kind of running every tick throughout the whole addon or at least half, it kind of just stops running in the beginning so it's "less resource intensive". Also removed some redundancies in the process.
I only messed with it for not too long so I'm sure there's a better way, but this is what I got.
Also - this hasn't been said - but this is untested. This may not even work.