Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: bobbtmann on October 19, 2008, 08:02:51 pm
-
Hi! So I'm in the process of making a small cruiser with side mounted multi-part turrets. I've made a test cube with the turret on it, and have run into problems. When I run the turret in the game, the centre for the turret changes. The computer picks some point in the middle of the box as it's rotation point. I've tried unglueing everything and remaking the heirarchy, but to no avail.
So does anyone have an idea as to why this thing doesn't work? I've attached a truespace screenshot, a side view, to show what I've got set up.
[attachment deleted by Tolwyn]
-
Multipart turrets can be only on top and bottom of the ship. on any other location they do not work properly.
Also, from experience the firepoint light needs to be under the turret base, not the turret arm.
-
The any-angle multipart turrets still haven't made it into the main release?
-
Multipart (base/barrel) should now be supported in the latest releases. The firepoint is where the bolt originates from.
-
i know that it has been discussed a lot, but i dont think they actually were. there's a way around tho which involves using the animation code in the pof itself, but i'll leave the explaining for that one to someone more experienced.
[edit]@scoob, side multiparts have been implemented? :wtf:
-
i know that it has been discussed a lot, but i dont think they actually were. there's a way around tho which involves using the animation code in the pof itself, but i'll leave the explaining for that one to someone more experienced.
[edit]@scoob, side multiparts have been implemented? :wtf:
Well the ones I use for saga internals (which should be the same) support it.
Sorry only pic i have of it in action
(http://img.photobucket.com/albums/v356/Shodan_AI/SideTurrets.jpg)
-
Ah, the famous GTVCube. ;)
-
Pretty much, actually the greebled GTV Cube LOL (actually just a bunch of boxes to show forward). The two turrets are at 45 degrees.
-
So when I specify 72 degrees in the shp.tbm for both axis, and stick my normal out the side of the ship, it's not going to work? Does the normal have anything to do with the rotation of the base and the arm?
-
You have to get the up and forward vector, those in the subobjects (turret) properties.
-
i know that it has been discussed a lot, but i dont think they actually were. there's a way around tho which involves using the animation code in the pof itself, but i'll leave the explaining for that one to someone more experienced.
[edit]@scoob, side multiparts have been implemented? :wtf:
So we can mount multi part turrets on the side of a cap ship. Do we set them up the same as a top mounted MP turet?
-
Basically yes, however you do need to add the $uvec and $fvec entries to the subobject properties.
-
in other words, you need to tell the subobject which direction is up and which direction is forward for it's local frame of reference.