Page 1 of 1

Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 12:54 am
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.

Re: Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 1:45 am
by Kingpin
Are you talking about the stock maps or your custom maps? Also, look at hero assault scripts. They don't capture objectives.

Re: Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 3:01 am
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?

Re: Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 3:06 am
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.

Re: Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 12:18 pm
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?

Re: Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 9:33 pm
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!

Re: Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 9:47 pm
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)

Re: Less "conquest" in conquest mode

Posted: Sun Apr 17, 2016 9:55 pm
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.