-
Active Member
CooldownSoundPlayerPlugin
I believe in the plugin there is an unwanted feature:
I hear the wav file not only when the cooldown is done, but also when you press the skill.
-
Contributor
I fixed it with following code in CooldownSoundPlayerPlugin.cs:
Added line:
if (!expired) return;
Code:
public void OnCooldown(IPlayerSkill playerSkill, bool expired)
{
if (!expired) return;
if (playerSkill.Player != Hud.Game.Me) return;
if (EnableOnlyWhenIngameSoundIsEnabled && !Hud.Game.IsIngameSoundEnabled) return;
CoolDownRule rule = null;
if (!CoolDownRules.TryGetValue(playerSkill.SnoPower, out rule)) return;
if (rule == null) return;
ThreadPool.QueueUserWorkItem(state =>
{
try
{
rule.SoundPlayer.PlaySync();
}
catch (Exception)
{
}
});
}
-
Post Thanks / Like - 1 Thanks
bm206 (1 members gave Thanks to JarJarD3 for this useful post)
-
Active Member