Skip to content

[added] Ambient music when being near or inside water#2453

Open
mugg91 wants to merge 2 commits intotranshumandesign:masterfrom
mugg91:mugg91-water-ambient
Open

[added] Ambient music when being near or inside water#2453
mugg91 wants to merge 2 commits intotranshumandesign:masterfrom
mugg91:mugg91-water-ambient

Conversation

@mugg91
Copy link
Contributor

@mugg91 mugg91 commented Nov 12, 2025

Description

This adds ambient music and slightly improves the music script files.

  • Don't determine booleans beforehand, determine them on the go instead.
  • Use the same logic when determining if we are in a cave or up in the sky across CTFMusic, WARMusic and ChallengeMusic
  • Night ambient added to CTFMusic
  • "Near water" ambient added to CTFMusic, WARMusic and ChallengeMusic
  • Underwater ambient added to CTFMusic, WARMusic and ChallengeMusic
  • Use map tilesize rather than hard-set 8 when checking booleans

ChallengeMusic checks if it should fade to an ambient, but only in warmup for some reason. I didn't touch this script further but might need looking into.

TDMMusic is not touched, doesn't support ambient music (yet).

"Near water" ambient taken from https://pixabay.com/sound-effects/flowing-water-at-buttsbury-wash-59302/

Water, River, Field-recording sound effect. Free for use.

Underwater ambient taken from https://pixabay.com/sound-effects/underwater-ambiencewav-14428/

Ambience, Underwater, Constant sound effect. Free for use.

Tested in offline.

@Vam-Jam Vam-Jam added the kind: Feature A pitch for a new feature or mechanic label Nov 16, 2025
@mugg91
Copy link
Contributor Author

mugg91 commented Nov 22, 2025

Video demonstrating the ambient music.

WaterAmbient.mp4

Please be aware of bug #2458

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: Feature A pitch for a new feature or mechanic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants