module Base
{
	model PU_FL_Window_tractorford7810_Light
    {
        mesh = vehicles/tractorford7810Armor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FR_Window_tractorford7810_Light
    {
        mesh = vehicles/tractorford7810Armor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_F_Window_tractorford7810_Light
    {
        mesh = vehicles/tractorford7810Armor|windowlightfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_R_Window_tractorford7810_Light
    {
        mesh = vehicles/tractorford7810Armor|windowlightrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FL_Window_tractorford7810_Heavy
    {
        mesh = vehicles/tractorford7810Armor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FR_Window_tractorford7810_Heavy
    {
        mesh = vehicles/tractorford7810Armor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_F_Window_tractorford7810_Heavy
    {
        mesh = vehicles/tractorford7810Armor|windowheavyfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_R_Window_tractorford7810_Heavy
    {
        mesh = vehicles/tractorford7810Armor|windowheavyrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Chains_FL_tractorford7810
    {
        mesh = vehicles/tractorford7810Armor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
    }

	model PU_Chains_FR_tractorford7810
    {
        mesh = vehicles/tractorford7810Armor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
        invertX = TRUE,
    }

	model PU_Chains_RL_tractorford7810
    {
        mesh = vehicles/tractorford7810Armor|chaintires2,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
    }

	model PU_Chains_RR_tractorford7810
    {
        mesh = vehicles/tractorford7810Armor|chaintires2,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
        invertX = TRUE,
    }

	model PU_Door_FL_tractorford7810_Light
    {
        mesh = vehicles/tractorford7810Armor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FR_tractorford7810_Light
    {
        mesh = vehicles/tractorford7810Armor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_Door_FL_tractorford7810_Heavy
    {
        mesh = vehicles/tractorford7810Armor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FR_tractorford7810_Heavy
    {
        mesh = vehicles/tractorford7810Armor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	template vehicle PU_Armor_tractorford7810
	{
        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,
		part ATA2ProtectionWindowFrontLeft
		{
			model Light
			{
				file = PU_FL_Window_tractorford7810_Light,
			}
			model Heavy
			{
				file = PU_FL_Window_tractorford7810_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
		part ATA2ProtectionWindowFrontRight
		{
			model Light
			{
				file = PU_FR_Window_tractorford7810_Light,
			}
			model Heavy
			{
				file = PU_FR_Window_tractorford7810_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Light
            {
                file = PU_F_Window_tractorford7810_Light,
            }
            model Heavy
            {
                file = PU_F_Window_tractorford7810_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionWindshieldRear,
        part ATA2ProtectionWindshieldRear
        {
            model Light
            {
                file = PU_R_Window_tractorford7810_Light,
            }
            model Heavy
            {
                file = PU_R_Window_tractorford7810_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontLeft,
        part ATA2ProtectionDoorFrontLeft
        {
            model Light
            {
                file = PU_Door_FL_tractorford7810_Light,
            }
            model Heavy
            {
                file = PU_Door_FL_tractorford7810_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontRight,
        part ATA2ProtectionDoorFrontRight
        {
            model Light
            {
                file = PU_Door_FR_tractorford7810_Light,
            }
            model Heavy
            {
                file = PU_Door_FR_tractorford7810_Heavy,
            }
        }

        part Tire*
        {
            setAllModelsVisible = false,
            table install
            {
                complete = ATATuning2.InstallComplete.TireNotAllModelsVisible,
            }
            
            table uninstall
            {
                complete = ATATuning2.UninstallComplete.TireNotAllModelsVisible,
            }
            
            lua
            {
                create = ATATuning2.Create.TireNotAllModelsVisible,
                init = ATATuning2.Init.TireNotAllModelsVisible,
                checkOperate = Vehicles.CheckOperate.Tire,
                update = Vehicles.Update.Tire,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionWheels,
        part TireFrontLeft
        {
            model ATAProtection
            {
                file = PU_Chains_FL_tractorford7810,
            }
        }

        part TireRearLeft
        {
            model ATAProtection
            {
                file = PU_Chains_RL_tractorford7810,
            }
        }

        part TireFrontRight
        {
            model ATAProtection
            {
                file = PU_Chains_FR_tractorford7810,
            }
        }

        part TireRearRight
        {
            model ATAProtection
            {
                file = PU_Chains_RR_tractorford7810,
            }
        }
	}
}