module Base
{
	model PU_Chains_FL_Trailermovingbig
    {
        mesh = vehicles/TrailermovingbigArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
    }

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

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

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

	model PU_Trunk_Trailermovingbig_Light
    {
        mesh = vehicles/TrailermovingbigArmor|trunklightrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Trunk_Trailermovingbig_Heavy
    {
        mesh = vehicles/TrailermovingbigArmor|trunkheavyrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Rack_Trailermovingbig
    {
        mesh = vehicles/TrailermovingbigArmor|roofrack,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	template vehicle PU_Armor_Trailermovingbig
	{
        template = ATA2Protection/part/ATA2ProtectionTrunk,
        part ATA2ProtectionTrunk
        {
            model Light
            {
                file = PU_Trunk_Trailermovingbig_Light,
            }
            model Heavy
            {
                file = PU_Trunk_Trailermovingbig_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_Trailermovingbig,
            }
        }

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

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

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

        template = ATA2InteractiveTrunk/part/ATA2InteractiveTrunkRoofRack,
        part ATA2InteractiveTrunkRoofRack
        {
            model Default
            {
                file = PU_Rack_Trailermovingbig,
            }
        }
	}
}