Turret Aiming [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
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Turret Aiming [Solved]

Post by Lorul1 »

I've made a new space ship model using softimage and I want some "rep_prop_shipturrets" to shoot at it, but for some reason when they aim to shoot at my new model they shoot above it. They think they are shooting at the model but they are missing so my new ship doesn't take damage. It's almost like there is a invisible dot above my model that they all want to shoot at. How do I getting tireets to shoot at the ship ?
Last edited by Lorul1 on Thu Mar 19, 2015 10:00 pm, edited 1 time in total.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Turret Aiming

Post by jedimoose32 »

Add this to the ship's odf:

Code: Select all

TargetPointOffset	= "0 0 -19"
This is taken directly from the odf for my fortified gate in Darda: Beach. The bounding box centre of that model was above the actual gate, so the AT-TEs were consistently shooting over the gate.

Strangely, these things are usually in the format "X Y Z" but I'm pretty sure Y is the third value in this case. Here's an example from the stock assets, kas2_prop_sea_walldoor_2.odf:

Code: Select all

TargetPointOffset	= "0 0 -3"
(It may be that the values are in the order "X Y Z" but making the Z value negative moves the targeting point toward the 'back' of the model, which would decrease angle θ by lengthening the adjacent and hypotenuse sides of the invisible right triangle formed between the aimer and the target point, but keeping the opposite side constant. However this depends on which way the object is facing, or from which side the aimer is approaching... if they are approaching from 'behind' then decreasing Z would increase θ. Maybe try decreasing the second number instead of the third and report back with your findings?) :P
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: Turret Aiming

Post by Lorul1 »

It worked :D
Thanks Jedimoose32
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Turret Aiming [Solved]

Post by jedimoose32 »

Did you use the second or third value?
Post Reply