Random locations generator
1 Attachment(s)
I will share with all this utility to generate random locations to be used as spawnpoints or whatever you want.
With this you can get random spawns with a minimum distance between each one. I know there's other alternatives but didn't help me Hawk Tutorial: http://forums.alliedmods.net/showthread.php?p=519409I'm using some checks to be sure the location will be suitable to spawn a player or and entity without problems:
I tested this on some standard and custom maps without problems. Sometimes you can get a location over a box but you can check that outside this utility. Also I worked to avoid ceiling locations. I will be glad with feedback about useless locations (outside map, non stuck-free locations, etc). Ideas and improvements are welcome too. Here's an example on how to use the included file PHP Code:
|
Re: Random locations generator
Well done, will be using this for sure
|
Re: Random locations generator
Good job joro.
I would have posted this tutorial if I would have worked on runemodx. When I was at the start of the project I wanted to improve what Chronic made, but no problem. I now have what you did, good job again! |
Re: Random locations generator
joropito, you're the man.
|
Re: Random locations generator
awesome work.
|
Re: Random locations generator
Cool!!!!! i will use this. Nice job.
|
Re: Random locations generator
I've been looking for this, damn thanks
|
Re: Random locations generator
Currently I have a better than the one in firts post.
I will update as soon as possible. |
Re: Random locations generator
Cool....Thanks :D
|
Re: Random locations generator
Oh, this is great. Will use... somewhen... for sure ;]
|
All times are GMT -4. The time now is 18:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.