Jump to content
Sign in to follow this  
EZJack

multiple respawns that are captureable...

Recommended Posts

i've searched for the past few days for an answer to this to no avail...

i have a mission i am building, fairly simple but i'm not sure it's been done before...

- a simple PVP, a real mix between AAS/Domi/A&D/TDM and others.

- red team spawns on one end of the map and has to capture 7 locations across the map.

- blue team can spawn at any of the 7 locations until they are captured by red team.

- locations can also be recaptured by blue team and used to spawn again.

- game ends once all locations are captured by red team or when red team runs out of lives/time.

i'm not sure how to go about this all though....

i have everything else on this mission ready to go but this re-spawn problem...

so... my first problem is how to make an objective turn either red or blue when the respectable team captures. and also have a flag pole change flags depending on who owns the location.

i'm sure this flag/marker problem is a simple trigger thing... that i will be able to figure out by asking around some more... but i hope someone can just help me real quick with that..

but my main problem is this multiple re-spawn, i doubt i will ever figure out... that's where i turn to the help of all you guys.

i know norrins revive can add multiple re-spawn choices after death but only up to four... it also adds a lot of things i don't need/want in this mission such as revive.

so tldr; how would i display to a player after they died a choice of 7 re-spawn points (or how every many are un-captured by the other team) so the player has a choice of what flag/location to spawn at? this is only for one side, the other side only has one main base so it's not an issue there.

now it's time to go dig my car out of the snow and hopefully await a response

cheers,

e-z jack

:cheers:

Share this post


Link to post
Share on other sites

Hi. You can use SetMarkerColor to change a markers colors. You can use marker colors as conditions too. I'm not sure about flags, as I don't use them. You could use setFlagTexture maybe. You may want to speak with tvig0r0us regarding spawning locations. I would share mine, but it involves dialog controls etc. He uses a map click to spawn within a friendly marker, which is actually pretty neat the way he has it.

Some examples:

If (MarkerColor "MY_MARKER" == "ColorGreen") Then {HintSilent Format ["%1", MarkerColor "MY_MARKER"];};

If (MarkerColor "MY_MARKER" != "ColorGreen") Then {"MY_MARKER" SetMarkerColor "ColorGreen"};

Switch (MarkerColor "MY_MARKER") Do
          {
                     case "ColorGreen":{HintSilent "It's Green";};
                     case "ColorRed":{HintSilent "It's Red";};
                     case "ColorYellow":{HintSilent "It's Yellow";};
          }

Private "_v";
_v = 0;
While {MarkerColor "MY_MARKER" == "ColorGreen"} Do
{
          For "_i" From 1 To Random 100 Do
          {
               _v = _v + 1;
          };
           If (_v > 25) ExitWith {"MY_MARKER" SetmarkerColor "ColorRed";};

};

Edited by Iceman77

Share this post


Link to post
Share on other sites

cheers, thanks for the intel.

i saw actually looking at his urban conquest mission, pretty neat but not quite what i'm looking for. i'm trying to keep mine as simple as possible.

right now i'm using a marker with 0 size, and a trigger set the marker to 30x30 and to what ever color team is in the area.

the code is something like, on the act.

"markername" setMarkerSize [30,30];

though it doesn't remove the first mark when the second team caps it.

so once both teams have been there it shows both.

i think i just need to set a deactivation to revert back to 0x0 if the other team shows up...

but....

i'm thinking i might do away with the markers and stick with flags.

it's a small map and i've found a good thread explaining how to work flag captures....

http://forums.bistudio.com/showthread.php?113098-Flag-capture

anyway.... this i'm less worried about and can fix later down the line....

:o:

my main problem is still the re-spawning

i just need someway to have and display to the player up to 7 spawn points for the one team at any time time and have those spawn points be un-spawnable if the area is captured by the other team...

that's my hail mary.

Edited by EZJack

Share this post


Link to post
Share on other sites

Affraid that a map click respawn choice similar to urban conquest coop's, is pretty much the simplest it's going to get regarding picking an available spawn. You're talking about making a dialog that pops up that displays available spawn locations. When that actually would be harder to do than a map click method seen in urban conquest coop.

Share this post


Link to post
Share on other sites

yeah, i guess so.

i'll send him a message...

it would be great to see this come to life, been working very hard on the other aspects of the mission and everyone knows it sucks when you get bogged down on one thing...

we've had a lot of people come in our server while we were testing it and hope to see it get finished, that's what spurring me on.

worst comes to worst i'll just do the flag flip idea and use a teleporter from their base.

:cool:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×