Remove all AI from map? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
spearmint1934
Private Recruit
Posts: 15
Joined: Mon Dec 30, 2013 7:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBFII
xbox live or psn: No gamertag set

Remove all AI from map? [Solved]

Post by spearmint1934 »

I'm trying to make a ''private map'' for me and my mates on SWBFII. Problem is, the AIs pretty much ruin the concept of it being a ''private map'' So is there a way to remove all AI?


EDIT: Nevermind, I found a way to do it :D

(Replace ABC with ModID)

How I did it: In data_ABC/common/scripts/ABC there are the..

- ABCc_con.lua
- ABCc_con.lua.bak
- ABCg_con.lua
- ABCg_con.lua.bak

You have to change the : (Example: If I want to remove all Imperial troopers from my map)
*

Code: Select all

			soldier	= { "all_inf_rifleman",9, 25},
			assault	= { "all_inf_rocketeer",1,4},
			engineer = { "all_inf_engineer",1,4},
			sniper	= { "all_inf_sniper",1,4},
			officer	= { "all_inf_officer",1,4},
			special	= { "all_inf_wookiee",1,4},
To:

*

Code: Select all

			
			soldier	= { "imp_inf_rifleman",0, 0},
			assault	= { "imp_inf_rocketeer",0,0},
			engineer = { "imp_inf_engineer",0,0},
			sniper	= { "imp_inf_sniper",0,0},
			officer	= { "imp_inf_officer",0,0},
			special	= { "imp_inf_dark_trooper",0,0},
In the SetupTeams section in your -

- ABCc_con.lua
- ABCc_con.lua.bak
- ABCg_con.lua
- ABCg_con.lua.bak

*Make sure you're removing the AI from the right team you want!
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Remove all AI from map? [Solved]

Post by AceMastermind »

You don't need to edit nor should you touch files ending in '.bak', those are backup files that you can use to restore your mission luas if you ever screw up something beyond repair.
spearmint1934
Private Recruit
Posts: 15
Joined: Mon Dec 30, 2013 7:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBFII
xbox live or psn: No gamertag set

Re: Remove all AI from map? [Solved]

Post by spearmint1934 »

Oh. Ok thanks. :yes:
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: Remove all AI from map? [Solved]

Post by GAB »

Correct me if I am wrong, but can't you set any map to have no AI by just adjusting the options in the instant action screen for multiplayer sessions?
Post Reply