The CTF game mode in SSGM uses a system dubbed the "CTF class system." This class system holds the flag positions, as well as
other settings, and allows for multiple flag positions per map.





Each CTF class is structured like so:

CTF_C##_Name=
CTF_C##_CaptureLimit=
CTF_C##_Enabled=
CTF_C##_Reverse=
CTF_C##_Team1_X=
CTF_C##_Team1_Y=
CTF_C##_Team1_Z=
CTF_C##_Team0_X=
CTF_C##_Team0_Y=
CTF_C##_Team0_Z=

CTF_C##_Name
The name of the class.

CTF_C##_CaptureLimit
The capture limit for the class. How many times a team needs to capture the flag to win the game.

CTF_C##_Enabled
Whether this class is enabled or not.

CTF_C##_Reverse
Is this a reverse CTF class?

CTF_C##_Team1_X=
CTF_C##_Team1_Y=
CTF_C##_Team1_Z=
Coordinates for team 1(GDI)'s flag.

CTF_C##_Team0_X=
CTF_C##_Team0_Y=
CTF_C##_Team0_Z=
Coordinates for team 0(Nod)'s flag.

## is the number of the class, starting from 01 and going in order. If you have a class 03 then you need a class 02 and 01.

The classes go under the map specific part of ssgm.ini, which looks like [MapName.mix].





So, let's say we want to add a new class to Under. First we'd search for [C&C_Under.mix] in ssgm.ini and see how many classes
there are. SSGM ships with 4 existing classes for Under, so our new class will be #05.

CTF_C05_Name=Waffles
CTF_C05_CaptureLimit=5
CTF_C05_Enabled=1
CTF_C05_Reverse=0
CTF_C05_Team0_X=-391.4
CTF_C05_Team0_Y=19.3
CTF_C05_Team0_Z=-0.2
CTF_C05_Team1_X=91.55
CTF_C05_Team1_Y=64.091
CTF_C05_Team1_Z=1.4

Then you would paste that into ssgm.ini after class #04.





But what about setting up CTF for a completely new map, such as a fan map or a mission map? Well, the process is similar.
For this example we'll use M01.mix.

Since M01.mix is a completely new map you'll need to add a map specific section for it in ssgm.ini. Go to the end of ssgm.ini
and add "[M01.mix]", this will be the map specific section for M01.mix where we'll put the class(es) and any other settings.

Since this is the first class for this map it will be #01.

CTF_C01_Name=Lightning Round
CTF_C01_CaptureLimit=10
CTF_C01_Enabled=1
CTF_C01_Reverse=0
CTF_C01_Team0_X=-31.4
CTF_C01_Team0_Y=193.3
CTF_C01_Team0_Z=-0.2
CTF_C01_Team1_X=119.55
CTF_C01_Team1_Y=29.091
CTF_C01_Team1_Z=1.4

You may also want to set some other options for the map, such as the weather type.

So the final product would look like:

[M01.mix]
WeatherType=Rain
CTF_C01_Name=Lightning Round
CTF_C01_CaptureLimit=10
CTF_C01_Enabled=1
CTF_C01_Reverse=0
CTF_C01_Team0_X=-31.4
CTF_C01_Team0_Y=193.3
CTF_C01_Team0_Z=-0.2
CTF_C01_Team1_X=119.55
CTF_C01_Team1_Y=29.091
CTF_C01_Team1_Z=1.4

And there you have it, CTF mode can now be played on M01.mix!


