Infidel1,
If the weapon model turns into the ship you will need to open the .cmp and edit the rotate values, this can be done using templates.... and can be a bit tricky, by experimenting with values you should be able to get it right, even tho the model wont turn as far it will still follow the targeting reticule.
open your file with the utf editor.. go to the HpWeapon concerned and expand the node.. you will see several things;
Axis
Max
Min
orientation
position
open "orientation"
templates:
This is a gun right side up facing forward:
1.000000
0.000000
0.000000
0.000000
1.000000
0.000000
0.000000
0.000000
1.000000
This is a gun right side up facing backwards
-1.000000
0.000000
0.000000
0.000000
1.000000
0.000000
0.000000
0.000000
-1.000000
This is a gun facing upside down and backwards
1.000000
0.000000
0.000000
0.000000
-1.000000
0.000000
0.000000
0.000000
-1.000000
This is a gun facing upside down and forwards
-1.000000
0.000000
0.000000
0.000000
-1.000000
0.000000
0.000000
0.000000
1.000000
Guns at 90 degree angles involve moving the values of 1 or -1 to different spots in the individual 3 number sets in the vector and you would just have to experiment with those because I don't run into those often. But it can be done.
Using the above templates does 2 things: it will orientate your weapon and will make the calculations freelancer does a lot simpler thereby freeing resources for other things, and it will place your weapon on the right "plane"
However, I had a model where outmounted guns would turn into the side of the ship, by experimentation editing the max and min values with the following values (arrived at by experimenting with decimal values) ..
Max
0.174540
0.000000
Min
-0.785400
0.000000
Thats for one side.....
The other side:
Max
0.785380
0.000000
Min
-0.174540
0.000000
Now these values work and allow the gun to turn out from the ship but not in ..well not very far in....probably about 10 degrees.. (cant be bothered to do the math) also degrees have to be converted to decimals (divide by 255)
Hope this helps..you may have to play with different values to get it right.. but.. not all values work, Freelancer simply does not recognise some of them
tho it really is a whole tutorial subject that has been done to death.. and in many instances incorrectly
Harrier
Retreat[![! ---- I'm too badly messed up now[![!
Edited by - harrier on 11/20/2004 9:14:44 PM