Call of Duty 7: Creating Gametype
New Gametype
When making a new gametype, you'll want to keep in mind a short abbreviation that'll be used for your filenames and referenced inside text files. (ie. TDM for Team Death Match, CTF for Capture The Flag, GUN for Gun Game)
When working on your gametype, you can and are encouraged to use your mod folder as a working directory. You can copy any files you need from the \raw directory to your mod folder and edit it there.
Examples you can look at include Hide And Seek (Beta) and Juggernaut (Beta).
Minimum
The core files you'll need to get your gametype running include the following below.
File | Action | Purpose |
<root>\raw\maps\mp\gametypes\_gametypes.TXT | Edit This File. | List your gametype abbreviation here. |
<root>\raw\maps\mp\gametypes\<YOUR_GAMEMODE>.TXT | Create This File. | UI strings for your gametype. |
<root>\raw\maps\mp\gametypes\<YOUR_GAMEMODE>.GSC | Create This File. | Your gametype script. |
UI Support
File | Action | Purpose |
<root>\raw\mp\gametypesTable.CSV | Edit This File. | List your gametype here under the fileshare and basic training lists. |
Testing The Gametype
You can run your gametype through the UI, or set it by changing the dvar g_GameType (ie. /g_GameType HNS) You'll then need to launch a map, or if you're already playing in a map, do a map restart.