Skip to content

soundmasks

Charles Hydronium edited this page Nov 9, 2024 · 1 revision

Sound Masks

this library masks some taunts depending on the state of the game. Currently, it's masking YesSir and Hmm before cutscenes, as well as Missed and Coward when the Enemy is gone, but something still needs to be done.

To use anything from this library, you need to add the following to the script:

HedgewarsScriptLoad("/Missions/Campaign/A_Collection_of_Unimaginative_Dreams/Scripts/soundmasks.lua")

SoundMasks(num)

this function should only be placed on top of onNewTurn() with num set to 0 and onEndTurn() with num set to 1.

function onNewTurn() SoundMasks(0) end
function onEndTurn() SoundMasks(1) end
Clone this wiki locally