Smart AI

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
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Smart AI

Post by Fierfek »

How do I make one team's AI super-smart?
I am using setteamagressiveness, but it isn't doing much. I tried setplayerteamdifficulty, but that didn't do anything (actually, it crashed the map).
What other codes are there for smart AI?
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: Smart AI

Post by bobfinkl »

The info here is gonna make your AI as good as possible without some pretty major scripting. http://www.secretsociety.com/forum/down ... F2Docs/AI/
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Smart AI

Post by Xavious »

Set up good planning and use hint nodes. The lua changes will only make the AI more accurate, which can make the game very irritating.
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Smart AI

Post by Eggman »

There's really no way to make the AI "smarter." Xavious pretty much hit the nail on the head - all you can do is set up good planning, barriers, and hint nodes.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Smart AI

Post by Fierfek »

I have one problem with my AI - they are unequally stupid.
I placed a mine hintnode. One of the AI walks up to it, and places a detpack. Then, he blows himself up, and damages his allies around him too.
How do I fix this? Is it possible?
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Smart AI

Post by mswf »

Place them better. Have you edited the detpack that you used?
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Smart AI

Post by Fierfek »

mswf wrote:Place them better. Have you edited the detpack that you used?
No.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Smart AI

Post by mswf »

Is the detpack in the direct path of the AI that places them? Are there enemy units/object near when they are being placed?
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Smart AI

Post by Fierfek »

mswf wrote:Is the detpack in the direct path of the AI that places them? Are there enemy units/object near when they are being placed?
No, I don't think so.
I'm just removing the node. I'll live.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Smart AI

Post by AQT »

You can fix the suicide bomber problem by adding this line to the detpack's ODF

Code: Select all

TargetEnemy             = "1"
somewhere under [Properties].
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Smart AI

Post by Fiodis »

And speaking of ODF codes, there's a code you can put in weapon ODFs to make the AI more accurate with them (that's how the game makes sniper AI more accurate than riflemen, etc.). I can't recall it off the top of my head, but I think it's something along the lines of SetBubbleSize. Not sure; you may want to check some weapon parent ODFs. It's in there.
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Smart AI

Post by RogueKnight »

Fiodis wrote:And speaking of ODF codes, there's a code you can put in weapon ODFs to make the AI more accurate with them (that's how the game makes sniper AI more accurate than riflemen, etc.). I can't recall it off the top of my head, but I think it's something along the lines of SetBubbleSize. Not sure; you may want to check some weapon parent ODFs. It's in there.
Hm... I always thought it was odd how all the AI's shots seem to go around me, then BAM! right in the middle of a killing spree, a random AI headshots me with a sniper.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Smart AI

Post by Fiodis »

Yes, I had always thought it odd how the riflemen always miss me and then I'm sniped in the toe by an AI half a map away. This is the reason why.
Post Reply