module Base
{
	model 89defenderWolfBase
	{
		mesh = vehicles/Vehicles_89defender_Body|wolf_body,
		shader = damn_vehicle_shader,
		invertX = FALSE,
		scale = 0.1,
	}
	model 89defenderWolfInterior
	{
		mesh = vehicles/Vehicles_89defender_Body|wolf_interior,
		texture = Vehicles/Vehicles_89defenderWolf_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	model 89defenderWolfRadio
	{
		mesh = vehicles/Vehicles_89defender_Body|wolf_radio,
		texture = Vehicles/Vehicles_89defenderWolf_Interior,
		shader = damn_wheel_shader,
		scale = 0.1,
	}
	vehicle 89defenderWolf
    {
        mechanicType = 2,
        offroadEfficiency = 1.15,
        engineRepairLevel = 4,
        playerDamageProtection = 1.4,
        engineRPMType = van,

        model
        {
            file = 89defenderWolfBase,
            scale = 0.9000,
            offset = 0.0000 0.4333 -0.0778,
        }

        skin
		{
			texture = Vehicles/Vehicles_89defenderWolf_Shell_green,
		}

        skin
		{
			texture = Vehicles/Vehicles_89defenderWolf_Shell_greenBlack,
		}

        textureRust = Vehicles/Vehicles_89defenderWolf_Rust,
        textureMask = Vehicles/Vehicles_89defenderWolf_Mask,
        textureLights = Vehicles/Vehicles_89defender_Lights,
        textureDamage1Shell = Vehicles/Vehicles_89defender_Damage1,
        textureDamage2Shell = Vehicles/Vehicles_89defender_Damage2,
        textureDamage1Overlay = Vehicles/Vehicles_89defender_Blood,
        textureDamage2Overlay = Vehicles/Vehicles_89defender_Blood,

        sound
        {
            engine = VehicleEngineOffRoad,
            engineStart = VehicleEngineOffRoad,
            engineTurnOff = VehicleEngineOffRoad,
            horn = VehicleHornJeep,
            ignitionFail = VehicleIgnitionFailOffRoad,
        }

        extents = 1.7333 1.5111 4.3556,
        mass = 790,
        physicsChassisShape = 1.7333 1.5111 4.3556,
        centerOfMassOffset = 0.0000 0.9111 -0.1556,
        shadowExtents = 1.8453 4.7043,
        shadowOffset = -0.0026 -0.1462,
        engineForce = 4300,
        maxSpeed = 75f,
        engineLoudness = 80,
        engineQuality = 78,
        brakingForce = 55,
        stoppingMovementForce = 4.0f,
        rollInfluence = 0.96f,
        steeringIncrement = 0.04,
        steeringClamp = 0.3,
        suspensionStiffness = 36,
        suspensionCompression = 3.85,
        suspensionDamping = 2.85,
        maxSuspensionTravelCm = 14,
        suspensionRestLength = 0.20f,
        wheelFriction = 1.7f,
        frontEndHealth = 150,
        rearEndHealth = 165,
        seats = 2,

        wheel FrontLeft
        {
            front = true,
            offset = 0.7556 -0.4444 1.5111,
            radius = 0.37f,
            width = 0.26f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.7556 -0.4444 1.5111,
            radius = 0.37f,
            width = 0.26f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.7556 -0.4444 -1.2667,
            radius = 0.37f,
            width = 0.26f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.7556 -0.4444 -1.2667,
            radius = 0.37f,
            width = 0.26f,
        }

        template = PassengerSeat2,

        passenger FrontLeft
        {
            showPassenger = true,
            hasRoof = true,

            position inside
            {
                offset = 0.4111 0.2667 0.0889,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 1.1778 -0.7333 0.0889,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            showPassenger = true,
            hasRoof = true,

            position inside
            {
                offset = -0.4111 0.2667 0.0889,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.1667 -0.7333 0.1000,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        area Engine
        {
            xywh = 0.0000 2.4111 1.3333 0.7778,
        }

        area TruckBed
        {
            xywh = 0.2000 -2.7222 1.3333 0.7778,
        }

        area Roofrack
        {
            xywh = 0.0000 -0.7000 3.1333 2.7778,
        }

        area StorageLeft
        {
            xywh = 1.2556 -0.5556 0.7778 0.6000,
        }

        area StorageRight
        {
            xywh = -1.2556 -0.5556 0.7778 0.6000,
        }

        area SeatFrontLeft
        {
            xywh = 1.2556 0.3000 0.7778 0.8889,
        }

        area SeatFrontRight
        {
            xywh = -1.2556 0.3000 0.7778 0.8889,
        }

        area SeatRearRight
        {
            xywh = -1.2556 -0.5333 0.7778 0.7778,
        }

        area SeatRearLeft
        {
            xywh = 1.2556 -0.5333 0.7778 0.7778,
        }

        area GasTank
        {
            xywh = -1.3111 -2.0111 0.4222 0.4222,
        }

        area TireFrontLeft
        {
            xywh = 1.3111 1.4333 0.4222 0.4222,
        }

        area TireFrontRight
        {
            xywh = -1.3111 1.4333 0.4222 0.4222,
        }

        area TireRearLeft
        {
            xywh = 1.3111 -1.3444 0.4222 0.4222,
        }

        area TireRearRight
        {
            xywh = -1.3111 -1.3444 0.4222 0.4222,
        }

        template = DEF89TrunkCompartment,

        part DEF89Trunk
        {
            container
            {
                capacity = 140,
                test = DAMN.ContainerAccess.TrunkSecondRow,
            }
        }

        template = DEF89SideStorageW,
        template = DEF89TiresW,
        template = DEF89Seats2,
        template = DEF89EngineDoor,
        template = DEF89DoorsW,
        template = DEF89TrunkDoor110,
        template = DEF89SideLidsW,
        template = DEF89Mudflaps110,
        template = DEF89SidestepsLong,
        template = DEF89BumpersFront,
        template = DEF89BumpersRearW,
        template = DEF89SnorkelW,
        template = DEF89SpareTire110,
        template = DEF89SpareTireW,
        template = DEF89ArmorW,
        template = DEF89Vents,
        template = DEF89CageW,
        template = DEF89RoofW,
        template = DEF89Guards,
        template = DAMNGunrack,

        part GloveBox
        {
            area = SeatFrontRight,
            itemType = Base.GloveBox,
            mechanicRequireKey = true,

            model wolfbod
            {
                file = 89defenderWolfBase,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            model defint
            {
                file = 89defenderInterior,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            model wolfint
            {
                file = 89defenderWolfInterior,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            container
            {
                capacity = 7,
                test = Vehicles.ContainerAccess.GloveBox,
            }

            lua
            {
                create = Vehicles.Create.Default,
            }
        }

        template = DEF89CenterConsole,
        template = GasTank,

        part GasTank
        {
            install
            {
                skills = Mechanics:7,
                recipes = Intermediate Mechanics,
            }

            uninstall
            {
                skills = Mechanics:7,
                recipes = Intermediate Mechanics,
            }
        }

        template = Battery,

        part Battery
        {
            area = SeatFrontLeft,

            table uninstall
            {
                requireUninstalled = SeatFrontLeft,
            }
        }

        template = Engine,
        template = Muffler,

        part Muffler
        {
            model def110exh
            {
                file = 89defender110Exhaust,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            table install
            {
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }

        part Heater
        {
            category = engine,

            lua
            {
                update = Vehicles.Update.Heater,
            }
        }

        part PassengerCompartment
        {
            category = nodisplay,

            lua
            {
                update = Vehicles.Update.PassengerCompartment,
            }
        }

        template = Brake,

        part Brake*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
        }

        template = Suspension,

        part Suspension*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }
        }

        template = Radio_HAM,

        part Radio
        {
            model RadiowolfRadio
            {
                file = 89defenderWolfRadio,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Headlight,
        template = DEF89WindowsFrontW,
        template = DEF89Windshields110,

        attachment trailer
        {
            offset = 0.0000 -0.1889 -2.4000,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -0.1556 2.2556,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
