ai fighting through walls

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
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

ai fighting through walls

Post by Dakota »

ok i've made a cave map with a bunch of rhen var ice caves, hoth tunnels, and even death star thingamajigs. i've set up the planning so that the ai walk around in the tunnels and get cps but yet i've found a spot where the ai fight if 2 cps are on the opposite teams the ai walk to the wall on both sides and begin firing at the wall trying to kill each other.

is there anyway i can make the ai stop doing this or maybe set them up to have a smaller scanning range or what ever they use to find targets just so that they walk away from the wall and follow the path i put there. some bots follow the path while others attack the wall.


[unrelated] i also went and put on a different area of the map a place on top of land with caves under it. the planning that i set up in those areas are messy and instead of the ai on the top of the ground following the top of the ground path they all just follow the path underground which just leads them all into running into a cliff face. it seems that in uber mode all of the ai want to spawn at places that you don't want them to. the ai got in a huge enough cluster there to crash the game to the desktop from over load. i'm wondering if i can weigh the path on the top of the ground so that the ai take it instead of the one under the ground. i forgot which button it is to weight things though. i went to the weighting tab yet there wasn't a box to type the number in like last time i did this. if someone could tell me what i need to do again it would be quite helpful.
User avatar
willinator
Major
Major
Posts: 517
Joined: Sun Mar 13, 2011 3:11 pm
Projects :: [Coming of the Sentinels]
Games I'm Playing :: SWBF2 Minecraft Halo
xbox live or psn: PC pwns all!
Location: The rings of Saturn...

Re: ai fighting through walls

Post by willinator »

I believe that you could solve your main problem one of two ways:
1. You could place barriers between the command posts.
if that doesn't work, then
2.Place some sort of friendly entity between the command posts so the AI don't fire

Now, for your second problem I can solve in one phrase: You cannot have more than one path on top of each other! It will always cause the problems you describe! Anything you try has been done many times before.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: ai fighting through walls

Post by Dakota »

at 1 i can't put the barriers underground accurately so i will try the #2 idea

for phrase 2, i know i can't put two paths over the other but i only noticed that i did after playtesting the map.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: ai fighting through walls

Post by Dakota »

thanks for the help.
User avatar
Ginev
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Thu Apr 02, 2009 7:02 am
Projects :: Remaking FR Battlefront 3 Tatooine map.
Games I'm Playing :: nothing for now
xbox live or psn: No gamertag set
Location: Bulgaria

Re: ai fighting through walls

Post by Ginev »

For the first problem once i reduce the range of all trooper weapons so they stop fire the walls to try kill the enemy from the other side.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: ai fighting through walls

Post by Dakota »

i was thinking about that but in some places i need weapons with range and its mainly the snipers doing this.
Post Reply