-
Member
Self Cooldown indicator
Greetings,
I would like to have, in a seperate place from the usual bottom (let's say left of the toon), an indication of cooldown of skills f.e. land of the dead
There is a "PartyCooldown" plugins but it shows the cooldown for everyone in party, I want only mine and to be something like gjuz proposed here http://www.ownedcore.com/forums/diab...ml#post3780443 (Simulacrum & Land of Dead activation tracking) but that is only the indication of the duration but not the cooldown indication
Last edited by cherouvim13; 11-03-2017 at 03:19 PM.
-
Member
-
Contributor
I created this plugin quickly to show current players skills.
Got inspiration from PartyCooldownsPlugin.
The code is in pastebin.
Configure like this (similar to CooldownSoundPlayerPlugin) in your own ICustomizer implementation (e.g. PluginEnablerOrDisablerPlugin):
Code:
Hud.RunOnPlugin<JarJar.SelfCooldownPlugin>(plugin =>
{
const string flashySound = "notification_1.wav";
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Vengeance, flashySound);
plugin.AddRule(Hud.Sno.SnoPowers.DemonHunter_Companion);
plugin.AddRule(Hud.Sno.SnoPowers.Barbarian_WrathOfTheBerserker);
plugin.AddRule(Hud.Sno.SnoPowers.Barbarian_CallOfTheAncients);
plugin.AddRule(Hud.Sno.SnoPowers.Wizard_FrostNova);
plugin.AddRule(Hud.Sno.SnoPowers.Wizard_Teleport);
plugin.AddRule(Hud.Sno.SnoPowers.Crusader_Condemn);
plugin.AddRule(Hud.Sno.SnoPowers.Crusader_LawsOfValor);
plugin.AddRule(Hud.Sno.SnoPowers.Crusader_IronSkin);
plugin.AddRule(Hud.Sno.SnoPowers.Crusader_AkaratsChampion);
});
Feedback appreciated.
The problem is how to differentiate between different skill states:
- Skill is ready to be used.
- Skill is active and doing something.
- Skill is on cooldown and nothing can be done.
I added sound indicator to alter "default behavior" so that instead of showing remaining cooldown time it plays a sound when skill is de-activated (but still on cooldown) and then starts to flash skill icon.
Did not test much changing skill etc. as this is very quick stuff to test...
-
Contributor
Updated and improved code: pastebin v2.
Now it should work by default "as expected" and did some refactoring to simply code as I learned better ways to do things.
As my DH Multishot build lacks proper CDR I notify myself with a sound when Vengeance goes of to fire Companion if possible.
If skill buff uptime and skill cooldown times are almost the same then separate sound is not needed.
-
Member
(32 bit)\plugins\JarJar\selfcooldownplugin_v2.cs(44,21) : error CS1501:
I get this
-
Contributor
Originally Posted by
Magu
(32 bit)\plugins\JarJar\selfcooldownplugin_v2.cs(44,21) : error CS1501:
I get this
My bad, I use extension method to make Hud.Debug() easier to use (that is defined in an other file).
The line 44 should read:
Hud.Debug(string.Format("Exception {0}", x));
or you can comment it out.
-
Post Thanks / Like - 1 Thanks
Magu (1 members gave Thanks to JarJarD3 for this useful post)