Underwater Map Music

[Open Assets] Underwater Map Music v1

This content may be freely modified and/or maintained by anyone.

Rem

Goblin
Retired Staff
This is a simple Lua script that allows you to add underwater music tracks for your levels.

Usage
  1. Add the script to your wad/pk3.
  2. Get/create a variation of your level's song with the same length.
  3. Add a line in your Level Header, defining "Lua.WaterMusic = " with whatever your underwater song's name is.

Extra Bits
  • Keep your main & water songs under around 2MB in filesize each, big filesizes tend to cause the game to hang when switching between them.
  • There's also an example setup attached, which affects GFZ1 if you want to see how it works.
 

Attachments

  • L_UnderwaterMusic.lua
    539 bytes · Views: 514
  • UnderwaterExample.pk3
    1.9 MB · Views: 461
  • WaterPeek.png
    WaterPeek.png
    5.2 KB · Views: 300
This is nice. Although I couldn't get custom music working, I could see someone recreating Dire Dire Docks with this script.
 
Now we just need harp remixes of every track in the game to use them with this script
 
I noticed that freezes occur even if the music is less than 2MB. this happens if the player doesn't enter the water for a long time (about 30 seconds) and then there is a slight lag when entering the water
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top