[INTERNATIONAL] [Zy] OculusColor menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    thetest1's Avatar Active Member
    Reputation
    26
    Join Date
    Feb 2018
    Posts
    24
    Thanks G/R
    5/24
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [INTERNATIONAL] [Zy] OculusColor

    Supported TurboHUD version: 9.0
    Changes the color of the oculus circle depending on the wiz:
    Blue is closest to the wiz.
    Red when the wiz is inside.

    This was made primarily for zmonks so the wiz and monk go to the same oculus.

    Download: [C#] OculusColor - github.com
    Place in ...\th\plugins\Zy

    Known limitations:
    Sometimes the Red color is not accurate as its based on distance rather than the oculus buff, because the buff takes some time to get active.
    Last edited by thetest1; 03-23-2019 at 01:14 AM.

    [INTERNATIONAL] [Zy] OculusColor
  2. Thanks kjh27, RNN, (Sarge), BeeAntOS (4 members gave Thanks to thetest1 for this useful post)
  3. #2
    Noobz's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    143
    Thanks G/R
    8/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could this be adapted for all classes? Maybe a list to mark each class with True or False to see it?

    Noobz

  4. #3
    M1SHAKE's Avatar Member
    Reputation
    7
    Join Date
    Jul 2018
    Posts
    94
    Thanks G/R
    5/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Waiting for a update who can work for all classes, great ideia Noobz!1

  5. #4
    iThinkiWin's Avatar Active Member
    Reputation
    28
    Join Date
    Oct 2018
    Posts
    104
    Thanks G/R
    25/25
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its purposely made just to mark the wiz and closest one so zmonk knows to sanc at the same one the wiz notices, dont really need it for all classes as this is just for meta partybuff can show occy on all classes already if ya just want that

    does need a small edit though, Num++; inside the foreach and near end
    Code:
               bool WizardIngame = false;
                var WNum = 0;
                foreach (var player in Hud.Game.Players)//others
                {
                    if (player.HeroClassDefinition.HeroClass == HeroClass.Wizard)
                    {
                        WizPosition = player.FloorCoordinate;
                        WizardIngame = true;
                        WNum++;
                    }
                }
    if (WizardIngame) needs to be if (WizardIngame && WNum == 1)
    Last edited by iThinkiWin; 03-18-2019 at 01:44 PM.

  6. Thanks thetest1 (1 members gave Thanks to iThinkiWin for this useful post)
  7. #5
    RNN's Avatar Legendary
    Reputation
    810
    Join Date
    Sep 2018
    Posts
    1,051
    Thanks G/R
    103/773
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    I really like the idea of ​​coloring the circle of the oculus. I imagine for example a plugin that could color the circle of different colors (DashStyle.Dash? ) according to the number of players that use it, and also have some indicator of which specific player has the bufo, for example putting a mark in the cardinal points of the circle in accordance to the player's index.

  8. #6
    iThinkiWin's Avatar Active Member
    Reputation
    28
    Join Date
    Oct 2018
    Posts
    104
    Thanks G/R
    25/25
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [C#] OculusColor - Pastebin.com

    changed colors to dim-gray for furthest purple for closest(shows distance until you step in), green when inside and if receiving mantra buff whilst inside circle fills.

  9. Thanks FoxPox, BeeAntOS (2 members gave Thanks to iThinkiWin for this useful post)
  10. #7
    s4000's Avatar Contributor
    Reputation
    285
    Join Date
    Oct 2018
    Posts
    489
    Thanks G/R
    18/272
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    to disable the default plugin, you should modify you code as
    Code:
    public class OculusColor : BasePlugin, IInGameWorldPainter, ICustomizer
    and add
    Code:
    public void Customize() {
    	Hud.TogglePlugin<OculusPlugin>(false);
    }

  11. Thanks thetest1 (1 members gave Thanks to s4000 for this useful post)
  12. #8
    thetest1's Avatar Active Member
    Reputation
    26
    Join Date
    Feb 2018
    Posts
    24
    Thanks G/R
    5/24
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Added the suggestions of iThinkiWin and s4000 (ty <3):
    Now only works with 1 wiz ingame and now properly disables the default OculusPlugin.

    This means you no longer have to disable OculusPlugin by yourself (in PluginEnablerOrDisablerPlugin).

  13. #9
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it possible to show the effect of each oculus circle?
    i.e. If we have 2 people equipping oculus rings, one with 75% and 85%, is it possible to show which circle corresponds to 75% one?

  14. #10
    Noobz's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    143
    Thanks G/R
    8/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's a great question, but if you have one guy with a 75% ring, you need to find a new support

    Noobz

  15. #11
    MLPFUN's Avatar Member
    Reputation
    4
    Join Date
    Aug 2017
    Posts
    10
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [Zy], thank you sooo much for this awesome plugin!

    If anybody is interested I rewrote a few lines and now it does the following:

    If you are standing in the Oculus, the border will turn into a dashed style (class doesn't matter). This way it's is easy to tell whether you are in one or more oculus rings.

    ocu1.jpg
    ocu2.jpg

    Code:
    using Turbo.Plugins.Default;
    using System.Linq;
    
    namespace Turbo.Plugins.User
    {
        public class OculusColor : BasePlugin, IInGameWorldPainter, ICustomizer
        {
            public WorldDecoratorCollection DecoratorOutside { get; set; }
            public WorldDecoratorCollection DecoratorInside { get; set; }
            public OculusColor()
            {
                Enabled = true;
            }
    
            public override void Load(IController hud)
            {
                base.Load(hud);
    
                DecoratorOutside = new WorldDecoratorCollection(
                    new GroundCircleDecorator(Hud)
                    {
                        Brush = Hud.Render.CreateBrush(255, 128, 255, 0, -2),
                        Radius = 10.0f,
                    },
                    new GroundLabelDecorator(Hud)
                    {
                        CountDownFrom = 7,
                        TextFont = Hud.Render.CreateFont("tahoma", 11, 255, 96, 255, 96, true, false, 128, 0, 0, 0, true),
                    },
                    new GroundTimerDecorator(Hud)
                    {
                        CountDownFrom = 7,
                        BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
                        BackgroundBrushFill = Hud.Render.CreateBrush(200, 0, 192, 0, 0),
                        Radius = 30,
                    },
    		new MapShapeDecorator(Hud)
    		{
    			Brush = Hud.Render.CreateBrush(255, 128, 255, 0, 2),
    			Radius = 10.0f,
    			ShapePainter = new CircleShapePainter(Hud),
    		}
                    );
                DecoratorInside = new WorldDecoratorCollection(
                    new GroundCircleDecorator(Hud)
                    {
    		    Brush = Hud.Render.CreateBrush(255, 128, 255, 0, -2, SharpDX.Direct2D1.DashStyle.Dash),
                        Radius = 10.0f,
                    },
                    new GroundLabelDecorator(Hud)
                    {
                        CountDownFrom = 7,
                        TextFont = Hud.Render.CreateFont("tahoma", 11, 255, 96, 255, 96, true, false, 128, 0, 0, 0, true),
                    },
                    new GroundTimerDecorator(Hud)
                    {
                        CountDownFrom = 7,
                        BackgroundBrushEmpty = Hud.Render.CreateBrush(128, 0, 0, 0, 0),
                        BackgroundBrushFill = Hud.Render.CreateBrush(200, 0, 192, 0, 0),
                        Radius = 30,
                    },
    		new MapShapeDecorator(Hud)
    		{
    			Brush = Hud.Render.CreateBrush(255, 128, 255, 0, 2),
    			Radius = 10.0f,
    			ShapePainter = new CircleShapePainter(Hud),
    		}
                    );
            }
            public void Customize()
            {
                Hud.TogglePlugin<OculusPlugin>(false);
            }
            public void PaintWorld(WorldLayer layer)
            {
                if (Hud.Game.IsInTown) return;
    
                var actors = Hud.Game.Actors.Where(x => x.SnoActor.Sno == ActorSnoEnum._generic_proxy && x.GetAttributeValueAsInt(Hud.Sno.Attributes.Power_Buff_1_Visual_Effect_None, Hud.Sno.SnoPowers.OculusRing.Sno) == 1);
                if (actors.Count() > 0){
                    foreach (var actor in actors){
                    float dist = actor.FloorCoordinate.XYDistanceTo(Hud.Game.Me.FloorCoordinate);
    
    		if (dist < 13.3f){
                            DecoratorInside.Paint(layer, actor, actor.FloorCoordinate, null); 
                        }
                        else{
                            DecoratorOutside.Paint(layer, actor, actor.FloorCoordinate, null);
                            }
                        }
    		}
            }
        }
    }
    Last edited by MLPFUN; 06-11-2019 at 03:22 PM.

  16. #12
    Saico's Avatar Active Member
    Reputation
    21
    Join Date
    Apr 2019
    Posts
    379
    Thanks G/R
    35/20
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Sorry, but I did not get what is the real difference from original plugin, its a complement and they both work together or do we have to switch original into yours ?

  17. #13
    rickyyev's Avatar Member
    Reputation
    1
    Join Date
    Jun 2019
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry guys im new on this forum, how can i exactly download it to install? Ill go on the link but cant find the download button

  18. #14
    BeeAntOS's Avatar Active Member
    Reputation
    30
    Join Date
    Oct 2017
    Posts
    119
    Thanks G/R
    239/28
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by rickyyev View Post
    Sorry guys im new on this forum, how can i exactly download it to install? Ill go on the link but cant find the download button
    You can right-click to the "Raw" button and can send "Save link as..." command.

  19. #15
    rickyyev's Avatar Member
    Reputation
    1
    Join Date
    Jun 2019
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot, do i need to create the Zy folder right?

Page 1 of 2 12 LastLast

Similar Threads

  1. [INTERNATIONAL] [Zy] NayrStacks
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 6
    Last Post: 07-24-2020, 12:43 AM
  2. [ENGLISH] [Zy] MonsterSets
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 17
    Last Post: 04-09-2020, 01:48 AM
  3. [INTERNATIONAL] [Zy] ArchonDowntime
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 13
    Last Post: 08-28-2019, 02:19 AM
  4. [v7.3] [INTERNATIONAL] [Zy] MissingCursesPlugin
    By thetest1 in forum TurboHUD Community Plugins
    Replies: 2
    Last Post: 01-19-2019, 03:37 AM
  5. President Bush, CAUGHT SWEARING at international meeting
    By mantalcore in forum Community Chat
    Replies: 15
    Last Post: 08-14-2006, 09:41 AM
All times are GMT -5. The time now is 03:16 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search