Tremulous Forum

Media => Mapping Center => Topic started by: The Reverend on November 18, 2006, 04:29:45 pm

Title: Random Starting Locations
Post by: The Reverend 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???
Title: Random Starting Locations
Post by: Survivor on November 18, 2006, 04:43:24 pm
With an extensive trigger system, yes it's possible.
Title: Random Starting Locations
Post by: David 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.
Title: Random Starting Locations
Post by: InfernoX347 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.
Title: Random Starting Locations
Post by: techhead 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.
Title: Random Starting Locations
Post by: Odin 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.
Title: Random Starting Locations
Post by: InfernoX347 on November 19, 2006, 04:42:43 am
It's possible, trust me.
Title: Random Starting Locations
Post by: St. Anger 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".
Title: Random Starting Locations
Post by: techhead on November 19, 2006, 02:37:11 pm
At the very least, having to actually look for the base would cut down on rushing.
Title: Random Starting Locations
Post by: vcxzet 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
Title: Random Starting Locations
Post by: Survivor 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.
Title: Random Starting Locations
Post by: vcxzet 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