Legacy:OverloadUT/Making A 4-Team Gametype

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to navigation Jump to search

Right now this is just a scratchpage with general topics that I'll expand on in detail later. Whenever I think of other things I'll need to cover, I put them here:

Team Numbers

0 = Red

1 = Blue

2 = Green

3 = Gold

Tarquin: just link to team number ;)

Scoreboard

Custom scoreboards should be subclasses of ScoreBoardOLTeamDeathMatch

You can use the OLTeamColors[4] variable if you need some team-based colors.

HUD

HUD classes must be subclasses of HUDOLTeamDeathmatch.

All HUD items are drawn with Tints[0]. Tints[1] is never used.

You can use the OLHudColorTeam[4] variable if you need team-based colors that will match the rest of the HUD.

There is a new variable, NewMessagePosY that tells the HUD where to display messages that normally have a PosY of 0.1. This is due to the fact that 4-team gametypes have a larger score area on the HUD, and all the "Top of HUD" messages (at 0.1) overlap the scores. Doing it this way is the best for forward compatability. You can change the NewMessagePosY variable to whatever you want in your own HUD. (0.17 is the default for TDM4 and CTF4)

Very important: If you need to access the player's team, use the variable OLTeamIndex instead of TeamIndex, as the latter is ALWAYS set to 0. This is because of the Tints[] problem, and related to the fact that Native functions rely on the TeamIndex number being either 0 or 1.

bCanAdjustNumTeams

A variable defined in OLTeamGame - if true, then the player can adjust the number of teams (2-4) in the game configuration.

It's true in TDM4, but false in CTF4 because the number of flags on the map determine how many teams will be in the game.

MutatorClass

It needs to be a subclass of OLTeamGamesMutator

It has a new variable, PRIClass, which defines what PRI players should have, in case you need to use your own. See the PlayerReplicationInfo section below.

Pawns

If you need to use your own pawn, be sure to make it a subclass of OLTeamPawn. This is very important, because the OLTeamPawn is what controls all of the green and gold skin loading.

PlayerReplicationInfo

GameReplicationInfo