module Base
{
	vehicle SemiTruckLite
    {
        lightbar
        {
            leftCol = 1;0.73;0.2,
            rightCol = 1;0.73;0.2,
        }

        template! = Rotators.SemiTruckTemplate,
        offRoadEfficiency = 2,

        model
        {
            file = Rotators.SemiTruckLiteBase,
            scale = 1.1400,
            offset = 0.0000 0.6491 0.0000,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_white,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_Black,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_red,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_blue,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_CaspianBlue,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_yellow,
        }

        skin
        {
            texture = Vehicles/Vehicles_rSemiTruck_Green,
        }

        skin
        {
            texture = Vehicles/Vehicles_rSemiTruck_USMCgreen,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_CaspianBlue,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_yellow,
        }

        skin
        {
            texture = Vehicles/Vehicles_rSemiTruck_Green,
        }

        skin
        {
            texture = Vehicles/Vehicles_rSemiTruck_USMCgreen,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_blue_purple,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_bronze,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_blue_amber,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_blue_crimson,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_blue_lime,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_skyblue,
        }

        skin
        {
            texture = Vehicles/vehicles_rSemiTruck_blue_neon_pink,
        }

        mass = 782,
        extents = 1.8596 1.8246 6.2807,
        physicsChassisShape = 1.8596 1.8246 6.3158,
        centerOfMassOffset = 0.0000 0.8246 0.0000,
        shadowExtents = 2.1890 7.0329,
        shadowOffset = 0.0000 0.0479,
        engineForce = 4250,
        maxSpeed = 50f,
        engineLoudness = 125,
        engineQuality = 85,
        brakingForce = 25,
        stoppingMovementForce = 3.0f,
        rollInfluence = 0.2f,
        steeringIncrement = 0.04,
        steeringClamp = 0.25,
        suspensionStiffness = 65,
        suspensionCompression = 4.83,
        suspensionDamping = 3.88,
        maxSuspensionTravelCm = 10,
        suspensionRestLength = 0.16f,
        wheelFriction = 0.9f,
        seats = 2,
        template = GloveBox,
        template = PassengerSeat2,

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.3158 -0.0439 1.1053,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 1.1491 -0.5526 0.9561,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.3158 -0.0175 1.1316,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.1228 -0.5526 0.9649,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        part GasTank
        {
            durability = 10,

            model GasTank
            {
                file = Rotators.SemiTruckLiteGasTank,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Windshield/part/WindshieldRear,

        part WindshieldRear
        {
            table install
            {
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                requireUninstalled = ArmorRear,
                recipes = Intermediate Mechanics,
            }

            table armor
            {
                logic = RotatorsLib,
                condition = 39,

                needs =
                {
                    part = ArmorRear,
                    condition = 1,
                }
            }
        }

        template = Rotators.SemiTruckArmor/part/ArmorRear,
        template = Rotators.SemiVanSpareTire/part/SpareTire,

        part SpareTire
        {
            model SpareTire
            {
                file = Rotators.SemiTruckLiteSpareTire,
                rotate = 0.0000 0.0000 0.0000,
                scale = 1,
                offset = 0.0000 0.0000 0.0000,
            }
        }

        area SpareTire
        {
            xywh = 1.2105 0.3333 0.6140 0.8596,
        }

        area TruckBed
        {
            xywh = -1.3158 -0.3509 0.8246 1.1754,
        }

        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.6053 2.4002,
            extents = 1.2632 0.8772 1.4386,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.9035 -0.5819,
            extents = 1.7895 1.0000 1.0175,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 -0.0058 -1.1491,
            extents = 1.7895 0.0877 3.9474,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -0.9123 3.2456,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }

        attachment trailerTruck
        {
            offset = 0.0000 -0.3158 -1.9649,
            rotate = 0.0000 0.0000 0.0000,
            canAttach = trailerTruck,
        }

        attachment trailer
        {
            offset = 0.0000 -0.9208 -3.1386,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }
    }
}
