Force Bots To Use Turrets

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
Zeddix
Recruit Womprat Killer
Posts: 5
Joined: Sat May 09, 2009 9:51 am

Force Bots To Use Turrets

Post by Zeddix »

Hey Guys,
i hope it's a simply question. Is it possible to force bots to use turrets everytime?
I mean if a bot comes close to a turret.
Maybe set priority of turrets for bots higher?
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Force Bots To Use Turrets

Post by MileHighGuy »

try placing a hintnode (if there is one)
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: Force Bots To Use Turrets

Post by Eggman »

As far as I know, the AI is set to do that automatically. I believe one of the docs about hint nodes mentions that turrets act as their own hint nodes, so AI will use them if they come within a certain distance, the same as with vehicles (vehicle .odfs have a line that allows you to control the radius at which AI will notice them; I'm not sure if it works with turrets).
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: Force Bots To Use Turrets

Post by Fiodis »

Of course, if all you want is to have a turret that is always on, you could use the ODF line SelfPiloted = 1. (At least I think that's the line. Check through the auto turret ODF, it has it I think.) The upside: it's always in use by the AI. The downside: you can't enter it.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Force Bots To Use Turrets

Post by MileHighGuy »

its Pilottype = "self"

and i place hubs around turrets to get them to get in easier
Zeddix
Recruit Womprat Killer
Posts: 5
Joined: Sat May 09, 2009 9:51 am

Re: Force Bots To Use Turrets

Post by Zeddix »

Hmm okay,
not a brilliant idea, but maybe practical, if it works :).
I will check it out^^.

Thanks
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Force Bots To Use Turrets

Post by DarthD.U.C.K. »

if you make it autopiloted it will shot without being manned
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Force Bots To Use Turrets

Post by FragMe! »

Have a look at shipped Kamino or Mos Eisley as I know, from being shot at a lot by them, those are the two maps I can think off the top where AI religously go to the turrets. See if they have hint nodes or pathing that makes the AI want to do that.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Force Bots To Use Turrets

Post by MercuryNoodles »

If I remember correctly, Pandemic also changed how AI prioritize the presence of an empty turret. If there's an enemy nearby, it will ignore the turret to face the threat. This was done because AI used to ignore being shot at in order to enter a turret. I can't seem to find the source of the info, however, despite being sure this was in a doc somewhere.

The turrets are technically vehicles, according to the docs, so perhaps you could try altering SetAIVehicleNotifyRadius to a higher value. It may not increase frequency of use in all cases, but it should increase the likelyhood of grabbing the attention of an idle unit.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Force Bots To Use Turrets

Post by FragMe! »

MercuryNoodles wrote:If I remember correctly, Pandemic also changed how AI prioritize the presence of an empty turret. If there's an enemy nearby, it will ignore the turret to face the threat. This was done because AI used to ignore being shot at in order to enter a turret. I can't seem to find the source of the info, however, despite being sure this was in a doc somewhere.
Actually I find it the opposite on Kamino you start shooting at them and they go :runaway: and run to the turret where it is easier to shoot them because they have stopped doing the little deking dance they like to do.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Force Bots To Use Turrets

Post by MercuryNoodles »

Well, it may be that I'm thinking of the change documented in the weapon notes that forces a turret to face one direction. I was certain what I posted about was changed and documented somewhere, but this goes to show how vivid my imagination can be. Several document searches and a glance at psych0fred's board turned up nothing. :P
Post Reply