PDA

View Full Version : UE1 - UT Can you have bases in domination


Eyuva 'S' NRG
10th Mar 2009, 11:47 PM
Is there a way to set the playerstart teams in Domination like in CTF? I'd like to create Domination with bases, and two teams would face off for control of the center, like a metaphorical chess match.

I tried this, but the people still spawned on any old spawnpoint.

Wormbo
11th Mar 2009, 06:14 AM
Domination does not respect team numbers of PlayerStart actors.

Eyuva 'S' NRG
31st Mar 2009, 01:29 AM
Domination does not respect team numbers of PlayerStart actors.

True.

Is there a way to code an alternate domination setting to allow this simple tweak. This simple tweak would change the dimension of how domination is played. IMO, for the better.

Wormbo
31st Mar 2009, 01:43 AM
The line "bSpawnInTeamArea=True" in defaultproperties would change the behavior. Try creating a subclass (http://wiki.beyondunreal.com/Legacy:Create_A_Subclass) of Actor >> Info in package "MyLevel", call it "TeamAreaSpawner" and paste the following code:

class TeamAreaSpawner extends Info;

function BeginPlay()
{
if (Domination(Level.Game) != None)
Domination(Level.Game).bSpawnInTeamArea = True;
}

Click the "Compile Changed Scripts" button and place an instance of your new actor anywhere in the map. Save the map and playtest. Player should now spawn only on start spots of their specific team.

Eyuva 'S' NRG
22nd Apr 2009, 02:35 AM
Thank you Wormbo, it worked.

I have a question though, can most scripts be made in mylevel like this?

That was way simpler than using notepad to code and exporting the entire .uc system and then recompiling the code.

I don't even need a .u file for this either since it's embedded in MyLevel. Interesting.

Wormbo
22nd Apr 2009, 04:47 AM
Yes, many scripts will work in myLevel, but some don't. Just try and see.

War_Master
22nd Apr 2009, 09:27 AM
You can use a mutator to change that property in the gametype and embed the mutator into your map.

Check out the UnrealWiki site which is in Wormbo's signature and search for Changing_The_Enforcer_(UT) which has a tutorial and the script on how to embed a mutator in a map.

Wormbo
23rd Apr 2009, 05:53 AM
Do you actually read my posts and not only my sig? ;)
I already provided a much better way to do it. Why a full-blown mutator if it can be done with a simple actor?

War_Master
23rd Apr 2009, 09:23 AM
I have a question though, can most scripts be made in mylevel like this?
To answer this question in case he wanted to know, if a mutator can be saved in a map as well since a few people have asked about it before.

Also, in case He wanted to change the default weapon or use any of the other features that a mutator can provide. Besides, I do like to drop-in a few extra stuff into my maps to make them a bit different and I always do that with a mutator, I just let him know about it before he asks. ;)

Kaal979
6th May 2009, 08:44 AM
Could you please share the script as system file for others to use?

Creavion
6th May 2009, 09:20 AM
But it seems not to work in TDM, I replaced domination with teamgameplus, I started also ingame with TDM (Gameinfo) but sadly it does not work :/

Wormbo
7th May 2009, 02:55 AM
Remember to compile your script and to save your map after placing the actor somewhere in it.

Creavion
7th May 2009, 05:58 AM
After even your original script does not work I noted that problem I had a long timer ago:
if you copy text from textfiles or forums or whatever in the script window (for myLevel), it can be possible that the sh1t does not work :/
I bet I have to do it over the longer way to make it work (external u file > then myleveling)

Edit: No I was wrong, it still does not work Oo .. well in that way the script does not work, compiling is possible.

Eyuva 'S' NRG
14th Dec 2009, 06:29 AM
After even your original script does not work I noted that problem I had a long timer ago:
if you copy text from textfiles or forums or whatever in the script window (for myLevel), it can be possible that the sh1t does not work :/
I bet I have to do it over the longer way to make it work (external u file > then myleveling)

Edit: No I was wrong, it still does not work Oo .. well in that way the script does not work, compiling is possible.

I got the script to work for TeamDeathMatch using TeamGamePlus. I created a simple test map with two teams on opposing sides of a river.

It took some haggling with the editor. For example player starts for team 1 should be set to 0, then 1,2,3 for the next teams.

You might also want to change the default game type to TeamGamePlus.

None the less, I verified this with an independant load of UT. It works. Each team was on *THEIR* side of the river. The only time someone got booted to the other side was due to a redeemer bounce from a fellow teammate. (I threw in some weapons to make the testing, more, ahem, enjoyable)