Modme Forums

sndMusicSystem issue

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: mathfag
I'm trying to make an Easter egg song play via the Music System as a PLAYTYPE_SPECIAL so that the round sounds are suppressed while it plays.
Even though the system recognises the song and suppresses the sounds for the duration of the song, it doesn't play the song. Playtype_round also doen't work

My code:
init:

#define PLAYTYPE_SPECIAL 4
zm_audio::musicState_Create("alwaysrunning", PLAYTYPE_SPECIAL, "always_running" );

on egg completion:
level thread zm_audio::sndMusicSystem_PlayState( "alwaysrunning" );
alias (copied the round sound alias and modified):
mus_always_running_intro,,,mus\_soundtrack\zm_cp\always_running.wav,,,UIN_MOD,,,,,BUS_MUSIC,,,,,,100,100,,,,,,,,2,oldest,,,1,1,,,,,,2d,,,NONLOOPING,,,,,,,,,,,,,,,,,,,,,,,yes,,,,yes,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Reference:
zm/zm_audio - line 1045+
zm/_zm_ai_raps - line 576 (or zm.gsc or dogs.gsc)


ModmeBot:

Reply By: Fil he Modder
oh shit, i was looking for that type of script to suppress the round sounds while the music plays :D