Exemplo n.º 1
0
            public static bool Prefix(string defId, string eventId, AkGameObj audioObject, AkCallbackManager.EventCallback audioEventCallback, ref bool __result)
            {
                // play everything except contract_lanceconfirm because you can't launch a mission without it
                if (modSettings.EnableBarks || defId != "audioeventdef_simgame_vo_barks")
                {
                    return(true);
                }
                if (eventId == "contract_lanceconfirm" || eventId == "skirmish_lanceconfirm")
                {
                    __result = AudioEventManager.PlayAudioEvent(AudioEventManager.GetAudioEvent(defId, eventId), audioObject, audioEventCallback);
                }

                return(false);
            }