Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Rotation limit for gun mounts

The general place to discuss MOD''ing Freelancer!

CW

Post Sat Apr 05, 2003 3:40 pm

Rotation limit for gun mounts

I was trying to add a new gun mount today, everything worked fine except for the rotation limit. It seems that the Max and Min values do not affect a gun mount at all, and I was not able to make it turn more than 20 degrees or so each side. Any clue?

-----------------------------------------------------------
War does not decide who is right, only who is left.

Edited by - CW on 05-04-2003 16:41:29

Post Sat Apr 05, 2003 5:44 pm

Well they do actually have something to do with it. If you remember from math class, angles can be expressed in radians - and the angles for the Min/Max are determined in radians. For example, you want your gun to turn 180 left and 180 right, you would put Min = -3.1415, Max = 3.1415. You'll probably notice that the value for pi ~ 3.1415... so if you want to turn your gun full 360 degrees, use approx. +/- 6.2831 for your values. Here's a list of values:
30deg = pi/6 = 0.5236
45deg = pi/4 = 0.7854
60deg = pi/3 = 1.0472
90deg = pi/2 = 1.5708
and on and on forever.... but anyway, you should be able to infer some values from that.

CW

Post Sat Apr 05, 2003 5:56 pm

I knew all that already. I'm the author who wrote that tutorial on adding gun hardpoints. The problem is, the gun mounts somehow just aren't affected by the Max and Min values. I didn't test this out until today because I fully expected them to work just like the turrets and torpedo launchers... whoops!

-----------------------------------------------------------
War does not decide who is right, only who is left.

Return to Freelancer General Editing Forum