Raised This Month: $180 Target: $400
 45% 

Random locations generator


Post New Thread Reply   
 
Thread Tools Display Modes
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 01-12-2018 , 11:40   Re: Random locations generator
Reply With Quote #21

Quote:
Originally Posted by edon1337 View Post
Would I be able to use this to spawn players in the highest map point but making sure they'll fall into a safe place (not in water or any other unsafe zone) also to have a minimal distance (enough to not stuck a player into another) between players?
Yes, but have two ways of use this

1. Caching spawns positions like csdm: Create spawns -> Cache -> Use in a static (Read spawns.txt file)
2. Dynamically creating and use without store spawns.

I prefer first way so you can edit spawn points, removing that you do not want. And finally store removed spawns to not be generated again.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-12-2018 , 13:08   Re: Random locations generator
Reply With Quote #22

Quote:
Originally Posted by ^SmileY View Post
Yes, but have two ways of use this

1. Caching spawns positions like csdm: Create spawns -> Cache -> Use in a static (Read spawns.txt file)
2. Dynamically creating and use without store spawns.

I prefer first way so you can edit spawn points, removing that you do not want. And finally store removed spawns to not be generated again.
I need the spawn points to be generated automatically, as there won't be just one map, I'm already using the manual way of storing origins in an external file.
__________________
Have no fear of perfection, you'll never reach it.
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: [<o>]
Old 01-13-2018 , 19:25   Re: Random locations generator
Reply With Quote #23

It creates random locations as obviously, it says. Can be in non-sense point. The first way is better to me because you can select a point where you want, like in the corners, that's the best position to be respawned (in DM mod, I mean). This include is pretty useful for plugins like Respawn Boxes with bonus or anything else that needs to be respawned randomly.
__________________
Corno, gordo, sua mulher so tá com você porque cê banca ela, otário KKKKKKKKKKKJ.
EFFx is offline
Send a message via Skype™ to EFFx
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-15-2018 , 08:16   Re: Random locations generator
Reply With Quote #24

You can use this once per map, dump the results and build your custom respawns file.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-15-2018 , 08:53   Re: Random locations generator
Reply With Quote #25

Quote:
Originally Posted by joropito View Post
You can use this once per map, dump the results and build your custom respawns file.
How would I implement a method to spawn players in the highest map point in your plugin?

EDIT: I implemented it myself, never mind.
__________________
Have no fear of perfection, you'll never reach it.

Last edited by edon1337; 01-18-2018 at 16:56.
edon1337 is offline
Old 01-28-2018, 23:34
EFFx
This message has been deleted by EFFx. Reason: .
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:31.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode