Hunt mode is a shipped mode that uses the elimination template to pit (usually) the natives of a planet against another side. The shipped maps Endor, Hoth, Kashyyyk, Naboo, and Tatooine each have a hunt mode.
Adding Hunt Mode
The following steps show how to add a hunt mode to a player created map. ABC represents the three letter name for the map, and g will be used for the era, though of course c can replace it. For ease, the Hoth hunt script will be modified instead of creating a whole new script.
1: Copy the hot1g_hunt.lua from …\BF2_ModTools\assets\scripts\HOT into …\BF2_ModTools\data_ABC\Common\scripts\ABC
2: Open it and change this line:
ReadDataFile("HOT\\hot1.lvl", "hoth_hunt")
to this
ReadDataFile("dc:ABC\\ABC.lvl", "ABC_hunt")
3: Navigate to …\BF2_ModTools\data_ABC\Common\mission
4: Make then open a new text file called ABCg_hunt.req
5: Add the following lines to the file:
ucft
{
REQN
{
"script"
"ABCg_hunt"
}
}
6: Navigate to …\BF2_ModTools\data_ABC\Common
7: Open mission.req and add this line:
"ABCg_hunt"
(With the quotes)
Next to the other lines that look like this:
"ABCg_con"
8: Navigate to …\BF2_ModTools\data_ABC\addme
9: Open the addme.lua and add
mode_hunt_g = 1
right after
mapluafile = "ABC%s_%s", era_g = 1, era_c = 1
10: Go to the AddDownloadableContent section and a new line:
AddDownloadableContent("ABC","ABCg_hunt",4)
11: Open up your map in Zeroeditor
12: Click on Active layer Change button
13: Create a new layer and rename it "hunt"
14: Click on game modes configure
15: Remove it from common layers
16: Type in hunt into the mode name box and then click add
17: Click on the add button in Layers Used and add the hunt layer
18: Click on update REQs and MRQs and navigate to your ABC.req
19: Add your command posts and layer specific objects
20: Save and Munge, then play away!
This method holds true for all gamemodes so just replace "hunt" with another gamemode name and you're all set.