Possible to draw circles around player to show specified range(s)? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    The_Crazy_Aussie's Avatar Member
    Reputation
    1
    Join Date
    Dec 2017
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Possible to draw circles around player to show specified range(s)?

    I'm not sure if there is a plugin or anything already, at least that I've seen so far on the forums, but I was wondering if there is a plugin, or a code snippet that could be added somewhere, that would draw a circle around my character, showing distance to specified ranges, so that I could more easily identify if things are within range (such as for Bone Armour)?

    Possible to draw circles around player to show specified range(s)?
  2. #2
    Klamist's Avatar Member
    Reputation
    7
    Join Date
    Mar 2018
    Posts
    41
    Thanks G/R
    1/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here's one. you can save as RangeRound.cs file and put into plugin/default folder.
    I make the F9 key to show or change the circle. There're two circle, if you want only one you can delete those code about Round2, and change the (on>2) to (on>1)
    Code:
    using System.Linq;
    using SharpDX.DirectInput;
    
    namespace Turbo.Plugins.Default
    {
        public class RangeRound : BasePlugin, IInGameWorldPainter, IKeyEventHandler
        {
            public GroundCircleDecorator Round1 { get; set; }
    		public GroundCircleDecorator Round2 { get; set; }
    		public IKeyEvent ToggleKeyEvent { get; set; }
    		public int on { get; set; }
    		
            public RangeRound()
            {
                Enabled = true;
            }
     
            public override void Load(IController hud)
            {
                base.Load(hud);
    			on = 0;
    			ToggleKeyEvent = Hud.Input.CreateKeyEvent(true, Key.F9, false, false, false);
    			
                Round1 = new GroundCircleDecorator(Hud)
                {
                    Brush = Hud.Render.CreateBrush(150, 0, 255, 0, 2.0f),
                    Radius = 15f
                };
    			
    			Round2 = new GroundCircleDecorator(Hud)
                {
                    Brush = Hud.Render.CreateBrush(150, 0, 255, 0, 2.0f),
                    Radius = 25f
                };
    		}
    			
            public void PaintWorld(WorldLayer layer)
            {
    			if (Hud.Game.MapMode != MapMode.Minimap) return;
                if (on==1) Round1.Paint(null, Hud.Game.Me.FloorCoordinate, null);
    			else if (on==2) Round2.Paint(null, Hud.Game.Me.FloorCoordinate, null);
            }
    		
    		public void OnKeyEvent(IKeyEvent keyEvent)
            {
                if (keyEvent.IsPressed && ToggleKeyEvent.Matches(keyEvent))
                {
                    on++;
    				if (on>2) on = 0;
                }
            }
        }
    }
    Last edited by Klamist; 01-21-2019 at 03:17 AM.

  3. Thanks Roman NMSK, danielh80 (2 members gave Thanks to Klamist for this useful post)
  4. #3
    The_Crazy_Aussie's Avatar Member
    Reputation
    1
    Join Date
    Dec 2017
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks heaps! And I would just change the 2 values (Radius - 15f and Radius = 25f) as needed, correct?

  5. #4
    Klamist's Avatar Member
    Reputation
    7
    Join Date
    Mar 2018
    Posts
    41
    Thanks G/R
    1/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, if you just edit these two numbers, you can press F9 (you can change which key by modify key.F~ in code)
    to switch:
    no circle, 15 yards, 25yards.

Similar Threads

  1. Replies: 1
    Last Post: 11-06-2018, 04:31 AM
  2. Replies: 3
    Last Post: 09-07-2018, 01:25 PM
  3. [Request] Is it possible to show the control immunity of RG or rare elites?
    By bobgao in forum TurboHUD Discussions
    Replies: 4
    Last Post: 11-01-2017, 11:51 PM
  4. [How-To] How to show the range of this gems
    By odaru7788 in forum TurboHUD Discussions
    Replies: 3
    Last Post: 05-02-2017, 05:49 AM
  5. [Hmm] Is it possible to change the ranges of ranged weapons
    By Snailz in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 08-15-2008, 08:28 PM
All times are GMT -5. The time now is 08:41 PM. 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