r/ultrahardcore • u/Camaro6460 • Apr 25 '15
Code Cam's Scatter Skript 1.0 - Auto Mindist (Optional) | Scatter Teams, Solos & Specific Players | Scatter around a coordinate
Description
Scattering is a big part of starting a game, yet very few alternates for them. There're 2 big main scatter skripts out there, and the UHC Plugin built-in scatter.
What I've done is I've taken Fleft's scatter & combined it with features from D4's and optimized it to create a rather light weight yet very customizable scatter skript.
There're a lot of changes made to it, that will give either make your scatter a lot faster, or reduce the server's aftermath lag.
Skript
Links (Version 1.2)
| ^ |
|---|
| Pastebin |
| Hastebin |
| Raw Download |
Changelog:
Fixed issues with animal spawning
Fixed issues with certain team scattering loops
Cleaned up code for /invis command
Added colour customization options, allowing you to change the look of the scatter really easily
Features
Scatter Teams, Solos & Specific Players
It hooks into D4's Team Manager. It also scatters "offline players".
Choose your own Minimum Distance NEW
This is something that was mandatory in D4's scatter skript, having to define your own minimum distance. In Fleft's skript it would automatically calculate a minimum distance, however, this number would be a lot lower than a "max" minimum distance. In this scatter, you can now define a mindist, if you want, but it's not mandatory, as the skript will automatically calculate a minimum distance for you if you don't define it. If you set the minimum distance to 0, it'll automatically calculate one.
Scatter around pre-set coordinates NEW
By defining an "x" & "z" coord, it will center the scatter around those coords. This is helpful for when you need to scatter in Moved MU games, etc. If this isn't defined, it will scatter around 0,0.
Vanishes players NEW
This reduces lag as the server doesn't have to send player information to all logged clients. SimplyVanish Plugin Required.
Overall Optimizations NEW
Removed all sounds, to reduce the amount of commands the server has to execute.
Removed a lot of unnecessary lines of code, such as the lines that calculated estimated time, etc.
If you have any questions, I'd be happy to answer and help people! You can also check out my other skripts by going here. Other than that, happy scattering!
2
4
4
1
May 03 '15
Just a tip with this You need to use the mindist. If you don't use the mindist you will have 30 people right beside eachother and 10 people 500 blocks away from everyone in each direction.
1
u/Camaro6460 May 03 '15
Oh, yeah, that's a problem with all scatters that automatically calculate the Mindist. The mindist the skript calculates is to assure 100% scatter ability, accounting for the potentiality of oceans, etc.
But, I'll edit the post mentioning this!
1
1
3
3
2
1
u/Captainkoala72 Halloween 2015 May 04 '15
For some reason this happens when I try and scatter.
EDIT: It only happen when other players are on.
1
9
u/Norox_ Apr 25 '15
I have been using this skript for my past 5 or so games and I find that the TPS goes to about 15 on my 8GB dedicated server with D4's spigot/bukkit configs.
If I wait a minute after scatter then it seems to rise.