Mission Header

From F2 EN
Jump to: navigation, search

Description

The Mission Header provides important information to the server and should always be completed.

Required files

All the code associated with this component is found in:

  • description.ext

How to use

Locating the code

In order to edit the Mission Header open the file description.ext and look for the code segment entitled:

// F2 - Mission Header

Available gameType values

The following gameType values are available:

Value (gameType)Description
DMDeath Match
CTFCapture the Flag
FFFlag Fight
CoopCooperative Mission
TeamTeam Mission
ScontSector Control
HoldHold Location
UnknownUnknown - is used when no class header is defined.

Default gameType

The default value for gameType in F2 is Coop.

Changing the gameType

Open the file description.ext and look for the code segment entitled:

// F2 - Mission Header

Edit the following line, changing the value of gameType to the desired value (see list above):

gameType = coop;

Setting min and max players

Open the file description.ext and look for the code segment entitled:

// F2 - Mission Header

Edit the following lines, changing the value of minPlayers and maxPlayers to the desired values:

minPlayers = 1;
maxPlayers = 13;

You should change these values to reflect the number of playable slots in your mission.

Tips

  • Before you publish a mission it is a good idea to re-check the Mission Header, in case you have changed the number of playable slots.

How to disable

You should not attempt to disable this component.

Credits

N/A