module Base
{
	model PU_FL_Window_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FR_Window_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_F_Window_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowlightfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_R_Window_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowlightrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FL_Window_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FR_Window_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_F_Window_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowheavyfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_R_Window_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|windowheavyrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Chains_FL_71chevyc10offroadsb
    {
        mesh = vehicles/71chevyc10offroadsbArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
    }

	model PU_Chains_FR_71chevyc10offroadsb
    {
        mesh = vehicles/71chevyc10offroadsbArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
        invertX = TRUE,
    }

	model PU_Chains_RL_71chevyc10offroadsb
    {
        mesh = vehicles/71chevyc10offroadsbArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
    }

	model PU_Chains_RR_71chevyc10offroadsb
    {
        mesh = vehicles/71chevyc10offroadsbArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
        invertX = TRUE,
    }

	model PU_Hood_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|hoodlightfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Trunk_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|trunklightrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FL_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FR_71chevyc10offroadsb_Light
    {
        mesh = vehicles/71chevyc10offroadsbArmor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_Hood_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|hoodheavyfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Trunk_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|trunkheavyrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FL_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FR_71chevyc10offroadsb_Heavy
    {
        mesh = vehicles/71chevyc10offroadsbArmor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	template vehicle PU_Armor_71chevyc10offroadsb
	{
        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,
		part ATA2ProtectionWindowFrontLeft
		{
			model Light
			{
				file = PU_FL_Window_71chevyc10offroadsb_Light,
			}
			model Heavy
			{
				file = PU_FL_Window_71chevyc10offroadsb_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
		part ATA2ProtectionWindowFrontRight
		{
			model Light
			{
				file = PU_FR_Window_71chevyc10offroadsb_Light,
			}
			model Heavy
			{
				file = PU_FR_Window_71chevyc10offroadsb_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Light
            {
                file = PU_F_Window_71chevyc10offroadsb_Light,
            }
            model Heavy
            {
                file = PU_F_Window_71chevyc10offroadsb_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionWindshieldRear,
        part ATA2ProtectionWindshieldRear
        {
            model Light
            {
                file = PU_R_Window_71chevyc10offroadsb_Light,
            }
            model Heavy
            {
                file = PU_R_Window_71chevyc10offroadsb_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionTrunk,
        part ATA2ProtectionTrunk
        {
            model Light
            {
                file = PU_Trunk_71chevyc10offroadsb_Light,
            }
            model Heavy
            {
                file = PU_Trunk_71chevyc10offroadsb_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontLeft,
        part ATA2ProtectionDoorFrontLeft
        {
            model Light
            {
                file = PU_Door_FL_71chevyc10offroadsb_Light,
            }
            model Heavy
            {
                file = PU_Door_FL_71chevyc10offroadsb_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontRight,
        part ATA2ProtectionDoorFrontRight
        {
            model Light
            {
                file = PU_Door_FR_71chevyc10offroadsb_Light,
            }
            model Heavy
            {
                file = PU_Door_FR_71chevyc10offroadsb_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionHood,
        part ATA2ProtectionHood
        {
            model Light
            {
                file = PU_Hood_71chevyc10offroadsb_Light,
            }
            model Heavy
            {
                file = PU_Hood_71chevyc10offroadsb_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_71chevyc10offroadsb,
            }
        }

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

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

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