Barotrauma

Barotrauma

Not enough ratings
night and day
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
371.236 KB
20 Sep, 2023 @ 9:25am
1 Change Note ( view )

Subscribe to download
night and day

Description
This mod adds a day and night cycle to Barotrauma (yes underwater a day and night cycle)

There are two cycles to be aware of, a Human day/night cycle which will dim the light on the submarine when it's night time to simulate the day/night of earth for the crew.

The second cycle is tied to the natural rotation of Europa, 3.5x an earth rotation. During the night cycle for the Europan rotation, there will be increased spawns that scale up with difficulty. (Be warned it gets hardcore).

There is a Europan watch that will give you everything you need to know about the time and the potential dangers you may face.

Requirments
Lua

Known Issues
- Not tested on multiplayer (will require additional coding to seperate the clock cycle from the client, so probably won't work in MP)

- There is a pause function for the clock that kicks in when you press esc in single player, If however you Tab out of the application then the pause menu kicks in and the clock can become out of sync with the pause menu state. The solution to solve this is to restart lua, then restart the round.
9 Comments
Title Fight Enjoyer 29 Jan, 2024 @ 10:08am 
will this be mp eventually
shoolgate 23 Dec, 2023 @ 11:56am 
When you cancel a module, your turret lights will be removed. Unable to restore turret lights, game save has been disabled. The only way to restore the lights is to start over, and this module has potential but it makes it too dark can't find the monsters. The turret lights are too dim.
shoolgate 23 Dec, 2023 @ 4:27am 
The ship's searchlights were too dark can't see the map at night
ironic_and_dead  [author] 4 Dec, 2023 @ 3:30am 
@international So the main issue is that, main game loop uses a delta time that continually run on the client, even if you are in the game menu. When I programmed it i wanted to avoid any potential other instances where delta time might run unintentionally(more me be being lazy checking the entire codebase for other instances).

So i created my own tick system that runs client side when the player is actually playing the game.

Basically There is 1 file to check for the current time, that only starts and stops when the game is on a mission/campaign. vs storing all the start/stop times, reading those values and subtracting and adding based on the current delta time to correctly add the game-play time. There is potentially a lot of edge cases to deal with.

For multiplayer I can make the assumption that the delta time would also run even in the lobby, so would need to replicate the system,

Just need time to sit down plan it out and test it, and time is a luxury atm for me.
International Conglomerate 1 Oct, 2023 @ 1:57pm 
@ironic_and_dead
How involved do you think it'd be? Generally i've seen mp handled by using a conditional in the init that'll only trigger if the executer is either a server or a directly singleplayer client.
ironic_and_dead  [author] 27 Sep, 2023 @ 4:11am 
You unfortunately might be waiting a long time for MP support. 3 months +. I am hoping there is another lua developer out there who can take that portion on and get it out there.
JinxMann 26 Sep, 2023 @ 4:32am 
Can't wait for multiplayer
Clownicus 23 Sep, 2023 @ 2:43am 
les go
Personman 22 Sep, 2023 @ 12:45pm 
I didnt know that one of the best barotrauma yts makes mods!