Flight Maneuvers Classic Remastered - HWRM/KarosGraveyard GitHub Wiki

Flight maneuvers from HW classic use to be in one big file located in /scripts/flightmaneuvers.lua

This was changed in remastered it seeems, to where "flightmaneuvers" now has its own folder, and each formation with its own file.

So what previously looked like this:

/scripts/flightmaneuvers.lua

flightManeuvers = {}
flightManeuvers[0] = {
    name = "BarrelRoll",
    points = {
        {
            forward = {
                0,
                0,
                1
            },
            up = {
                0,
                1,
                0
            },
            wishForwardBackwardSpeed = 1,
            wishLeftRightSpeed = -2,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0.04,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                0,
                1
            },
            up = {
                1,
                0,
                0
            },
            wishForwardBackwardSpeed = 1,
            wishLeftRightSpeed = -2,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0.04,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                0,
                1
            },
            up = {
                0,
                -1,
                0
            },
            wishForwardBackwardSpeed = 1,
            wishLeftRightSpeed = -2,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0.04,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                0,
                1
            },
            up = {
                -1,
                0,
                0
            },
            wishForwardBackwardSpeed = 1,
            wishLeftRightSpeed = -2,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0.04,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                0,
                1
            },
            up = {
                0,
                1,
                0
            },
            wishForwardBackwardSpeed = 1,
            wishLeftRightSpeed = -2,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0.04,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        }
    }
}
flightManeuvers[1] = {
    name = "Loop",
    points = {
        {
            forward = {
                0,
                0,
                1
            },
            up = {
                0,
                1,
                0
            },
            wishForwardBackwardSpeed = 0.3,
            wishLeftRightSpeed = 0,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                1,
                0
            },
            up = {
                0,
                0,
                -1
            },
            wishForwardBackwardSpeed = 0.3,
            wishLeftRightSpeed = 0,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                0,
                -1
            },
            up = {
                0,
                -1,
                0
            },
            wishForwardBackwardSpeed = 0.3,
            wishLeftRightSpeed = 0,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                -1,
                0
            },
            up = {
                0,
                0,
                1
            },
            wishForwardBackwardSpeed = 0.3,
            wishLeftRightSpeed = 0,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        },
        {
            forward = {
                0,
                0,
                1
            },
            up = {
                0,
                1,
                0
            },
            wishForwardBackwardSpeed = 0.3,
            wishLeftRightSpeed = 0,
            wishUpDownSpeed = 0,
            wishRotationXSpeed = 0,
            wishRotationYSpeed = 0,
            wishRotationZSpeed = 0,
            timeDelay = 0,
            ignoreOrientation = 0,
            accelerationMultiplier = 1,
            rotationAccelerationMultiplier = 1
        }
    }
}

Now becomes this:

/scripts/formations/barrelroll.lua

name = "BarrelRoll"

delayBase = 0.0
delayPop = 0.0
delayPopSqr = 0.125

points =
{
	{
	   forward                           = {0.000000, 0.000000, 1.000000},
	   up                                = {0.000000, 1.000000, 0.000000},
	   wishForwardBackwardSpeed          = 0.700000,
	   wishLeftRightSpeed                =-0.700000,
	   wishUpDownSpeed                   = 0.000000,
	   wishRotationXSpeed                = 0.000000,
	   wishRotationYSpeed                = 0.000000,
	   wishRotationZSpeed                = 0.000000,
	   timeDelay                         = 0.040000,
	   ignoreOrientation                 = 0,
	   accelerationMultiplier            = 1.1500000,
	   rotationAccelerationMultiplier    = 1.1500000,
	},
	{
	   forward                           = {0.000000, 0.000000, 1.000000},
	   up                                = {1.000000, 0.000000, 0.000000},
	   wishForwardBackwardSpeed          = 0.700000,
	   wishLeftRightSpeed                =-0.700000,
	   wishUpDownSpeed                   = 0.000000,
	   wishRotationXSpeed                = 0.000000,
	   wishRotationYSpeed                = 0.000000,
	   wishRotationZSpeed                = 0.000000,
	   timeDelay                         = 0.040000,
	   ignoreOrientation                 = 0,
	   accelerationMultiplier            = 1.1500000,
	   rotationAccelerationMultiplier    = 1.1500000,
	},
	{
	   forward                           = {0.000000, 0.000000, 1.000000},
	   up                                = {0.000000, -1.000000, 0.000000},
	   wishForwardBackwardSpeed          = 0.700000,
	   wishLeftRightSpeed                =-0.700000,
	   wishUpDownSpeed                   = 0.000000,
	   wishRotationXSpeed                = 0.000000,
	   wishRotationYSpeed                = 0.000000,
	   wishRotationZSpeed                = 0.000000,
	   timeDelay                         = 0.040000,
	   ignoreOrientation                 = 0,
	   accelerationMultiplier            = 1.1500000,
	   rotationAccelerationMultiplier    = 1.1500000,
	},
	{
	   forward                           = {0.000000, 0.000000, 1.000000},
	   up                                = {-1.000000, -0.000000, 0.000000},
	   wishForwardBackwardSpeed          = 0.700000,
	   wishLeftRightSpeed                =-0.700000,
	   wishUpDownSpeed                   = 0.000000,
	   wishRotationXSpeed                = 0.000000,
	   wishRotationYSpeed                = 0.000000,
	   wishRotationZSpeed                = 0.000000,
	   timeDelay                         = 0.040000,
	   ignoreOrientation                 = 0,
	   accelerationMultiplier            = 1.1500000,
	   rotationAccelerationMultiplier    = 1.1500000,
	},
	{
	   forward                           = {0.000000, 0.000000, 1.000000},
	   up                                = {-0.000000, 1.000000, 0.000000},
	   wishForwardBackwardSpeed          = 0.700000,
	   wishLeftRightSpeed                =-0.700000,
	   wishUpDownSpeed                   = 0.000000,
	   wishRotationXSpeed                = 0.000000,
	   wishRotationYSpeed                = 0.000000,
	   wishRotationZSpeed                = 0.000000,
	   timeDelay                         = 0.040000,
	   ignoreOrientation                 = 0,
	   accelerationMultiplier            = 1.1500000,
	   rotationAccelerationMultiplier    = 1.1500000,
	},
}