module Base
{
checkprop:	BaseDoor
	model VVA_Vehicles_[LABEL]_DoorFrontRight
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontRight_[LABEL]_obj,
else
		mesh = vehicles/[FILENAME]|Door_FrontRight_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.R 1.0,
  end
 end
	}
	model VVA_Vehicles_[LABEL]_DoorFrontRight_nr
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontRight_[LABEL]_obj,
else
		mesh = vehicles/[FILENAME]|Door_FrontRight_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.R 1.0,
  end
 end
	}
end
	repeat
checkprop: Door
	model VVA_Vehicles_[LABEL][Postfix]_DoorFrontRight
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontRight_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Door_FrontRight[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.R 1.0,
  end
 end
	}
	model VVA_Vehicles_[LABEL][Postfix]_DoorFrontRight_nr
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Door_FrontRight_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Door_FrontRight[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.R 1.0,
  end
 end
	}
end
checkprop: Window
	model VVA_Vehicles_[LABEL][Postfix]_WindowFrontRight
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Window_FrontRight_[LABEL][Postfix]_obj,
else
		mesh = vehicles/[FILENAME]|Window_FrontRight[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.R 1.0,
  end
 end
end		
	}
checkprop: WindowS
	model VVA_Vehicles_[LABEL][Postfix]_WindowFrontRight_static
	{
checkprop: LabelModels
		mesh = vehicles/[FILENAME]|Window_FrontRight_[LABEL][Postfix]_sobj,
else
		mesh = vehicles/[FILENAME]|Window_FrontRight[Postfix]_sobj,
end
		shader = vehicle_multiuv_vva,
		static = TRUE,
		scale = [SCALE],
	}
end
end

	template vehicle VVA_[LABEL][Postfix]_FrontRightShared {
checkprop: Window
		part WindowFrontRight
        {
			model Default
            {
            	file = VVA_Vehicles_[LABEL][Postfix]_WindowFrontRight,
            }
checkprop: WindowS
			model Static
            {
            	file = VVA_Vehicles_[LABEL][Postfix]_WindowFrontRight_static,
            }
end
		}
checkprop: WindowOpen
		template! = VVA_WindowFR,			
end
end			
checkprop: Door,BaseDoor
		template! = VVA_DoorFR_Common,
end
checkprop: Includes
repeatprop: Includes
		template! = VVA_[Includes],
end 
end
	}

	template vehicle VVA_[LABEL][Postfix]_FrontRight {
checkprop: Door,BaseDoor
		part DoorFrontRight
		{
			model Default
			{
checkprop:	BaseDoor
				file = VVA_Vehicles_[LABEL]_DoorFrontRight,
else
				file = VVA_Vehicles_[LABEL][Postfix]_DoorFrontRight,
end
			}
		}
end
		template! = VVA_[LABEL][Postfix]_FrontRightShared,
	}
	setflag: FrontRight
checkprop: Door,BaseDoor
	template vehicle VVA_[LABEL][Postfix]_FrontRight_nr {
		part DoorFrontRight
		{
			model Default
			{
checkprop:	BaseDoor
				file = VVA_Vehicles_[LABEL]_DoorFrontRight_nr,
else
				file = VVA_Vehicles_[LABEL][Postfix]_DoorFrontRight_nr,
end
			}
		}
		template! = VVA_[LABEL][Postfix]_FrontRightShared,
	}
	setflag: FrontRight_nr
end
	endrepeat
}