SWBFGamers

Gaming for the Original SWBF1 and SWBF2/other games => Star Wars Battlefront 2 (2005 Original) => Topic started by: Darth_Sion on June 21, 2018, 02:37:23 PM

Title: Add more bots (solved)
Post by: Darth_Sion on June 21, 2018, 02:37:23 PM
Hi,
I want to have more bots on my map i edit the lua files but the number don't change,
set reinforcements and set the classes works but the number of bots don't work :

imp = {
         team = IMP,
         units = 92,
         reinforcements = 680,
         soldier   = { "imp_inf_rifleman",30, 40},
         assault   = { "imp_inf_rocketeer",10,10},
         engineer = { "imp_inf_engineer",25,25},
         sniper   = { "imp_inf_sniper",10,10},
         officer   = { "imp_inf_officer",2,2},
         special   = { "imp_inf_dark_trooper",3,5},
      },
   }
   
    AddUnitClass(IMP, "imp_inf_marine",10,10)


-It's the nearly settings I want (+/-) (more or less, I don't care but more than 32,yes)
-On BF2
-if there is somethings else to edit
-Thanks if you can help me or redirect me to a link I perhaps missed,...
Title: Re: Add more bots
Post by: Led on June 21, 2018, 03:33:20 PM
Is this for Multi Player or Single Player?
Title: Re: Add more bots
Post by: Darth_Sion on June 21, 2018, 04:21:31 PM
Single player.
Title: Re: Add more bots
Post by: SleepKiller on June 21, 2018, 07:17:21 PM
I believe you need to call `SetUberMode(1)` before `SetupTeams` in order to get more than 32 AI per team in SWBFII.
Title: Re: Add more bots
Post by: Darth_Sion on June 22, 2018, 01:38:58 AM
Yeh it works thanks.  :cheer:
EhPortal 1.34 © 2024, WebDev