RPG Spawning
Jul 31 2009, 12:10 am
By: blacklight28  

Jul 31 2009, 12:10 am blacklight28 Post #1



How would I go about making a realistic spawning system for an RPG? I want the units spawn out of the players sight range then JYD so you don't see units appear out of nothingness. But I don't want set spawning locations because players can then just camp out the spawning points. If I am not specific enough, please say so.



None.

Jul 31 2009, 12:12 am Falkoner Post #2



Burrowed units, place them around where it should spawn, and just run a location the size of the player's vision through them, if no players are nearby, you can spawn there.

Alternatively, you could always just have a sexy spawn, like creating them under an arbiter, so they cloak, then moving them there so they uncloak to appear, or having an explosion while they're created.



None.

Jul 31 2009, 12:42 am Jack Post #3

>be faceless void >mfw I have no face

I was going to have a system with JYD observers. Then a location the size of the player's vision. If the player brings no units to that location then it makes a spawn. It's more dynamic than lings.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jul 31 2009, 12:43 am Demented Shaman Post #4



You could try JYD a bunch of observers and have them roam around as random spawn locations.

To select the observers just outside the players' sight you'd center a location over your player that is the size of their vis area, give all the observers to another player, then center a location a little bigger than the previous location and then spawn units from the observers that were not just given.

I'm just throwing the idea out there. I've never done it.

EDIT: Heh, zany posted almost the exact same thing as I did. :lol:



None.

Jul 31 2009, 12:45 am XGenesis Post #5



What's a JYD?



None.

Jul 31 2009, 12:46 am Demented Shaman Post #6



Quote from name:zany_001
Too fast for you xD
I could have posted it much earlier, but I wasn't sure if it was a worthwhile idea anyway and when I finally decided to post it I saw that you had just posted one as well. Oh well, mine's more detailed :P

EDIT:
Quote from XGenesis
What's a JYD?
Junkyard Dog AI script. It makes units roam randomly.

Post has been edited 1 time(s), last time on Jul 31 2009, 1:45 am by NudeRaider. Reason: merged posts



None.

Jul 31 2009, 12:50 am Jack Post #7

>be faceless void >mfw I have no face

Quote from name:Pariah
Quote from name:zany_001
Too fast for you xD
I could have posted it much earlier, but I wasn't sure if it was a worthwhile idea anyway and when I finally decided to post it I saw that you had just posted one as well. Oh well, mine's more detailed :P
My system is a little different as it spawns anywhere, but yours spawns close to the player. It depends on what is wanted.

Post has been edited 1 time(s), last time on Jul 31 2009, 1:44 am by NudeRaider. Reason: removed provocation



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jul 31 2009, 4:07 am Pyro682 Post #8



I beleive that the burrowed units with a location to detect sight range is your best bet here. It's convenient, and you don't see those blurs everywhere.



None.

Jul 31 2009, 5:31 am Falkoner Post #9



If it's an issue, you could also use mobile grids to get a random spawn location, and then check if a player is there, if they are, get another random location, if not, spawn there.



None.

Jul 31 2009, 9:06 am Vrael Post #10



If the objective here is simply to not have the player see the unit appear, you could just place static spawns in really obscure places that players aren't likely to sit, then randomize between 3 or 4 of them so that a player can't camp.

Or along the lines of what falkoner said, use some randomization + mobile grids to move a location starting from the hero, and radially away from him, then spawn. However, what if there are 2 or3 players in the game? Then you'd need to account for their sight range too.

Or just blind all the heroes :D



None.

Jul 31 2009, 5:06 pm Falkoner Post #11



Quote
However, what if there are 2 or3 players in the game? Then you'd need to account for their sight range too.

Well, I figure if you make a location large enough, like, just a bit larger than their vision, it should work fine.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: Roy, Orman