Barotrauma

Barotrauma

44 ratings
Better Charging (WITHOUT DETERIORATION CHANGES)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
307.823 KB
15 Oct, 2024 @ 2:52pm
14 Nov, 2024 @ 10:44am
6 Change Notes ( view )

Subscribe to download
Better Charging (WITHOUT DETERIORATION CHANGES)

In 1 collection by heheboi
Modded Server Preset
72 items
Description
WARNING NOTE
Original Better Charging currently features 1 status effect that makes all devices nearby detoriate extremely quick, probably as revenge after Moon's drama in undertow. This version removes this and will be maintained instead of original mod creator.


Better Charging is a mod that makes battery cell and oxygen tank charging better!

The aim of this mod was to make battery cells and oxygen tank charging more immersive, realistic and more interesting game play wise.

Better Battery cell charging!
No longer are battery cells free to charge, they now all have an energy cost! Battery cells will make the charging dock draw more power and draw charge from a battery if charged there!

In addition battery chargers now have a blinking red status led when charging that switches to solid green when done! Also a green power led on the left to tell you when the charger has power. Each battery cell will take 100KW while recharging and take 5 minutes.

Charging battery cells from batteries now shows the cells on the battery cell slots and draws charge from the battery. They will draw 500kW/minutes to charge total and take 2 minutes. Both charging methods take equal amounts of power overall.

Better Oxygen Tank charging!
Charging oxygen tanks now consumes hull oxygen and 100KW of power to refill each oxygen tank. Charging oxygen tanks takes 5 minutes and draws 2x the amount of oxygen that a person would use from the hull. While 5 minutes may sound slow, this still means one oxygen tank holder can provide enough oxygen for 6 crew!

All power consumption drops when charging is finished and increases if you charge more then one cell or oxygen tank at once.
59 Comments
Roadent 26 Jun @ 3:32pm 
Alright, I checked out the implementation of the mod.

You're right - there is no way to apply the effects to the Diving Suit Locker without overriding the Diving Suits themselves. :(

Anyways, I found some outdated code that I'd suggest updating:

-Update the <StatusEffect type="OnFailure">. The Barotrauma devs have added an "electricshock" Affliction, as well as a 50% probability of stun. This applies to Batteries, Charging Docks, and both Oxygen Tank Shelves (small one and legacy one).

-For both oxygentankshelf and oxygentankshelf2, the Barotrauma devs have added a ItemsUseInventoryPlacement="true" attribute to the <ItemContainer> element. This makes the layout of the tanks in the Oxygen Tank Shelf be drawn according to their position in the inventory. Now that it's disabled, the tanks are always drawn, at least on oxygentankshelf2, left-to-right, which looks less pretty.
heheboi  [author] 12 Jun @ 7:21am 
It is impossible to do with current system without lua or overriding suits and oxygen tanks, which I dont wanna do for compability reasons.
Roadent 12 Jun @ 6:05am 
What I meant by "pull electricity" is:

In vanilla, Oxygen Tank Shelves pull 30 kW of energy, and Diving Suit Lockers pull 10 kW of energy.

In this mod, Oxygen Tank Shelves pull 10 kW energy when idle, and then +100 kW of energy per each oxygen tank it's charging. So, 110 kW for 1 tank charging; 210 kW for 2 tanks; 310 kW for 3 tanks.

However, Diving Suit Lockers do not have that behavior. They always pull 10 kW, regardless of whether the Oxygen Tank within the Diving Suit is full or not. One would expect the Diving Suit Locker to also pull 110 kW if it's charging the Oxygen Tank within the Diving Suit.
heheboi  [author] 12 Jun @ 4:45am 
Nah, I dont
Ozen (Лиса) 11 Jun @ 11:25pm 
Author, maybe you know of a mod kinda reverting process. I mean to charge oxygen tanks at the station and then release oxygen to hull when powered. Like it's done in reality. Thank you in advance
heheboi  [author] 11 Jun @ 8:09am 
they already pull electricity in vanilla.
Roadent 11 Jun @ 6:11am 
Diving Suit lockers do not pull electricity and lower hull oxygen when you insert a diving suit with a not-full oxygen tank inside the same way that Oxygen Tank Shelves do.

Would it be possible to program in that functionality as well?
Draconis🐊 4 Jun @ 12:12am 
Honestly this should be Pull Requested because it would make upgrading the O2 generator actually a big deal.
heheboi  [author] 30 Apr @ 3:50am 
I dont understand why it shouldnt.
cursedsanti 29 Apr @ 6:29pm 
still works?