Skip to content

JSINavBall

MOARdV edited this page Apr 14, 2016 · 2 revisions

What it does

JSINavBall is a replacement for InternalNavBall. It provides two additional customization options for simulated navball props: a variable that can switch the navball off, and a rate limiter to control how quickly the navball can track from one position to another.

Where to use it

Use it on a navball prop where either of the configuration options would improve the gameplay experience.

How to use it

JSINavBall is a replacement for InternalNavBall. It is provides two extra configuration options for the stock navball prop:

MODULE
{
    name = JSINavBall 
    navBallName = NavSphereRotGO
    variableName = BRAKES
    range = -0.1, 0.1
    maxAngleChange = 180
}
  • navBallName -- Required. Exactly like the stock navball's config.
  • variableName -- Required. Name of the variable used to enable / disable the nav ball.
  • range -- Required. A comma-separated pair of numbers or defined variables that enable the navball. When the variable in variableName is between these two values, the nav ball is enabled.
  • maxAngleChange -- Optional, defaults to 180. The maximum distance the navball can move per second, measured in degrees. This provides for smoothing when the navball is switched on and it has to rotate a long distance to activate.

In the above example, the navball functions only when the brakes are off (yes, it's a stupid way to enable the navball - it's just for illustration).