Less "conquest" in conquest mode

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
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Less "conquest" in conquest mode

Post by Sandtrooper956 »

Is there I can make it so the AI focus less on trying to capture the CP's in conquest mode and more on trying to kill enemy units?

I tried removing the capture regions but once I do that all the AI like to huddle around a single command post trying to claim it.

I still want the AI to move in on the command posts, but not have it so they'd rather try to take it then actually attack the player.
And like I said earlier, it would be cool if they wouldn't all try to huddle around it.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Less "conquest" in conquest mode

Post by Kingpin »

Are you talking about the stock maps or your custom maps? Also, look at hero assault scripts. They don't capture objectives.
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Less "conquest" in conquest mode

Post by Sandtrooper956 »

I'm talking about a custom map I'm making. So I should copy something from the hero assault script into my conquest script? Like the objectives or something?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Less "conquest" in conquest mode

Post by Marth8880 »

All you need to do is add a Deathmatch AI goal for each team. Personally, I'd recommend clearing both teams' goals, and then setting their Conquest and Deathmatch goals manually.

Relevant documentation: http://www.secretsociety.com/forum/down ... IGoals.txt

Oh, and make sure that you're doing all of this in the ScriptPostLoad() section of your mission script.
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Less "conquest" in conquest mode

Post by Sandtrooper956 »

Awesome, thanks. Is there anyway I could get some help getting deathmatch working? I'm a bit confused.

This happens in the ***era_con.lua right? Or am I wrong about that?
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

Re: Less "conquest" in conquest mode

Post by razac920 »

Yes in ***era_con.lua files, below the line

Code: Select all

conquest:Start()
you will want to add something like

Code: Select all

ClearAIGoals(ATT)
ClearAIGoals(DEF)
AddAIGoal(ATT,"Deathmatch",100)
AddAIGoal(ATT,"Conquest",100)
AddAIGoal(DEF,"Deathmatch",100)
AddAIGoal(DEF,"Conquest",100)
The numbers in the AddAIGoal commands are weights, if team ATT has two goals each with weight 100, then half (100/200) of the team will capture CPs and the other half will just search and destroy. Adjust weights accordingly!
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Less "conquest" in conquest mode

Post by Sandtrooper956 »

So if I wanted to have all the AI just search and destroy, would I just remove these parts? Or would I also change both 100's to 200?
AddAIGoal(ATT,"Conquest",100)
AddAIGoal(DEF,"Conquest",100)
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

Re: Less "conquest" in conquest mode

Post by razac920 »

If you want all AI to "search and destroy", aka Team deathmatch/hunt, just remove the addaigoal lines that mention conquest. Setting the Deathmatch weights to 200 would make 200/300 = 2/3 of them do deathmatch stuff, and 1/3 would still try to capture CPs.

Symbolically, if each team's Conquest weight is x and Deathmatch weight is y, then x/(x+y) of each team will do conquest stuff and y/(x+y) of each team will do deathmatch stuff. Not including the AI goal is equivalent to it having a weight of 0.
Post Reply