module Base
{
checkprop:	BaseDoor
	model VVA_Vehicles_[LABEL]_DoorFrontLeft
	{
 checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontLeft_[LABEL]_obj,
 else
		mesh = vehicles/[FILENAME]|Door_FrontLeft_obj,
 end
		shader = vehicle_multiuv_noreflect,
		static = FALSE,
		scale = [SCALE],
 checkprop: DoorBone
  repeatprop: DoorBone
		boneWeight = [DoorBone] 1.0,
  end
 else
  checkprop:	Bones 
  	repeatprop: Bones 
		boneWeight = [Bones] 1.0,
	end
  else
		boneWeight = FrontDoor.L 1.0,
  end
 end
	}
	model VVA_Vehicles_[LABEL]_DoorFrontLeft_nr
	{
 checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontLeft_[LABEL]_obj,
 else
		mesh = vehicles/[FILENAME]|Door_FrontLeft_obj,
 end
		shader = vehicle_norandom_multiuv_noreflect,
		static = FALSE,
		scale = [SCALE],
 checkprop: DoorBone
  repeatprop: DoorBone
		boneWeight = [DoorBone] 1.0,
  end
 else
  checkprop:	Bones 
  	repeatprop: Bones 
		boneWeight = [Bones] 1.0,
	end
  else
		boneWeight = FrontDoor.L 1.0,
  end
 end
	}
end
	repeat
checkprop: Door
	model VVA_Vehicles_[LABEL][Postfix]_DoorFrontLeft
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontLeft_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Door_FrontLeft[Postfix]_obj,
end
		shader = vehicle_multiuv_noreflect,
		static = FALSE,
		scale = [SCALE],
 checkprop: DoorBone
  repeatprop: DoorBone
		boneWeight = [DoorBone] 1.0,
  end
 else
  checkprop:	Bones 
  	repeatprop: Bones 
		boneWeight = [Bones] 1.0,
	end
  else
		boneWeight = FrontDoor.L 1.0,
  end
 end
	}
	model VVA_Vehicles_[LABEL][Postfix]_DoorFrontLeft_nr
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontLeft_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Door_FrontLeft[Postfix]_obj,
end
		shader = vehicle_norandom_multiuv_noreflect,
		static = FALSE,
		scale = [SCALE],
 checkprop: DoorBone
  repeatprop: DoorBone
		boneWeight = [DoorBone] 1.0,
  end
 else
  checkprop:	Bones 
  	repeatprop: Bones 
		boneWeight = [Bones] 1.0,
	end
  else
		boneWeight = FrontDoor.L 1.0,
  end
 end
	}
end: checkprop: Door
checkprop: Window
	model VVA_Vehicles_[LABEL][Postfix]_WindowFrontLeft
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Window_FrontLeft_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Window_FrontLeft[Postfix]_obj,
end
checkprop: OpaqueWindow
		shader = vehicle_multiuv,
else
		shader = vehicle_multiuv_vva,
end
		static = [STATIC],
		scale = [SCALE],
checkprop: WindowOpen
 checkprop: WindowBone 
  repeatprop: WindowBone
		boneWeight = [WindowBone] 1.0,
  end
 else
  checkprop:	Bones 
  	repeatprop: Bones 
		boneWeight = [Bones] 1.0,
	end
  else
		boneWeight = FrontWindow.L 1.0,
  end
 end
end		
	}
checkprop: WindowS
	model VVA_Vehicles_[LABEL][Postfix]_WindowFrontLeft_static
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Window_FrontLeft_[LABEL][Postfix]_sobj,
else
		mesh = vehicles/[FILENAME]|Window_FrontLeft[Postfix]_sobj,
end
		shader = vehicle_multiuv_vva,
		static = TRUE,
		scale = [SCALE],
	}
end
end: checkprop: Window

	template vehicle VVA_[LABEL][Postfix]_FrontLeftShared {
checkprop: Window
		part WindowFrontLeft
        {
			model Default
            {
            	file = VVA_Vehicles_[LABEL][Postfix]_WindowFrontLeft,
            }
checkprop: WindowS
			model Static
            {
            	file = VVA_Vehicles_[LABEL][Postfix]_WindowFrontLeft_static,
            }
end
		}
checkprop: WindowOpen
		template! = VVA_WindowFL,			
end
end			
checkprop: Door,BaseDoor
		template! = VVA_DoorFL_Common,
end
checkprop: Includes
repeatprop: Includes
		template! = VVA_[Includes],
end 
end
	}

	template vehicle VVA_[LABEL][Postfix]_FrontLeft {
checkprop: Door,BaseDoor
		part DoorFrontLeft
		{
			model Default
			{
checkprop:	BaseDoor
				file = VVA_Vehicles_[LABEL]_DoorFrontLeft,
else
				file = VVA_Vehicles_[LABEL][Postfix]_DoorFrontLeft,
end
			}
		}
end
		template! = VVA_[LABEL][Postfix]_FrontLeftShared,
	}
	setflag: FrontLeft

checkprop: Door,BaseDoor
	template vehicle VVA_[LABEL][Postfix]_FrontLeft_nr {
		part DoorFrontLeft
		{
			model Default
			{
checkprop:	BaseDoor
				file = VVA_Vehicles_[LABEL]_DoorFrontLeft_nr,
else
				file = VVA_Vehicles_[LABEL][Postfix]_DoorFrontLeft_nr,
end
			}
		}
		template! = VVA_[LABEL][Postfix]_FrontLeftShared,
	}
	setflag: FrontLeft_nr
end
	endrepeat
}