Quote:
Originally Posted by ******
This is pretty nice, although there's a chance the shamals can collide, something like:
x = (playerid / 10) * 20;
y = (playerid % 10) * 20;
may be better as then (assuming the planes aren't more than 20x20 units) they can never overlap.
|
Yeah good idea, pawno's random function aint too good. As this is the final rel for this script i shall only be updating when more of what you have pointed out there is pointed out by others so that it is worth updating

. Btw under testing i found that the higher the value you use with the random function then the more random it will actual be and not just because of the extra choices as i tried this or something like it in some small testing with devision and multiplication etc and to use a small number rather than a big number then it will be less randomized as i devided the big number to give the units of the small number and it was always more random. Which is why when using coordinates from 1 side of the map to the other your random values will be greatly more random than using it to toss a coin with 2 random choices or rolling a dice with 6. << That bit of info might be useful for some people

.