Author Topic: Random Starting Locations  (Read 5918 times)

The Reverend

  • Posts: 44
  • Turrets: +0/-0
Random Starting Locations
« on: November 18, 2006, 04:29:45 pm »
I have a quick question.  Is it possible to have random starting locations set up on a map.  Say if I were to make a map and create 4 different starting locations.  Is there a way to have it set up so that every time the map is played humans and aliens will start at 1 of these 4 different locations.  I just thought that something like this would add a little more flavor to a map.  Is it even possible???

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Random Starting Locations
« Reply #1 on: November 18, 2006, 04:43:24 pm »
With an extensive trigger system, yes it's possible.
I’m busy. I’ll ignore you later.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Random Starting Locations
« Reply #2 on: November 18, 2006, 06:29:05 pm »
This would certanly add more interest to maps, and prevent rushes, the only problem would be every location would have to be good for both alien and human, and be balanced regardless of where the two teams start.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

InfernoX347

  • Posts: 46
  • Turrets: +0/-0
Random Starting Locations
« Reply #3 on: November 18, 2006, 08:56:21 pm »
Hmm, I beleive so.

I know that it's possible to have an object spawn at several different areas, not sure if it was scripts or triggers though.

But same idea.

techhead

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
Random Starting Locations
« Reply #4 on: November 18, 2006, 09:10:39 pm »
It would be awesome.
The variety alone would be nice.
Instead of the same crappy base every time, you could end up in a random starting base of varying strengths.
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Random Starting Locations
« Reply #5 on: November 19, 2006, 04:23:30 am »
Quote from: "InfernoX347"
Hmm, I beleive so.

I know that it's possible to have an object spawn at several different areas, not sure if it was scripts or triggers though.

But same idea.
What about connecting the team_objects to a trigger, and have the trigger as a base spawn point??

I can tell you right now you can't do this in the current build of Tremulous. I can see this being added though, but not used in the maps that come with Tremulous, much like how the nobuild shader wasn't used.

InfernoX347

  • Posts: 46
  • Turrets: +0/-0
Random Starting Locations
« Reply #6 on: November 19, 2006, 04:42:43 am »
It's possible, trust me.

St. Anger

  • Posts: 377
  • Turrets: +58/-83
Random Starting Locations
« Reply #7 on: November 19, 2006, 05:44:49 am »
Meh that sounds great but you would start seeing "ZOMG we got the shitty base" or '"FFS you aliens/hummies are lucky we got the bad base".

techhead

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
Random Starting Locations
« Reply #8 on: November 19, 2006, 02:37:11 pm »
At the very least, having to actually look for the base would cut down on rushing.
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

vcxzet

  • Guest
Random Starting Locations
« Reply #9 on: November 19, 2006, 04:18:57 pm »
so you place
team1 spawn/reactor/turret
team2 spawn/reactor/turret
and engine for example randomly selects team1 as aliens
team1 spawn/reactor/turret becomes egg/OM/acidt
and
team2 spawn/reactor/turret becomes telenode/reactor/machinet
it is easy
problem is turrets do not act as acidtubes
and you wont know if it will be a turret or an acid tube in the game

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Random Starting Locations
« Reply #10 on: November 19, 2006, 04:31:45 pm »
That is not the way it can be scripted currently. Atm the only viable option is prebuilding all bases and destroying the ones you don't need.

Goes like this in theory.

1 trigger_always (triggers once at start of map)
1 target_relay with the random option targeting the following relays
n target_relay (where n= 2^x base locations per team) targeting the corresponding trigger_hurts of bases which should not survive on a certain choice determined by the random relay.

You can see that for 2 bases per team you need 4 relays, for 3 you need 8, for 4 16 etc.
I’m busy. I’ll ignore you later.

vcxzet

  • Guest
Random Starting Locations
« Reply #11 on: November 19, 2006, 04:50:27 pm »
Quote from: "Survivor"
That is not the way it can be scripted currently. Atm the only viable option is prebuilding all bases and destroying the ones you don't need.

Goes like this in theory.

1 trigger_always (triggers once at start of map)
1 target_relay with the random option targeting the following relays
n target_relay (where n= 2^x base locations per team) targeting the corresponding trigger_hurts of bases which should not survive on a certain choice determined by the random relay.

You can see that for 2 bases per team you need 4 relays, for 3 you need 8, for 4 16 etc.

I meant modifying the engine to have team1 and team2 rather than teamalien and teamhuman