-
Active Member
How to add certain SnoID for groundcircles decorators?
I've debugged the on-screen info to find the Blazing Guardian projectile(i think) and it's groundpool. But now i want to add or create a plugin for this. How do i do this?:confused:
Code:
432 skeletonMage_fire_groundPool
5371 skeletonMage_Fire_A Blazing Guardian
5374 skeletonMage_Fire_projectile
attr Projectile_Detonate_Time -1 59221
-
Contributor
PHP Code:
foreach (var actor in Hud.Game.Actors.Where(a => a.SnoActor.Sno == 432))
{
Decorator.Paint(...);
}
greetz gjuz
-
Post Thanks / Like - 1 Thanks
everknown (1 members gave Thanks to gjuz for this useful post)
-
Active Member
Sorry to bump this, finally got motivated to create this using Jack's code:
[C#] BlazingGuardianDecoratorPlugin - Pastebin.com
I tried with what @gjuz have above, but i don't know the Paint(params) yet. perhaps its Decorator.Paint(actor,actor.FloorCoordinate,null);?
So i went to search around until i found Jack's code for BossSkills and took snippets out of it and made my own version for this Blazing Guardian fire pool. Now i need to test it to see if it actually works...
Edit:
First run worked, but circles are black? 255,0,0,0,2 doesn't mean RED 255, G 0, B 0 ?
After i tried to change the values of CreateBrush, i get error message in the exceptions log file:
2017.05.04 04:33:41.555 suspicious plugins behavior in plugin file: 'C:\Users\****\Desktop\TBHD\Plugins\Everknown\BlazingGuardianDecoratorPlugin.cs' : possibly trying to access the disk.
Any idea why?
Last edited by everknown; 05-03-2017 at 09:36 PM.
-
Contributor
255, 0, 0, 0, 2
first number is the alpha value, after this comes R, G, B which in your case is 0, 0, 0 so it's black. try 255, 255, 0, 0, 2 for red.
Wanna customize THUD the easy way? Check out
..:: TCT | TurboHUD Customization Tool ::..
in the TurboHUD Plugin Review Zone
-
Post Thanks / Like - 1 Thanks
everknown (1 members gave Thanks to RealGsus for this useful post)
-
Active Member
Originally Posted by
RealGsus
255, 0, 0, 0, 2
first number is the alpha value, after this comes R, G, B which in your case is 0, 0, 0 so it's black. try 255, 255, 0, 0, 2 for red.
Ah i thought it was the other way as in RGBa instead of aRGB.
And now is the problem with the error " Possibly trying to access the disk"... any reason/solution to this?
Edit:
Went to made another version of it by using the same way i first made the ZeiStone version before editing it.
[C#] FirePoolPlugin.cs - Pastebin.com
Last edited by everknown; 05-04-2017 at 04:57 PM.
-
Contributor
Originally Posted by
everknown
I tried with what @gjuz have above, but i don't know the Paint(params) yet. perhaps its Decorator.Paint(actor,actor.FloorCoordinate,null);?
yes
Originally Posted by
everknown
After i tried to change the values of CreateBrush, i get error message in the exceptions log file:
2017.05.04 04:33:41.555 suspicious plugins behavior in plugin file: 'C:\Users\****\Desktop\TBHD\Plugins\Everknown\BlazingGuardianDecoratorPlugin.cs' : possibly trying to access the disk.
Any idea why?
yes, in your comment
PHP Code:
/*Credits
* Thanks to Jacks' BossSkillsPlugin, i manage to create this using the very same template he created for adding my own Sno into this file.
* Hope you don't mind me using your code, Jack.
*/
Hud responds to "file".
delete this word or use anything else,
greetz gjuz
-
Post Thanks / Like - 1 Thanks
everknown (1 members gave Thanks to gjuz for this useful post)
-
Active Member
Originally Posted by
gjuz
yes
yes, in your comment
PHP Code:
/*Credits
* Thanks to Jacks' BossSkillsPlugin, i manage to create this using the very same template he created for adding my own Sno into this file.
* Hope you don't mind me using your code, Jack.
*/
Hud responds to "file".
delete this word or use anything else,
greetz gjuz
Aha!, thanks. well i made 2 new version of it now. One is by using Jack's Monster Plugin template of SnoMapping and the other one is the one you wrote above.
End result:
Jack's SnoMapping method for multiple Sno: [C#] EnemySkillCirclePlugin.cs - Pastebin.com
Basic method with FirePool only: [C#] FirePoolPlugin.cs - Pastebin.com
Last edited by everknown; 05-04-2017 at 05:03 PM.
Reason: Added new files
-
Contributor
well done.
but you can customize Jack's Original like this:
PHP Code:
Hud.RunOnPlugin<BossSkillsPlugin>(plugin => {
//add ground circle (off-center) to Smoldering Construct Fire Pool (A2)
//432 skeletonMage_fire_groundPool
plugin.SnoMapping.Add(432, new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Radius = 9,
Brush = Hud.Render.CreateBrush(160,255,50,50, 2, DashStyle.Dash)
}
));
});
instead of writing an extra plugin, which has the exact same structure.
greetz gjuz