Your own sound for big hits
Replace the deep rumble under big missile hits, or play your own sound when a superweapon lands.
Replace a game sound
Section titled “Replace a game sound”A file in audio/ with the same name as one of the game’s sounds replaces it. boomDeep is the rumble under missile hits from tier 14 up, Silo hits and wipes.
deep_boom/ mod.json audio/boomDeep.ogg{ "id": "deep_boom", "name": "Deep Boom", "version": "1.0.0", "api_version": 1, "author": "you", "description": "A different rumble when a nuke lands.", "license": "CC0-1.0"}No script needed. If two mods replace the same sound, the later one wins and the MODS page shows the conflict.
Play a sound on an event
Section titled “Play a sound on an event”-- Sounds only play in the client VM (on the server mod.audio.play does-- nothing), so the server skips the handler altogether.-- audio/thump.ogg is found by its name.if not mod.is_client then returnend
mod.on("weapon_landed", function(e) if e.weapon == "ion" then mod.audio.play("thump", { volume = 0.9, pitch = 0.7 }) -- the Ion: lower and louder else mod.audio.play("thump", { volume = 0.6 }) endend)mod.audio.play finds audio/thump.ogg by its name. Sounds only play in the client VM; on the server the call does nothing. Options: audio.
Use .ogg or .wav. Both sample sounds here are CC0; say where yours come from in license.