﻿{
	
	"general": {
		"name": "§3UNU Contractor Door w/ Tow Mirrors",
		"type": "generic_bodypart_unu_door_contractor_front",
		"useVehicleTexture": true,
		"stackSize": 1,
	//"materials": ["mts:unuparts.unuparts_decor_unu_panel_steel:0:1"] //Vanilla
		"materials": ["mts:unuparts.unuparts_decor_unu_panel_steel:0:1"] //Immersive EngineeringEngineering
	},	
	
	"generic": {	
		"mustBeRemovedByScrewdriver": true,
		"width": 0.25,
		"height": 0.25
	},

	"rendering": {
		"animatedObjects": [
		    {
				"objectName": "$DoorFR",
				"animations": [
					{
						"animationType": "visibility",
						"variable": "part_ismirrored",
						"clampMin": 1,
						"clampMax": 1
					}
				]
			},
		    {
				"objectName": "$DoorFR_window",
				"applyAfter": "$DoorFR",
				"animations": [
					{
						"animationType": "translation",
						"centerPoint": [0, 0, 0],
						"axis": [-0.1125, -0.8125, 0],
						"variable": "parent_FR_Window",
						"duration": 20,
						"forwardsDelay": 0,
						"reverseDelay": 0
					},
					{
						"animationType": "visibility",
						"variable": "parent_FR_Window",
						"forwardsDelay": 20,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFR_VentWindow",
				"applyAfter": "$DoorFR",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0.03125, 0.0, -0.25],
						"axis": [6.36396, 44.54772, 0],
						"variable": "parent_FR_VentWindow",
						"duration": 20,
						"forwardsDelay": 0,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFR_Handle_Inner",
				"applyAfter": "$DoorFR",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0.09375, -0.25, -0.6875],
						"axis": [-45, 0, 0],
						"variable": "parent_door_DoorFR",
						"duration": 5,
						"forwardsDelay": 0,
						"reverseDelay": 0
					},
					{
						"animationType": "rotation",
						"centerPoint": [0.09375, -0.25, -0.6875],
						"axis": [45, 0, 0],
						"variable": "parent_door_DoorFR",
						"duration": 5,
						"forwardsDelay": 5,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFR_Crank",
				"applyAfter": "$DoorFR",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [0.09375, -0.34375, -0.25],
						"axis": [720, 0, 0],
						"variable": "parent_FR_Window",
						"duration": 20,
						"forwardsDelay": 0,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFR_Logo_Default",
				"applyAfter": "$DoorFR",
				"animations": [
					{
						"animationType": "visibility",
						"variable": "parent_text_1_present",
						"clampMin": 0,
						"clampMax": 0
					}
				]
			},
			{
				"objectName": "$DoorFR_Logo_URL",
				"applyAfter": "$DoorFR",
				"animations": [
					{
						"animationType": "visibility",
						"variable": "parent_text_1_present",
						"clampMin": 1,
						"clampMax": 1
					}
				]
			},
			{
				"objectName": "$DoorFL",
				"animations": [
					{
						"animationType": "visibility",
						"variable": "part_ismirrored",
						"clampMin": 0,
						"clampMax": 0
					}
				]
			},
			{
				"objectName": "$DoorFL_window",
				"applyAfter": "$DoorFL",
				"animations": [
					{
						"animationType": "translation",
						"centerPoint": [0, 0, 0],
						"axis": [0.1125, -0.8125, 0],
						"variable": "parent_FL_Window",
						"duration": 20,
						"forwardsDelay": 0,
						"reverseDelay": 0
					},
					{
						"animationType": "visibility",
						"variable": "parent_FL_Window",
						"forwardsDelay": 20,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFL_VentWindow",
				"applyAfter": "$DoorFL",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-0.03125, 0.0, -0.25],
						"axis": [6.36396, -44.54772, 0],
						"variable": "parent_FL_VentWindow",
						"duration": 20,
						"forwardsDelay": 0,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFL_Handle_Inner",
				"applyAfter": "$DoorFL",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-0.09375, -0.25, -0.6875],
						"axis": [-45, 0, 0],
						"variable": "parent_door_DoorFL",
						"duration": 5,
						"forwardsDelay": 0,
						"reverseDelay": 0
					},
					{
						"animationType": "rotation",
						"centerPoint": [-0.09375, -0.25, -0.6875],
						"axis": [45, 0, 0],
						"variable": "parent_door_DoorFL",
						"duration": 5,
						"forwardsDelay": 5,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFL_Crank",
				"applyAfter": "$DoorFL",
				"animations": [
					{
						"animationType": "rotation",
						"centerPoint": [-0.09375, -0.34375, -0.25],
						"axis": [720, 0, 0],
						"variable": "parent_FL_Window",
						"duration": 20,
						"forwardsDelay": 0,
						"reverseDelay": 0
					}
				]
			},
			{
				"objectName": "$DoorFL_Logo_Default",
				"applyAfter": "$DoorFL",
				"animations": [
					{
						"animationType": "visibility",
						"variable": "parent_text_1_present",
						"clampMin": 0,
						"clampMax": 0
					}
				]
			},
			{
				"objectName": "$DoorFL_Logo_URL",
				"applyAfter": "$DoorFL",
				"animations": [
					{
						"animationType": "visibility",
						"variable": "parent_text_1_present",
						"clampMin": 1,
						"clampMax": 1
					}
				]
			}
		],
		"modelType": "obj",
		"constants": ["unuisbest", "part_useDefaultAnimations", "part_useDefaultSounds", "part_useDefaultHitboxes", "part_closed"]
	},
	
	"variableModifiers": []
}
