This week I started getting deeper into the weather system in Total Chaos. Sky-dome transitions are now fully functional, and almost seamless!
Some of the sky-dome textures I am currently using are placeholders and will be replaced in the near future with something a bit moodier.
The trickier task this week was making the sound effects on the rain change depending on if the player is indoors or outdoors.
We got a placeholder rain sound loop and sliced it up into 2 second clips that loop over the duration the rain is active by selecting a random clip, we then check the players current ceiling texture to detect if the player is indoors or outdoors. If its not set to F_SKY, which is the default skybox texture in the Doom engine, then we tell our sound switcher clip to fade the audio to an indoor variant of the rain loops.
It is a bit hacky, in a traditional engine you would simply be able to fade between two sound loops, but this is the kind of stuff we have to do daily to get the results we’re after.
More to come, stay tuned for even more weather shenanigans!