Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Starman01 on July 07, 2006, 01:41:10 pm

Title: Problem with firing points
Post by: Starman01 on July 07, 2006, 01:41:10 pm
Hello,

I noticed a problem with the firing points on my turrets, and I fear it might be a error in my pof-files. But since no one else ever mentioned that error, it can only be that way.  My problem is, that while the firing points are all correctly centered in the turret-barrels, the ingame shot itself
isn't created on the top of the barrel, but beside it (even if the turret-arm isn't moving).

It somehow looks like that

/====\              ***bolt***      ***bolt***    *** bolt***
|        |=====
\====/

I hope this strange drawing make clear what I'm trying to say :)

My turrets are setup like this :

The turretbase is rotating around the Z-Axis, and the turretarm is doing so also. Someone once mentioned, that he has his turret-arm rotating around the Y-Axis (or whatever PCS is using as default). Maybe I set the axis different in Truespace, but the turret is working correctly ingame (except for the location where the bolt is created). Our effect-files seem to be centered properly, so I doubt thats the problem.

Anyone got an Idea that may help me ?
Title: Re: Problem with firing points
Post by: Axem on July 07, 2006, 02:13:25 pm
We've had this problem with our ships (well ship atm) in SoL. We noticed that the muzzleflashes were appearing above the barrel, sorta like yours shots are.

We fixed it by redoing the turret arm axes. If they weren't centered exactly as they should be, the firing point will drift off from the turret arm when its not fully upright. If you saw the turret fire when its pointing up, it would look normal.
Title: Re: Problem with firing points
Post by: Nuke on July 07, 2006, 02:15:57 pm
first off be sure you converted with the barrel and firing point facing up. if thats not the problem then check your names and your firing points, something might have confused autogen. check the turret data with pcs or modelview make sure everything looks right.  it could be that one of the turret parts has an offset center. you can usually fix this with a big box intersect. take a cube and place it at the origin you want and make sure its big enough to encompas the entire turret part, then do an intersect operation with the cube selected performing the operation on the object.