Solved Visible zones

Discussion in 'Plugin Requests' started by A Sober Schism, May 7, 2016.

  1. Is there a plugin that lets you see the zones like in this video?? If there is I can't seem to find it anywhere can someone point me in the right direction.

     
  2. that appears to be intoxicated sandbox server, and they do a lot of custom coding only for there servers.

    I don't think there is a downloadable plugin that shows the zones like that yet.
     
  3. Wulf

    Wulf Community Admin

    You mean the dome around the building? No plugin for that yet, but possible for anyone willing and able. ;)
     
  4. Oh yes please! This sphere thing again, I would so damn love it to have visible zones ^^
     
  5. I think its just the ddraw method. I'll see if I can fix something.
     
  6. Anyone worked on this idea? I think it would be cool :)
     
  7. Anyone interested.. I did find a prefab that i could spawn, appears to be smaller version of that bubble zone..maybe.

    "assets/prefabs/visualization/sphere.prefab"

    might have to see about adjusting scale and such. but its a start :)
     
  8. Lol.. I just felt like running around playing Frosty the Snowman thru my mic...ha ha. See, the little bubbles are useful.
     

    Attached Files:

  9. so you were able to move them?
     
  10. Wulf

    Wulf Community Admin

    It's just a prefab that he's attaching to the player, they can be placed anywhere really in pretty much any size too likely.
     
  11. But I thought the size was the problem ?
     
  12. Still working on the sizing /scaling part. But nothing works yet for me :(

    But i'll have to do a little more research this weekend and see what else I can find.
     
  13. Anyone else have idea? I know you cannot spawn them directly as a entity with modified scale attribute.
    I tried a few quick things, but attempting to spawn a gameobject directly didn't work. only spawning as entity.

    I image we would need to create a prefab / gameobject with desired attributes, then clone/instantiate that object?
    I'm off today.. so maybe I can work on this after some BBQ :)
     
  14. I hope so much that the BBQ will help. :D
    But there must be a way, Battle Royal servers are using this.
    Good luck and thank you for trying ;)
     
  15. i'm sure it will work. I just need to "get my code on" ...lol I am still pretty new at coding, but learning everyday.

    And according to the devblog release back in January (Devblog 94) when the sphere was added, gary said it was for modders :)
     
  16. gary likes modders ;) Also waiting to see your work ;) Thumbs up
     
  17. sweet, I got it working. actually easier than I thought. duh. lol
    I'll be able to get something to you guys later on to use.

    Captain Morgan makes my brain work better sometimes :)

    edit. added some rough coding for everyone to play with. back to BBQ for now. this will spawn a sphere that grows to the specified 15f size on spawn.

    you can change the currentRadius, lerpRadius, and lerpSpeed :) to get a bigger sphere.

    Code:
            [ChatCommand("sphere")]
            void cmdChatsphere(BasePlayer player, string command, string[] args)
                {
                    Vector3 pos = player.transform.position;
                    Quaternion rot = new Quaternion();                string strPrefab = "assets/prefabs/visualization/sphere.prefab";
     
                    BaseEntity sphere = GameManager.server.CreateEntity(strPrefab, pos, rot, true);
                    SphereEntity ball = sphere.GetComponent<SphereEntity>();
                    ball.currentRadius = 5f;
                    ball.lerpRadius = 15f;
                    ball.lerpSpeed = 1f;
                 
                    sphere?.Spawn(true);
                 }
     
    Last edited by a moderator: May 30, 2016
  18. Grab one BBQ for me brah, also going to test it now ;)
     
  19. Nice one!
    Thank you
     
  20. If you guys are playing with it and zone manager zones.. it appears there visible spheres are approx. twice the size.

    My zone was set for 150. and I had to set my sphere to 300 to match pretty close.
    [DOUBLEPOST=1464659450][/DOUBLEPOST]and if you need you can use this in server console to remove all your spheres. lol

    del assets/prefabs/visualization/sphere.prefab