Target Seeking

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
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Target Seeking

Post by Snork »

How can you make rockets/emp launchers be able to seek units like they do vehicles?



Edit:

Code: Select all

AITargetPerson        = "1"
AITargetAnimal        = "1"
AITargetDroid         = "1"
AITargetVehicle       = "0"
AITargetBuilding      = "0"
Changing this in the odf made it possible to lock onto units but when I'd fire the thing wouldn't seek, it just went straight as usual. HALP ;O
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: Target Seeking

Post by FragMe! »

You need to put the same thing in the odf file but remove the AI part.
Example
TargetPerson = "1"

You still need the AI ones too if you want the AI to be able to target as well.

I have the same thing in Naboo Sewers Hunt mode, it is quite fun actually.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 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: Atlanta, GA xfire=myers73 IngameName=mYers

Re: Target Seeking

Post by myers73 »

you might also want to mess with the turn rate, look in the magna guards bulldog weapon odf. I did this once, it was quite comical how good the AI were with a 0 lockon time.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Target Seeking

Post by Snork »

Well thanks for the help, but I'm an idiot and copied the wrong section.

Code: Select all

TargetPerson        = "1"
TargetAnimal        = "1"
TargetDroid         = "1"
TargetVehicle       = "0"
TargetBuilding      = "0"
It was like this when I tested it so.... uhm


I could lock onto targets and the spinny thing would turn red (spinny thing... thats a scientific term) but the rocket wouldn't seek it just goes straight as normal.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Target Seeking

Post by AQT »

As myers mentioned, you would have to edit the value of the TurnRate parameter in your rocket's ordnance ODF.

Code: Select all

TurnRate                = "0.0"
As long as the value is greater than zero, it should seek.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Target Seeking

Post by Snork »

It is still being a fail even with turnrate at 2.0

=/
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: Target Seeking

Post by FragMe! »

This is what I put into the cis_weap_inf_rocket_launcher.odf to make it lock on.

Code: Select all

[Properties]

GeometryName        = "cis_weap_inf_launcher"
HighResGeometry     = "cis_1st_weap_inf_launcher"
OrdnanceName        = "cis_weap_inf_rocket_launcher_ord"

TargetEnemy         = "1"

TargetPerson        = "1"
TargetDroid         = "1"

AITargetPerson        = "1"
AITargetDroid         = "1"
Although I am pretty sure now you don't need the targetdroid part unless you are trying to shoot local droids on Rend's Mos Eisley map (which since they are friends you can't do but it was the best example I could come up with on short notice)

And as mentioned I know it works, what is fun is once you get a lock on aim upwards slightly and watch how the rocket tracks.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Target Seeking

Post by Snork »

First I'm gonna try cleaning the sides, then I'll try using a rocket launcher instead of emp.
if it still doesn't work I'll have to think up some other weapon to match a lightning sniper rifle =D
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: Target Seeking

Post by DarthD.U.C.K. »

FragMe! wrote: Although I am pretty sure now you don't need the targetdroid part unless you are trying to shoot local droids on Rend's Mos Eisley map (which since they are friends you can't do but it was the best example I could come up with on short notice)
rends made the local droids (except the imp-spydroid) normal units because they didnt follow AIpaths so you wouldnt even need that for mos eisley :P
Post Reply