Page 1 of 1

Target Seeking

Posted: Sat Nov 21, 2009 11:20 am
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

Re: Target Seeking

Posted: Sat Nov 21, 2009 1:47 pm
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.

Re: Target Seeking

Posted: Sat Nov 21, 2009 1:58 pm
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.

Re: Target Seeking

Posted: Sat Nov 21, 2009 11:47 pm
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.

Re: Target Seeking

Posted: Sun Nov 22, 2009 12:15 am
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.

Re: Target Seeking

Posted: Sun Nov 22, 2009 10:52 am
by Snork
It is still being a fail even with turnrate at 2.0

=/

Re: Target Seeking

Posted: Sun Nov 22, 2009 5:46 pm
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.

Re: Target Seeking

Posted: Sun Nov 22, 2009 7:31 pm
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

Re: Target Seeking

Posted: Tue Nov 24, 2009 2:20 am
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