Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random spawn.
#1
Is there any way to teleport people when they spawn, to a random location?

I imagine, you would initially need a plugin that records all the possible locations someone can spawn without being off the map. So a very CPU intensive plugin that saves all the coordinates where a player goes on a particular map to an ini file of the same name. This could be the developer side of the plugin, which also allows people to map their own levels just by playing for a while with the standard spawns..

But then, upon collecting enough data (maybe you could have a limit to HOW many spawns are created), you could teleport a player to a random coordinate.

This is particularly useful for mp_dome sniper only servers, where people end up camping at a spawn. You could even distribute pre-made spawn mappings with the plugin.
Reply

#2
I dont know for sure if you could do that. something like player.origin(x,y,z) is already available and you can teleport people to wherever you want but that is after they spawn i think. Ask @JariZ or @Nukem or @zxz0O0
LOL
Reply

#3
We can teleport yes, but there;s no way to 'calculate' the free spots.
These all need to be added by hand.
You could however, create a plugin and make it run on a populair server for a few days, while it's running it saves all players positions.
These positions never are out of the map because they're players, and you could use this data to do random teleports.
OFC Your server needs to be a normal server (while collecting data) so no high jump / no gravity and all that shit
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] [SOURCE] Random Weapons. [HARD] Tony. 1 4,106 11-08-2013, 11:11
Last Post: Nekochan
  Help source random weapons [HARD] Tony. 4 4,701 11-08-2013, 05:25
Last Post: [HARD] Tony.
  Help choose 2 random players?(1 each team) 26hz 6 4,649 09-12-2013, 17:32
Last Post: Yamato
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,274 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,738 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Receiving a random primary & secondary DidUknowiPwn 5 4,402 07-22-2013, 09:47
Last Post: Yamato
  Help Spawn Message Playing on Respawn? Killjoy 7 5,232 07-11-2013, 14:53
Last Post: Killjoy
  [Release] Spawn Polygons and Pyramids Yamato 6 4,612 06-20-2013, 12:30
Last Post: Yamato
  What script controls the "random" aspect to care packages? akillj 2 3,267 06-05-2013, 11:24
Last Post: akillj
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,541 06-04-2013, 01:54
Last Post: rotceh_dnih

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.