Visual Cupboard Radius

Allows Authorized Players to Visually See Building Privildge Radius of Owned Tool Cupboards

Total Downloads: 5,642 - First Release: Jul 20, 2016 - Last Update: Nov 10, 2017

5/5, 25 likes
  1. Keep us posted!
     
  2. no Cupboard permission,Can also be built,What's the matter? What kind of plug-in do I need
     
  3. this plugin is to see the build raidus of a tc not to add perms to a tc
     
  4. Still waiting for a fix for the spheres transparency!
    @Colon Blow ??

    Thanks =]
     
  5. Still no fix yet that I can find.

    maybe they will add the ability to color them or skin them now that they appear a slightly more advanced version of the sphere. that would be cool.
     
  6. what about adding it in like zonemanager to show the blue sphere ?
     
  7. if they make it where we can change the colors. then yes that shouldn't be a issue for any plugin to do.
    But I was just speculating on why they changed the appearance. I do hope they make it so we can do that :)
     
  8. The circle is very dark.Players can't see it.Can you fix it ? Thanks!
     
  9. The way zone domes works is it seems to create multiple spheres in order to darken it up more and more using a for loop. Maybe you could borrow this idea for this plugin.

    edit: that being said.. i've never tested zone domes so i can't say if it even works. was just sharing idea.
     
    Last edited by a moderator: Jul 22, 2017
  10. just tested zone domes and you can get the outline to be pretty dark depending on how many domes you add up. i did 20 and it looked pretty good!
     
  11. Any ETA on an Update or a Possible "In the DMs" Hot fix? lol
    Spanks! =]
     
  12. Nothing yet, But I have been pretty darn lazy the last two weeks :) I'll dig around and see if there is a option still.
     
  13. Awesome sauce! Keep us posted =]
     
  14. Need to modify transparency of the dome please :(

    Awesome plugin !
     
  15. You are probably aware but ZoneDomes plugin uses same sphere.prefab this plugin does. It darkens it up by spawning multiple sphere entities over each other rather than just 1. Might fix your issue right there
     
  16. Yes... that is a good idea :) ill start working on it .
     
  17. Good luck ^^
     
  18. i'm not a programmer so this is probably dirty as hell but doing what i did below darkened it up quite a bit. go beyond 5 if you want it darker. at least its a bandaid until a fix it out.

    Code:
            void AddSphere(BasePlayer player, bool showall, bool adminshow)
            {
                if (isAllowed(player, "visualcupboard.allowed"))
                {
                    List<BaseCombatEntity> cblist = new List<BaseCombatEntity>();
                    Vis.Entities<BaseCombatEntity>(player.transform.position, ShowCupboardsWithinRangeOf, cblist);                foreach (BaseCombatEntity bp in cblist)
                    {
                        if (bp is BuildingPrivlidge)
                        {
                            if (bp.GetComponent<ToolCupboardSphere>() == null)
                            {
                                Vector3 pos = bp.transform.position;                            if (!adminshow)
                                {
                                    if (player.userID != bp.OwnerID) return;
                                    var sphereobj = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj2 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj3 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj4 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj5 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    if (showall) sphereobj.showall = true;
                                    if (showall) sphereobj2.showall = true;
                                    if (showall) sphereobj3.showall = true;
                                    if (showall) sphereobj4.showall = true;
                                    if (showall) sphereobj5.showall = true;
                                    GameManager.Destroy(sphereobj, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj2, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj3, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj4, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj5, DurationToShowRadius);
                                }
                                if (adminshow)
                                {
                                    var sphereobj = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj2 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj3 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj4 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    var sphereobj5 = bp.gameObject.AddComponent<ToolCupboardSphere>();
                                    sphereobj.showall = true;
                                    sphereobj2.showall = true;
                                    sphereobj3.showall = true;
                                    sphereobj4.showall = true;
                                    sphereobj5.showall = true;
                                    GameManager.Destroy(sphereobj, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj2, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj3, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj4, DurationToShowRadius);
                                    GameManager.Destroy(sphereobj5, DurationToShowRadius);
                                    PrintWarning("Tool Cupboard Owner " + bp.OwnerID + " : " + FindPlayerName(bp.OwnerID));
                                }
                            }
                        }
                    }
                }
                if (!isAllowed(player, "visualcupboard.allowed"))
                {
                    SendReply(player, lang.GetMessage("notallowed", this));
                    return;
                }
                else return;
            }
     
  19. Shall test this out and let ya know how it feels! Thanks! =]

    Update: Works as intended! Good job.
     
    Last edited by a moderator: Aug 22, 2017