You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Fixed copyof MOs that change the PresetName not having scripts loaded onto them.
Added sanity checking and percentage handling (i.e. >1 - 100) to volumeOverrideIfNotMuted. Also fixed some music related saftey checks I'd screwed up the boolean logic for.
/// Override SetPresetName so it also resets script paths and script preset name. Note that this'll screw up lua that calls SetPresetName but that probably shouldn't be lua accessible anyway.
310
+
/// Override SetPresetName so it also resets script preset name and then reloads scripts to safely allow for multiple scripts.
311
311
/// </summary>
312
312
/// <param name="newName">A string reference with the instance name of this Entity.</param>
g_ConsoleMan.PrintString("ERROR: Failed to set volume override for music file: " + std::string(filePath) + ". This means it will stay at " + std::to_string(m_MusicVolume) + ": " + std::string(FMOD_ErrorString(result)));
@@ -477,7 +478,6 @@ namespace RTE {
477
478
}
478
479
}
479
480
480
-
481
481
// Now that the sound is playing we can register an event with the SoundContainer's channels, which can be used by clients to identify the sound being played.
0 commit comments