module Base
{
	template vehicle SVU_Armor_TrailerTSMega
	{
        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 = SVU_Chains_FL_TrailerTSMega,
                offset = 1.3 0.0 0.0,
            }
        }

        part TireRearLeft
        {
            model ATAProtection
            {
                file = SVU_Chains_RL_TrailerTSMega,
                offset = 0.0 0.0 0.0,
            }
        }

        part TireFrontRight
        {
            model ATAProtection
            {
                file = SVU_Chains_FR_TrailerTSMega,
                offset = -1.3 0.0 0.0,
            }
        }

        part TireRearRight
        {
            model ATAProtection
            {
                file = SVU_Chains_RR_TrailerTSMega,
                offset = 0.0 0.0 0.0,
            }
          
        }
        template = ATA2Protection/part/ATA2ProtectionDoorsRear,
        part ATA2ProtectionDoorsRear
        {
            parent = DoorRear,
            model Heavy
            {
                file = SVU_Trunk_TrailerTSMega_Heavy_Anim,
            }
            model StaticPart
			{
				file = 	SVU_Trunk_TrailerTSMega_Heavy,
			}
        }
	}
}
