|
@@ -13,17 +13,13 @@ namespace AudioMgr
|
|
|
ClipManager myClipManager, myClipManager2;
|
|
ClipManager myClipManager, myClipManager2;
|
|
|
Shot myPlayerShot;
|
|
Shot myPlayerShot;
|
|
|
string rootPath = Application.dataPath + "/../Mods/";
|
|
string rootPath = Application.dataPath + "/../Mods/";
|
|
|
- //AssetBundle bundle;
|
|
|
|
|
|
|
+
|
|
|
public static bool _debug = false;
|
|
public static bool _debug = false;
|
|
|
|
|
|
|
|
public override void OnInitializeMelon()
|
|
public override void OnInitializeMelon()
|
|
|
{
|
|
{
|
|
|
- ClassInjector.RegisterTypeInIl2Cpp<Shot>();
|
|
|
|
|
- ClassInjector.RegisterTypeInIl2Cpp<Queue>();
|
|
|
|
|
- ClassInjector.RegisterTypeInIl2Cpp<Stream>();
|
|
|
|
|
RadioMaster.Initialize();
|
|
RadioMaster.Initialize();
|
|
|
Settings.OnLoad();
|
|
Settings.OnLoad();
|
|
|
- //bundle = AssetBundle.LoadFromFile(Application.dataPath + "/../Mods/sillysounds.unity3d");
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public override void OnSceneWasLoaded(int buildIndex, string sceneName)
|
|
public override void OnSceneWasLoaded(int buildIndex, string sceneName)
|
|
@@ -31,32 +27,11 @@ namespace AudioMgr
|
|
|
if (sceneName.Contains("Boot"))
|
|
if (sceneName.Contains("Boot"))
|
|
|
{
|
|
{
|
|
|
AudioMaster.CreateMasterParent();
|
|
AudioMaster.CreateMasterParent();
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- //myClipManager = new ClipManager();
|
|
|
|
|
- //myClipManager2 = new ClipManager();
|
|
|
|
|
-
|
|
|
|
|
- //myClipManager.LoadClipFromFile("start", "start.mp3", ClipManager.LoadType.Decompressed);
|
|
|
|
|
- //myClipManager.LoadClipFromFile("shutdown", "shutdown.mp3", ClipManager.LoadType.Decompressed);
|
|
|
|
|
- //myClipManager.LoadClipFromFile("waterfall", "waterfall.ogg", ClipManager.LoadType.Decompressed);
|
|
|
|
|
-
|
|
|
|
|
- //myClipManager2.LoadAllClipsFromBundle(bundle);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (sceneName.Contains("Menu"))
|
|
if (sceneName.Contains("Menu"))
|
|
|
{
|
|
{
|
|
|
initialized = true;
|
|
initialized = true;
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- //myPlayerShot = AudioMaster.CreatePlayerShot(AudioMaster.SourceType.SFX);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- //PatchMaster.AddReplacePatch("PLAY_CROWCAWSDISTANT", myClipManager, "start", AudioMaster.SourceType.SFX);
|
|
|
|
|
- //PatchMaster.AddReplacePatch("PLAY_SNDMECHDOORWOODCLOSE1", myClipManager, "shutdown", AudioMaster.SourceType.SFX);
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -70,20 +45,6 @@ namespace AudioMgr
|
|
|
|
|
|
|
|
public override void OnUpdate()
|
|
public override void OnUpdate()
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
- if (InputManager.GetKeyDown(InputManager.m_CurrentContext, KeyCode.Keypad0))
|
|
|
|
|
- {
|
|
|
|
|
- // myPlayerShot.PlayOneshot(myClipManager.GetClip("waterfall"));
|
|
|
|
|
- PatchMaster.AddSkipPatch("PLAY_RANDOMBUILDINGCREAKS1");
|
|
|
|
|
- PatchMaster.AddParameterPatch("WINDGUSTINTENSITY", 0f, PatchMaster.ParameterType.Limitter);
|
|
|
|
|
- PatchMaster.AddParameterPatch("WINDACTUALSPEED", 0f, PatchMaster.ParameterType.Limitter);
|
|
|
|
|
- PatchMaster.AddParameterPatch("AMBIENTVOLUME", 0f, PatchMaster.ParameterType.Limitter);
|
|
|
|
|
- PatchMaster.AddParameterPatch("GLOBALVOLUME", 0f, PatchMaster.ParameterType.Limitter);
|
|
|
|
|
- }
|
|
|
|
|
- if (InputManager.GetKeyDown(InputManager.m_CurrentContext, KeyCode.L))
|
|
|
|
|
- {
|
|
|
|
|
- //myPlayerShot.PlayOneshot(myClipManager2.GetClip("woo"));
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|