
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "20n30ԑf";
	PluginAuthor = "n";
	IconTexture = "icon.png";
}
TrainInfo{
	FrontLimit = 9.35;
	TailLimit = -9.35;
	MaxVelocity = 70.0;
	MaxAcceleration = 3.0;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "d"{
GroupCommon = "nomtb2030d";
	Entry = "";
	Entry = "";
}
DefineSwitch "OƓE"{
GroupCommon = "nomtb2030OƓ";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch ""{
GroupCommon = "nomtb2030";
	Entry = "";
	Entry = "";
}
DefineSwitch "^]"{
GroupCommon = "nomtb2030^]";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch "qƖ"{
GroupCommon = "nomtb2030q";
	Entry = "";
	Entry = "";
}
DefineSwitch "s"{
GroupCommon = "nomtb2030s";
	Entry = "\";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "̗";
	Entry = "s";
	Entry = "AZj";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
}
DefineSwitch "Ґ"{
GroupCommon = "nomtb2030Ґ";
	Entry = "31";
	Entry = "32";
	Entry = "33";
	Entry = "34";
	Entry = "35";
	Entry = "36";
	Entry = "37";
	Entry = "38";
	Entry = "39";
}
DefineSwitch ""{
	Entry = "1(擪)";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
	Entry = "6(擪)";
}
DefineSwitch "Ռ"{
	Entry = "J";
	Entry = "";
}
DefineSwitch ""{
GroupCommon = "nomtb2030";
	Entry = "";
	Entry = "V";
	Entry = "";
}
DefineSwitch "]h~y"{
GroupCommon = "nomtb2030]h~y";
	Entry = "L(2000`)";
	Entry = "";
}
DefineSwitch "ȈՉe"{
	GroupCommon = "nomtb2030ȈՉA";
	Entry = "";
	Entry = "";
}

PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (7.3,0.43);
	}
	Axle "wheel2"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (5.1,0.43);
	}
	Axle "wheel3"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;

		Coord = (-7.3,0.43);
	}
	Axle "wheel4"{
		ModelFileName = "../n_omtbn20_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-5.1,0.43);
	}
	Body "Bogie1"{
		ModelFileName = "../n_omtbn20_1/bogie_t.x";
		ApplySwitch ""{
		Case 0,2,3:
			ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
		}
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.1, 0.0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.1, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "../n_omtbn20_1/bogie_t.x";
		Turn = yes;
		ApplySwitch ""{
		Case 0,3:
			ChangeModel = "../n_omtbn20_1/bogie_m.x", 1.0;
		}
		JointZY "wheel3"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.1, 0.0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-1.1, 0.0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (6.2, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.2, 1.0);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "body1.x";
		ChangeAlpha = 40,0.0;
		NoShadow = 1,40;
		NoCastShadow = 7,8,9,13,14;
		Transparent = 41,42,43,44;
		ApplySwitch ""{
		Case 1,2,3,4:
			ChangeModel = "body2.x", 1.0;
		}
		If "d"==0{
			If "OƓE"==0 && !"_FRONT"&&!"_CONNECT1"{
						ChangeMaterial{
							MaterialID = 1;
							Emissive = 1.0, 1.0, 1.0;
@@@@@	@@				}
						ShiftTexture = 1, -0.25, 0.6875;
						ChangeAlpha = 1,1.0;
@@@@@	@@	}
			If "OƓE"==1 && !"_FRONT"&&!"_CONNECT1"{
						ChangeMaterial{
							MaterialID = 1;
							Emissive = 1.0, 1.0, 1.0;
@@@@@	@@				}
						ChangeAlpha = 1,1.0;
@@@@@	@@	}
			If ("OƓE"==0 || "OƓE"==1)&& "_FRONT"&&!"_CONNECT1"{
						ChangeMaterial{
							MaterialID = 1;
							Emissive = 1.0, 1.0, 1.0;
@@@@@	@@				}
						ShiftTexture = 1, 0.0, 0.6875;
						ChangeAlpha = 1,1.0;
@@@@@	@@	}
			If ""==0{
					ChangeMaterial{
						MaterialID = 2;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
			If "qƖ"==0{
					ChangeMaterial{
						MaterialID = 29,30,31,32,33,34,35,36,37,38,39;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
			If "^]"==1 || ("^]"==0 && "_FRONT"){
					ChangeMaterial{
						MaterialID = 22,23,24,25,26,27,28;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
		}


		ApplySwitch "Ռ"{
			Case 1:
				ShiftTexture = 42, 0.25, 0.0;
		}
		ApplySwitch ""{
			Case 0:
				NoCastShadow = 11;
				NoShadow = 10;
				ChangeAlpha = 10,0.0;
			Case 1:
				ShiftTexture = 3, 0.0, 0.15625;
				ShiftTexture = 18, 0.0, 0.5;
				NoCastShadow = 10;
				NoShadow = 11;
				ChangeAlpha = 11,0.0;
			Case 2:
				ShiftTexture = 3, 0.0, 0.3125;
				ChangeTexture = 4, "tex/O_00.png";
				NoCastShadow = 11;
				NoShadow = 10;
				ChangeAlpha = 10,0.0;
				ChangeTexture = 45, "tex/#007213.png";
		}
		ApplySwitch ""{
		Case 2:
			ApplySwitch "s"{
			Case 1:
				ShiftTexture = 2, 0.5, 0.125;
			Case 2:
				ShiftTexture = 2, 0.5, 0.25;
			Case 3:
				ShiftTexture = 2, 0.5, 0.375;
			Case 4:
				ShiftTexture = 2, 0.5, 0.5;
			Case 5:
				ShiftTexture = 2, 0.5, 0.625;
			Case 6:
				ShiftTexture = 2, 0.5, 0.75;
			Case 7:
				ShiftTexture = 2, 0.5, 0.875;
			Case 8:
				ShiftTexture = 2, 0.75, 0.0;
			Case 9:
				ShiftTexture = 2, 0.75, 0.125;
			Case 10:
				ShiftTexture = 2, 0.75, 0.25;
			Case 11:
				ShiftTexture = 2, 0.75, 0.375;
			Case 12:
				ShiftTexture = 2, 0.25, 0.5;
			Case 13:
				ShiftTexture = 2, 0.25, 0.625;
			Case 14:
				ShiftTexture = 2, 0.25, 0.75;
			}
			ApplySwitch "Ґ"{
			Case 0:
				ShiftTexture = 8, 0.1875, 0.0;
			Case 1:
				ShiftTexture = 8, 0.1875, 0.125;
			Case 2:
				ShiftTexture = 8, 0.1875, 0.25;
			Case 3:
				ShiftTexture = 8, 0.1875, 0.375;
			Case 4:
				ShiftTexture = 8, 0.1875, 0.5;
			Case 5:
				ShiftTexture = 8, 0.1875, 0.625;
			Case 6:
				ShiftTexture = 8, 0.1875, 0.75;
			}
		Default:
			ApplySwitch "s"{
			Case 1:
				ShiftTexture = 2, 0.0, 0.125;
			Case 2:
				ShiftTexture = 2, 0.0, 0.25;
			Case 3:
				ShiftTexture = 2, 0.0, 0.375;
			Case 4:
				ShiftTexture = 2, 0.0, 0.5;
			Case 5:
				ShiftTexture = 2, 0.0, 0.625;
			Case 6:
				ShiftTexture = 2, 0.0, 0.75;
			Case 7:
				ShiftTexture = 2, 0.0, 0.875;
			Case 8:
				ShiftTexture = 2, 0.25, 0.0;
			Case 9:
				ShiftTexture = 2, 0.25, 0.125;
			Case 10:
				ShiftTexture = 2, 0.25, 0.25;
			Case 11:
				ShiftTexture = 2, 0.25, 0.375;
			Case 12:
				ShiftTexture = 2, 0.25, 0.5;
			Case 13:
				ShiftTexture = 2, 0.25, 0.625;
			Case 14:
				ShiftTexture = 2, 0.25, 0.75;
			}
			ApplySwitch "Ґ"{
			Case 0:
			Case 1:
				ShiftTexture = 8, 0.0, 0.125;
			Case 2:
				ShiftTexture = 8, 0.0, 0.25;
			Case 3:
				ShiftTexture = 8, 0.0, 0.375;
			Case 4:
				ShiftTexture = 8, 0.0, 0.5;
			Case 5:
				ShiftTexture = 8, 0.0, 0.625;
			Case 6:
				ShiftTexture = 8, 0.0, 0.75;
			Case 7:
				ShiftTexture = 8, 0.0, 0.875;
			Case 8:
				ShiftTexture = 8, 0.1875, 0.875;
			}
		}
		ApplySwitch ""{
			Case 1:
				ShiftTexture = 7, 0.0, 0.125;
			Case 2:
				ShiftTexture = 7, 0.0, 0.25;
			Case 3:
				ShiftTexture = 7, 0.0, 0.375;
			Case 4:
				ShiftTexture = 7, 0.0, 0.5;
			Case 5:
				ShiftTexture = 7, 0.0, 0.625;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "yuka"{
		ModelFileName = "";
		ApplySwitch ""{
			Case 0:ChangeModel = "../n_omtbn20_1/yuka_20600.x", 1.0;
			Case 1,3,4:ChangeModel = "../n_omtbn20_1/yuka_20100.x", 1.0;
			Case 2:ChangeModel = "../n_omtbn20_1/yuka_20500.x", 1.0;
			Case 5:ChangeModel = "../n_omtbn20_1/yuka_20600.x", 1.0;
				StaticRotation{
					RotationAxis = (0.0, 1.0, 0.0);
					RotationAngle = 180;
				}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "yuka_c"{
		ModelFileName = "../n_omtbn20_1/yuka_f.x";
		ApplySwitch ""{
			Case 1,2,3,4:
				ChangeModel = "../n_omtbn20_1/yuka_c.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Horo"{
		ModelFileName = "";
		If "]h~y"==0 && (""<5&&"">0){
			ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Horo-z"{
		ModelFileName = "";
		ApplySwitch "]h~y"{
			Case 0:
				ChangeModel = "../n_omtbn20_1/horo.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorll"{
		ModelFileName = "Doorl.x";
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 1.0, 1.0, 1.0;
				}
@@@@@@@@}
		If "_DOOR1"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch ""{
			Case 1:
				TransformTexture = 1, -1.0, 0.0, 0.0, 0.0, 1.0, 0.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "Doorr.x";
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 1.0, 1.0, 1.0;
				}
@@@@@@@@}
		If "_DOOR1" {
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch ""{
			Case 1:
				TransformTexture = 1, -1.0, 0.0, 0.0, 0.0, 1.0, 0.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "Doorr.x";
		TransformTexture = 2, -1.0, 0.0, 0.0, 0.0, 1.0, 0.0;
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 1.0, 1.0, 1.0;
				}
@@@@@@@@}
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch ""{
			Case 1:
				TransformTexture = 1, -1.0, 0.0, 0.0, 0.0, 1.0, 0.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "Doorl.x";
		TransformTexture = 2, -1.0, 0.0, 0.0, 0.0, 1.0, 0.0;
		Transparent = 5;
		If "d"==0 && "qƖ"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 1.0, 1.0, 1.0;
				}
@@@@@@@@}
		If "_DOOR2" {
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch ""{
			Case 1:
				TransformTexture = 1, -1.0, 0.0, 0.0, 0.0, 1.0, 0.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Doorl"{
		ModelFileName = "../n_omtbn20_1/tojime.x";
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
		If "_DOOR2"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (1.41, 3.175, -0.45);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "../n_omtbn20_1/tojime.x";
		If "_DOOR1"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (-1.41, 3.175, 0.45);
		}
	}
	Object3D "Shadow"{
		ModelFileName = "../n_omtbn20_1/Shadow.x";
		NoCastShadow = 0;
			ApplySwitch "ȈՉe"{
			Case 1:
			ChangeModel = "", 1.0;
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

