
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "_ːV8000^ 擪";
	PluginAuthor = "n";
	IconTexture = "..//..//Icon/n/n_knt0.png";
	Description = "|[gCi[";
}

TrainInfo{
	FrontLimit = 4.2;
	TailLimit = -4.2;
	MaxVelocity = 80.0;
	MaxAcceleration = 4.2;
	MaxDeceleration = 4.2;
	DoorClosingTime = 3.0;
}
DefineSwitch "ԗ"{
	Entry = "8100";
	Entry = "8600(])";
}
DefineSwitch "Ґ"{
GroupCommon = "KNT8000Ґ";
	Entry = "8101";
	Entry = "8102";
	Entry = "8103";
	Entry = "8104";
	Entry = "8105";
	Entry = "8106";
	Entry = "8107";
	Entry = "8108";
	Entry = "8109";
	Entry = "8110";
	Entry = "8111";
	Entry = "8112";
	Entry = "1101";
}
DefineSwitch "Cg"{
	Entry = "";
	Entry = "";
}

DefineSwitch ""{
GroupCommon = "KNT8000";
	Entry = "";
	Entry = "";
}
DefineSwitch "ԑ̉"{
GroupCommon = "KNT8000ԑ̉";
	Entry = "";
	Entry = "L";
}
DefineSwitch "Gx"{
GroupCommon = "KNT8000Gx";
	Entry = "";
	Entry = "";
}
DefineSwitch "Wd"{
GroupCommon = "KNT8000Wd";
	Entry = "1";
	Entry = "2";
}
PrimaryAssembly{
	Axle "FrontDummyWheel"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1.0;
		Symmetric = 12;
		Coord = (2.45, 0.45);
	}
	Axle "TailDummyWheel"{
		ModelFileName = "";
		ModelScale = 1.0;
		Diameter = 1.0;
		Symmetric = 12;
		Coord = (-2.45, 0.45);
	}
	Body "Dummy"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "FrontDummyWheel"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (2.45, 0.45);
		}
		JointZY "TailDummyWheel"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-2.45, 0.45);
		}
	}
	Object3D "FrontRightWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (0.8, 0.45, 2.45);
			DirLink = "FrontDummyWheel";
			AttachDir = (5.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "FrontLeftWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (-0.8, 0.45, 2.45);
			DirLink = "FrontDummyWheel";
			AttachDir = (-1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "TailRightWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (0.8, 0.45, -2.45);
			DirLink = "Dummy";
			AttachDir = (1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "TailLeftWheel"{
		ModelFileName = "Wheel.x";
		ModelScale = 1.0;
		Joint3D "Dummy"{
			AttachCoord = (-0.8, 0.45, -2.45);
			DirLink = "Dummy";
			AttachDir = (-1.0, 0.0, 0.0);
			UpLink = "FrontDummyWheel";
			AttachUp = (0.0, 0.0, 1.0);
		}
	}
	Object3D "Doorll"{
		ModelFileName = "Doorll.x";
		ModelScale = 1.0;
		Transparent = 0;
		ApplySwitch ""{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.5, 0.5, 0.5; 
		}
@@@@@@@@}
		If "_DOOR1"{
				StaticMove{
				Displacement = (0.0, 0.0, 0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "Doorlr.x";
		ModelScale = 1.0;
		Transparent = 0;
		ApplySwitch ""{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.5, 0.5, 0.5; 
		}
@@@@@@@@}
		If "_DOOR1"{
				StaticMove{
				Displacement = (0.0, 0.0, -0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "Doorrl.x";
		ModelScale = 1.0;
		Transparent = 0;
		ApplySwitch ""{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.5, 0.5, 0.5; 
		}
@@@@@@@@}
		If "_DOOR2"{
				StaticMove{
				Displacement = (0.0, 0.0, 0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "Doorrr.x";
		ModelScale = 1.0;
		Transparent = 0;
		ApplySwitch ""{
		Case 0:
		ChangeMaterial{
		MaterialID = 3;
		Emissive = 0.5, 0.5, 0.5; 
		}
@@@@@@@@}
		If "_DOOR2"{
				StaticMove{
				Displacement = (0.0, 0.0, -0.67);
				PreAnimationDelay = 0.6;
				AnimationTime = 3;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Mainbody"{
		ModelFileName = "Body.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0;
		NoCastShadow = 14,24;
		//Transparent = 13;
		EnvMap = 13;
		ApplySwitch "ԗ"{
		Case 0:
		ApplySwitch "Ґ"{
		Case 0:ChangeTexture = 14, "tex/Ԕ/8101.png";
		Case 1:ChangeTexture = 14, "tex/Ԕ/8102.png";
		Case 2:ChangeTexture = 14, "tex/Ԕ/8103.png";
		Case 3:ChangeTexture = 14, "tex/Ԕ/8104.png";
		Case 4:ChangeTexture = 14, "tex/Ԕ/8105.png";
		Case 5:ChangeTexture = 14, "tex/Ԕ/8106.png";
		Case 6:ChangeTexture = 14, "tex/Ԕ/8107.png";
		Case 7:ChangeTexture = 14, "tex/Ԕ/8108.png";
		Case 8:ChangeTexture = 14, "tex/Ԕ/8109.png";
		Case 9:ChangeTexture = 14, "tex/Ԕ/8110.png";
		Case 10:ChangeTexture = 14, "tex/Ԕ/8111.png";
		Case 11:ChangeTexture = 14, "tex/Ԕ/8112.png";
		Case 12:ChangeTexture = 14, "tex/Ԕ/1101.png";
		}
		Case 1:
		ApplySwitch "Ґ"{
		Case 0:ChangeTexture = 14, "tex/Ԕ/8601.png";
		Case 1:ChangeTexture = 14, "tex/Ԕ/8602.png";
		Case 2:ChangeTexture = 14, "tex/Ԕ/8603.png";
		Case 3:ChangeTexture = 14, "tex/Ԕ/8604.png";
		Case 4:ChangeTexture = 14, "tex/Ԕ/8605.png";
		Case 5:ChangeTexture = 14, "tex/Ԕ/8606.png";
		Case 6:ChangeTexture = 14, "tex/Ԕ/8607.png";
		Case 7:ChangeTexture = 14, "tex/Ԕ/8608.png";
		Case 8:ChangeTexture = 14, "tex/Ԕ/8609.png";
		Case 9:ChangeTexture = 14, "tex/Ԕ/8610.png";
		Case 10:ChangeTexture = 14, "tex/Ԕ/8611.png";
		Case 11:ChangeTexture = 14, "tex/Ԕ/8612.png";
		}
		}
		ApplySwitch "Gx"{
		Case 0:
		ApplySwitch "ԑ̉"{
		Case 0:ChangeTexture = 9, "tex/0.png";ChangeTexture = 10, "tex/00.png";
		Case 1:ChangeTexture = 9, "tex/1.png";ChangeTexture = 10, "tex/0.png";
		}
		ChangeTexture = 13, "tex/.png";
		Case 1:
		ApplySwitch "ԑ̉"{
		Case 0:ChangeTexture = 9, "tex/0_.png";ChangeTexture = 10, "tex/00.png";
		Case 1:ChangeTexture = 9, "tex/1_.png";ChangeTexture = 10, "tex/0.png";
		}
		ChangeTexture = 13, "tex/_.png";
		}
		ApplySwitch "Ґ"{
		Case 12:ChangeTexture = 9, "tex/2.png";
		}
		ApplySwitch ""{
		Case 0:
		ChangeMaterial{
		MaterialID = 6,7,8;
		Emissive = 0.5, 0.5, 0.5; 
		}
@@@@@@@@}
If "Cg"==0 &&(!"_FRONT")&&(!"_CONNECT1"){
		ChangeAlpha = 3, 1.0;
		ChangeAlpha = 4, 0.0;
}
If "Cg" ==0 && ("_FRONT")&&(!"_CONNECT1"){	
		ChangeAlpha = 3, 0.0;
		ChangeAlpha = 4, 1.0;
}
If "Cg" ==1 {	
		ChangeAlpha = 3, 0.0;
		ChangeAlpha = 4, 0.0;
}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "horo"{
		ModelFileName = "";
		ModelScale = 1.0;
		ApplySwitch "ԗ"{
		Case 0:ChangeModel = "horo.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "panta"{
		ModelFileName = "panta0.x";
		ModelScale = 1.0;
		ApplySwitch "Wd"{
		Case 1:ChangeModel = "panta1.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "skirt"{
		ModelFileName = "skirt.x";
		ModelScale = 1.0;
		ApplySwitch "Ґ"{
		Case 12:ChangeModel = "", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	FrontCabin{
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
}
