What determines the target lock effect location? [Solved]

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
minilogoguy18
Master Bounty Hunter
Master Bounty Hunter
Posts: 1512
Joined: Wed Nov 09, 2005 11:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

What determines the target lock effect location? [Solved]

Post by minilogoguy18 »

Having a strange problem with the B-Wing, always thought that the engine used the dummyroot to lock onto targets for seeking ordinance but for some reason with the B-Wing it's off to the side. Anyone know how to make it in the center of the craft or how to define where the lock on should attach?
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: What tells the engine where to place the target lock eff

Post by DarthD.U.C.K. »

i think what you need is that line, from the atats odf:

Code: Select all

TargetableCollision		= "p_front_left_thigh"
TargetableCollision		= "p_front_left_shin"
it allows to/makes the targetmarking appear on the legs.
User avatar
minilogoguy18
Master Bounty Hunter
Master Bounty Hunter
Posts: 1512
Joined: Wed Nov 09, 2005 11:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: What tells the engine where to place the target lock eff

Post by minilogoguy18 »

That works, I'll just make the main engine section of the b-wing targetable since I had to use primitives for the entire collision since there isn't an unanimated part.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: What tells the engine where to place the target lock eff

Post by Noobasaurus »

DarthD.U.C.K. wrote:i think what you need is that line, from the atats odf:

Code: Select all

TargetableCollision = "p_front_left_thigh"
TargetableCollision = "p_front_left_shin"
it allows to/makes the targetmarking appear on the legs.
That means you can make it lock on anywhere? AWESOME, never knew that! :shock:
User avatar
minilogoguy18
Master Bounty Hunter
Master Bounty Hunter
Posts: 1512
Joined: Wed Nov 09, 2005 11:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: What determines the target lock effect location? [Solved

Post by minilogoguy18 »

Yeah not sure exactly how the engine figures where to place the targeter but on both the B-Wing and Lambda it appears off, possibly to do with their size and COG being different between landed and flying (my guess). This seems to work well and rather than using the objects local center it does it by its COG. Gonna change this for all my custom ships.
Post Reply