
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "sʋ V30n A~Ґ t";
	PluginAuthor = "n";
	IconTexture = "icon.png";
}
TrainInfo{
	FrontLimit = 9.35;
	TailLimit = -9.35;
	MaxVelocity = 70.0;
	MaxAcceleration = 2.5;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}
DefineSwitch "{ݒ"{
}
DefineSwitch "d"{
GroupCommon = "nomtbn30trad";
	Entry = "";
	Entry = "";
}
DefineSwitch "Ηސݒ-"{
}
DefineSwitch ""{
GroupCommon = "nomtbn30tra";
	Entry = "";
	Entry = "";
}
DefineSwitch "qƖ"{
GroupCommon = "nomtbn30traq";
	Entry = "";
	Entry = "";
}
DefineSwitch "Ԑݒ"{
}
DefineSwitch "s()"{
GroupCommon = "nomtbn30tras扝";
	Entry = "\";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "̗";
	Entry = "s";
	Entry = "AZj";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
}
DefineSwitch "s()"{
GroupCommon = "nomtbn30tras敜";
	Entry = "\";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "̗";
	Entry = "s";
	Entry = "AZj";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
}
DefineSwitch "ԗݒ"{
}
DefineSwitch "Ґ"{
GroupCommon = "nomtbn30traҐ";
	Entry = "44";
	Entry = "45";
	Entry = "46";
	Entry = "47";
	Entry = "48";
	Entry = "49";
}
DefineSwitch ""{
	Entry = "3";
	Entry = "4";
}
DefineSwitch "ݒ"{
}
DefineSwitch "ȈՉe"{
	GroupCommon = "nomtbn30traȈՉA";
	Entry = "";
	Entry = "";
}
DefineSwitch "dlύX1"{
	GroupCommon = "nomtbn30traPBR";
	Entry = "0";
	Entry = "1";
}
DefineSwitch "dlύX2"{
	GroupCommon = "nomtbn30tradlύX2";
	Entry = "gp܂";
	Entry = "0";
	Entry = "1";
	Entry = "2";
	Entry = "3";
	Entry = "4";
	Entry = "5";
	Entry = "6";
	Entry = "7";
	Entry = "8";
	Entry = "9";
}
PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "../n_omtbn30_tra_1/wheel_t.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.762;
		Symmetric = 16;
		Coord = (6.8,0.381);
	}
	Axle "wheel2"{
		ModelFileName = "../n_omtbn30_tra_1/wheel_t.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.762;
		Symmetric = 16;
		Coord = (4.7,0.381);
	}
	Axle "wheel3"{
		ModelFileName = "../n_omtbn30_tra_1/wheel_t.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.762;
		Symmetric = 16;
		Coord = (-6.8,0.381);
	}
	Axle "wheel4"{
		ModelFileName = "../n_omtbn30_tra_1/wheel_t.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		Diameter = 0.762;
		Symmetric = 16;
		Coord = (-4.7,0.381);
	}
	Body "Bogie1"{
		ModelFileName = "../n_omtbn30_tra_1/bogie_t.x";
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.05, 0.0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "../n_omtbn30_tra_1/bogie_t.x";
		Turn = yes;
		JointZY "wheel3"{
			AttachCoord = (0.0,0.0);
			LocalCoord = (1.05, 0.0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05, 0.0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.619);
			LocalCoord = (5.75, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.619);
			LocalCoord = (-5.75, 1.0);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "../n_omtbn30_tra_1/body_3144.x";
		ChangeAlpha = 25, 0.0;
		Transparent = 14,15,16;
		NoCastShadow = 18,19,20,21,25;
		If "d"==0{
			If ""==0{
					ChangeMaterial{
						MaterialID = 2;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
			If "qƖ"==0{
					ChangeMaterial{
						MaterialID = 5,6,7;
						Emissive = 1.0, 1.0, 1.0;
@@@@@	@@		}
			}
		}
		If( !"_FRONT" && ""!=3 )||( "_FRONT" && ""==3 ){
			If "dlύX1" ==0{
				ApplySwitch "s()"{
					Case 1:
		
					Case 2:
						ShiftTexture = 2, 0.0, 0.03125;
					Case 3:
						ShiftTexture = 2, 0.0, 0.0625;
					Case 4:
						ShiftTexture = 2, 0.0, 0.09375;
					Case 5:
						ShiftTexture = 2, 0.0, 0.125;
					Case 6:
						ShiftTexture = 2, 0.0, 0.15625;
					Case 7:
						ShiftTexture = 2, 0.0, 0.1875;
					Case 12:
						ShiftTexture = 2, 0.0625, 0.15625;
					Case 13:
						ShiftTexture = 2, 0.0625, 0.1875;
					Case 14:
						ShiftTexture = 2, 0.0625, 0.21875;
					Default:
						ShiftTexture = 2, 0.0, 0.21875;
				}
			}Else{
				ApplySwitch "s()"{
					Case 1:
						ShiftTexture = 2, 0.0, 0.25;
					Case 2:
						ShiftTexture = 2, 0.0, 0.28125;
					Case 3:
						ShiftTexture = 2, 0.0, 0.3125;
					Case 4:
						ShiftTexture = 2, 0.0, 0.34375;
					Case 5:
						ShiftTexture = 2, 0.0, 0.375;
					Case 6:
						ShiftTexture = 2, 0.0, 0.40625;
					Case 7:
						ShiftTexture = 2, 0.0625, 0.25;
					Case 8:
						ShiftTexture = 2, 0.0625, 0.28125;
					Case 9:
						ShiftTexture = 2, 0.0625, 0.3125;
					Case 10:
						ShiftTexture = 2, 0.0625, 0.34375;
					Case 11:
						ShiftTexture = 2, 0.0625, 0.375;
					Case 12:
						ShiftTexture = 2, 0.0625, 0.40625;
					Case 13:
						ShiftTexture = 2, 0.0625, 0.4375;
					Case 14:
						ShiftTexture = 2, 0.0625, 0.46875;
					Default:
						ShiftTexture = 2, 0.0, 0.21875;
				}
			}
		}


		If( "_FRONT" && ""!=3 )||( !"_FRONT" && ""==3 ){
			If "dlύX1" ==0{
				ApplySwitch "s()"{
					Case 1:
		
					Case 2:
						ShiftTexture = 2, 0.0, 0.03125;
					Case 3:
						ShiftTexture = 2, 0.0, 0.0625;
					Case 4:
						ShiftTexture = 2, 0.0, 0.09375;
					Case 5:
						ShiftTexture = 2, 0.0, 0.125;
					Case 6:
						ShiftTexture = 2, 0.0, 0.15625;
					Case 7:
						ShiftTexture = 2, 0.0, 0.1875;
					Case 12:
						ShiftTexture = 2, 0.0625, 0.15625;
					Case 13:
						ShiftTexture = 2, 0.0625, 0.1875;
					Case 14:
						ShiftTexture = 2, 0.0625, 0.21875;
					Default:
						ShiftTexture = 2, 0.0, 0.21875;
				}
			}Else{
				ApplySwitch "s()"{
					Case 1:
						ShiftTexture = 2, 0.0, 0.25;
					Case 2:
						ShiftTexture = 2, 0.0, 0.28125;
					Case 3:
						ShiftTexture = 2, 0.0, 0.3125;
					Case 4:
						ShiftTexture = 2, 0.0, 0.34375;
					Case 5:
						ShiftTexture = 2, 0.0, 0.375;
					Case 6:
						ShiftTexture = 2, 0.0, 0.40625;
					Case 7:
						ShiftTexture = 2, 0.0625, 0.25;
					Case 8:
						ShiftTexture = 2, 0.0625, 0.28125;
					Case 9:
						ShiftTexture = 2, 0.0625, 0.3125;
					Case 10:
						ShiftTexture = 2, 0.0625, 0.34375;
					Case 11:
						ShiftTexture = 2, 0.0625, 0.375;
					Case 12:
						ShiftTexture = 2, 0.0625, 0.40625;
					Case 13:
						ShiftTexture = 2, 0.0625, 0.4375;
					Case 14:
						ShiftTexture = 2, 0.0625, 0.46875;
					Default:
						ShiftTexture = 2, 0.0, 0.21875;
				}
			}
		}
		ApplySwitch ""{
			Case 0:
				If "dlύX1"==0{
					ChangeAlpha = 25, 1.0;
				}
				ShiftTexture = 19, 0.0, 0.046875;
			Case 1:
				ShiftTexture = 19, 0.0, 0.03125;
		}
		If "dlύX1"==1{
			ApplySwitch "dlύX2"{
				Case 0:
					ChangeModel = "../n_omtbn30_tra_1/body_3145.x", 1.0;
				Case 1,2:
					ChangeModel = "../n_omtbn30_tra_1/body_3111.x", 1.0;
				Case 3,4:
					ChangeModel = "../n_omtbn30_tra_1/body_3112.x", 1.0;
				Case 5:
					ChangeModel = "../n_omtbn30_tra_1/body_3135.x", 1.0;
				Case 6,7:
					ChangeModel = "", 1.0;
			}
		}
		If"dlύX1"==0||("dlύX1"==1&&("dlύX2"<2||"dlύX2"==3||"dlύX2"==5)){
			ApplySwitch "Ґ"{
				Case 0:
	
				Case 1:
					ShiftTexture = 18, 0.0, 0.015625;
				Case 2:
					ShiftTexture = 18, 0.0, 0.03125;
				Case 3:
					ShiftTexture = 18, 0.0, 0.046875;
				Case 4:
					ShiftTexture = 18, 0.0, 0.0625;
				Case 5:
					ShiftTexture = 18, 0.0, 0.078125;
			}
		}
		If "dlύX1"==1{
			If "dlύX2"==2||"dlύX2"==4{
				ApplySwitch "Ґ"{
					Case 0:
						ShiftTexture = 18, 0.0, 0.09375;
					Case 1:
						ShiftTexture = 18, 0.0, 0.109375;
					Case 2:
						ShiftTexture = 18, 0.03125, 0.09375;
					Case 3:
						ShiftTexture = 18, 0.03125, 0.109375;
					Default:
						ChangeAlpha = 18, 0.0;
				}
			}
			If "dlύX2"==6{
				ApplySwitch "Ґ"{
					Case 0:
		
					Case 1:
						ShiftTexture = 18, 0.0, 0.015625;
					Case 2:
						ShiftTexture = 18, 0.0, 0.046875;
					Case 3:
						ShiftTexture = 18, 0.0, 0.0625;
					Case 4:
						ShiftTexture = 18, 0.0, 0.078125;
					Case 5:
						ShiftTexture = 18, 0.0, 0.109375;
				}
			}
			If "dlύX2"==7{
				ApplySwitch "Ґ"{
					Case 0:
						ShiftTexture = 18, 0.03125, 0.09375;
					Case 1:
						ShiftTexture = 18, 0.03125, 0.109375;
					Default:
						ChangeAlpha = 18, 0.0;
				}
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "c"{
		ModelFileName = "../n_omtbn30_tra_1/yuka_c.x";
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "yuka"{
		ModelFileName = "../n_omtbn30_tra_1/yuka_3600.x";
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorll"{
		ModelFileName = "../n_omtbn30_tra_1/Doorl.x";
		Transparent = 3;
		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;
			}
		}
		If "dlύX1"==1{
			If "dlύX2"==0{
				ChangeModel = "../n_omtbn30_tra_1/Doorl.x", 1.0;
				ShiftTexture = 1, 0.0, 0.4375;
			}
			ChangeModel = "../n_omtbn30_tra_1/doorl_1.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "../n_omtbn30_tra_1/Doorr.x";
		Transparent = 3;
		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;
			}
		}
		If "dlύX1"==1{
			If "dlύX2"==0{
				ChangeModel = "../n_omtbn30_tra_1/Doorr.x", 1.0;
				ShiftTexture = 1, 0.0, 0.4375;
			}
			ChangeModel = "../n_omtbn30_tra_1/doorr_1.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "../n_omtbn30_tra_1/Doorr.x";
		Transparent = 3;
		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;
			}
		}
		If "dlύX1"==1{
			If "dlύX2"==0{
				ChangeModel = "../n_omtbn30_tra_1/Doorr.x", 1.0;
				ShiftTexture = 1, 0.0, 0.4375;
			}
			ChangeModel = "../n_omtbn30_tra_1/doorr_1.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "../n_omtbn30_tra_1/Doorl.x";
		Transparent = 3;
		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;
			}
		}
		If "dlύX1"==1{
			If "dlύX2"==0{
				ChangeModel = "../n_omtbn30_tra_1/Doorl.x", 1.0;
				ShiftTexture = 1, 0.0, 0.4375;
			}
			ChangeModel = "../n_omtbn30_tra_1/doorl_1.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "tojime"{
		ModelFileName = "../n_omtbn30_tra_1/tojime_0.x";
		If "dlύX1"==0||"dlύX1"==1&&"dlύX2"==0{
			ChangeModel = "../n_omtbn30_tra_1/tojime_2.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorl"{
		ModelFileName = "../n_omtbn30_tra_1/tojime.x";
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
		If "dlύX1"==0||"dlύX1"==1&&"dlύX2"==0{
			StaticMove{
				Displacement = (-1.41, 3.31, 5.35);
			}
		}Else{
			StaticMove{
				Displacement = (-1.41, 3.175, -0.45);
			}
		}
		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 = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "../n_omtbn30_tra_1/tojime.x";
		If "dlύX1"==0||"dlύX1"==1&&"dlύX2"==0{
			StaticMove{
				Displacement = (-1.41, 3.31, 5.35);
			}
		}Else{
			StaticMove{
				Displacement = (-1.41, 3.175, 0.45);
			}
		}
		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 = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Shadow"{
		ModelFileName = "";
		CastShadow = no;
		NoShadow = 0;
		If "ȈՉe" ==0 && !"_SHADOW"==1 {
			ChangeModel = "../n_omtbn30_tra_1/Shadow.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

