Simply comment out the units you don't want to use.
Like so:
Code: Select all
ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("SIDE\\rep.lvl",
--"rep_inf_ep3_rifleman",
--"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper")
--"rep_inf_ep3_officer",
--"rep_inf_ep3_jettrooper",
--"rep_hover_fightertank",
--"rep_hero_anakin",
--"rep_hover_barcspeeder")
ReadDataFile("SIDE\\cis.lvl",
--"cis_inf_rifleman",
--"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper")
--"cis_inf_officer",
--"cis_inf_droideka",
--"cis_hero_darthmaul",
--"cis_hover_aat")
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")
SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
--soldier = { "rep_inf_ep3_rifleman",9, 25},
--assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
--officer = {"rep_inf_ep3_officer",1, 4},
--special = { "rep_inf_ep3_jettrooper",1, 4},
},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
--soldier = { "cis_inf_rifleman",9, 25},
--assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
--officer = {"cis_inf_officer",1, 4},
--special = { "cis_inf_droideka",1, 4},
}
}
^ That will let you play as only snipers and engineers on either side. A double dash (--) comments out a line, meaning the game won't read it. It's better to comment out lines opposed to deleting them, because if you want to go back to how you had it before, all you have to do is remove the "--" in front of the line of code.
EDIT, Ah, whoops. As you might be able to tell, I haven't modded in a while. I fixed the code.
