
PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "京王電鉄8000系(2025年11月16日版) 先頭車";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "-種別変更のある列車の行先表示について-";
	Description = "現行：終着駅の行先を表示";
	Description = "例）特急　京王八王子⇔高幡不動から各停";
	Description = "2018年まで：種別変更駅を表示";
	Description = "例）特急　高幡不動⇔高幡不動から各停京王八王子行";
	Description = "";
	Description = "-列車パターン(参考)-";
	Description = "8両編成";
	Description = "・新宿 - [各停] - 京王八王子/高尾山口";
	Description = "・東府中 - [各停] - 府中競馬正門前(休日のみ)";
	Description = "";
	Description = "10両編成";
	Description = "・新宿 - [特急] - 京王八王子/高尾山口";
	Description = "・新宿 - [特急/準特急] - 京王多摩センター - [各停] - 橋本";
	Description = "・新宿 - [快速/区急] - 橋本";
	Description = "・新宿 - [急行] - 京王八王子";
	Description = "※その他、高幡不動・若葉台を起終点とする各停が両数、時間帯、上下問わず設定あり";
	Description = "";
	Description = "-通過標識灯について-";
	Description = "";
	Description = "通過駅のある種別で点灯しますが、各駅に停車する区間では消灯します。";
	Description = "また試運転の場合は基本的に点灯しますが、回送は区間によって消灯することがあります。";
}
TrainInfo{
	FrontLimit = 10.00;
	TailLimit = -10.00;
	MaxVelocity = 120.0;
	MaxAcceleration = 2.5;
	MaxDeceleration = 4.0;
	DoorClosingTime = 5.0;
}
DefineSwitch "■基本設定"{
}
DefineSwitch "電源"{
GroupCommon = "nkeio8000電源";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "パンタ高さ"{
	GroupCommon = "nkeio8000pt";
	Entry = "自動(基準：シンプルカテナリ)";
	Entry = "剛体架線";
}
DefineSwitch "■灯火類設定-"{
}
DefineSwitch "前照灯・尾灯"{
GroupCommon = "nkeio8000前照灯";
	Entry = "自動";
	Entry = "切";
}
DefineSwitch "通過標識灯"{
GroupCommon = "nkeio8000通過標識灯";
	Entry = "自動";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "レンズフレア"{
GroupCommon = "nkeio8000レンズフレア";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "客室照明"{
GroupCommon = "nkeio8000客室灯";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "運転室灯"{
GroupCommon = "nkeio8000運転室灯";
	Entry = "自動";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "遮光幕"{
	Entry = "自動";		//夜のみ進行方向全閉
	Entry = "開";
	Entry = "閉";
}
DefineSwitch "■列車設定"{
}
DefineSwitch "種別"{
GroupCommon = "nkeio8000種別";
	Entry = "";
	Entry = "各駅停車";
	Entry = "快速";
	Entry = "";
	Entry = "区間急行";
	Entry = "急行";
	Entry = "準特急";
	Entry = "特急";
	Entry = "回送";
	Entry = "試運転";
	Entry = "臨時";
}
DefineSwitch "行先"{
GroupCommon = "nkeio8000行先";
	Entry = "";
	Entry = "新宿";
	Entry = "桜上水";
	Entry = "八幡山";
	Entry = "つつじが丘";
	Entry = "調布";
	Entry = "飛田給";
	Entry = "府中";
	Entry = "高幡不動";
	Entry = "北野";
	Entry = "京王八王子";
	Entry = "";
	Entry = "高尾";
	Entry = "高尾山口";
	Entry = "";
	Entry = "若葉台";
	Entry = "京王多摩センター";
	Entry = "";
	Entry = "橋本";
	Entry = "";
	Entry = "東府中";
	Entry = "府中競馬正門前";
	Entry = "";
	Entry = "多摩動物公園";
	Entry = "";
	Entry = "笹塚";
	Entry = "新線新宿";
	Entry = "";
	Entry = "";
	Entry = "岩本町";
	Entry = "";
	Entry = "大島";
	Entry = "";
	Entry = "";
	Entry = "瑞江";
	Entry = "";
	Entry = "本八幡";
	Entry = "";
	Entry = "京王八王子・高尾山口";
	Entry = "多摩動物公園・高尾山口";
}
DefineSwitch "■車両設定"{
}
DefineSwitch "形式"{
	Entry = "クハ8700";
	Entry = "クハ8750";
}
DefineSwitch "編成"{
GroupCommon = "nkeio8000編成";
	Entry = "8両編成";
	Entry = "10両貫通編成";
}
DefineSwitch "車番"{
GroupCommon = "nkeio8000車番";
	Entry = "01";
	Entry = "02";
	Entry = "03";
	Entry = "04";
	Entry = "05";
	Entry = "06";
	Entry = "07";
	Entry = "08";
	Entry = "09";
	Entry = "10";
	Entry = "11";
}
DefineSwitch "■仕様設定(細部)"{
}
DefineSwitch "灯具仕様"{
GroupCommon = "nkeio8000灯具仕様";
	Entry = "LED";
	Entry = "ハロゲン";
}
DefineSwitch "スカート仕様"{
	Entry = "長";
	Entry = "使用しません";
	Entry = "28F";
}
DefineSwitch "屋根アンテナ"{
GroupCommon = "nkeio8000屋根アンテナ";
	Entry = "登場時";
}
DefineSwitch "全体-行先表示器仕様"{
GroupCommon = "nkeio8000行先表示器仕様";
	Entry = "FCLED(ROM再々更新・現行)";	
	Entry = "FCLED(ROM再更新)";	
}
DefineSwitch "車外ステッカー"{
GroupCommon = "nkeio8000車外ステッカー";
	Entry = "ステッカー移動(2025〜)";		
	Entry = "ベビーカーステッカー追加(2017〜)";						
}
DefineSwitch "女性専用車ステッカー"{
GroupCommon = "nkeio8000女性専用車ステッカー";
	Entry = "2023〜";
	Entry = "2018〜";
}
DefineSwitch "■質感設定"{
}
DefineSwitch "床下汚し"{
GroupCommon = "nkeio8000床下汚し";
	Entry = "切";
	Entry = "入";
}
DefineSwitch "簡易影"{
	GroupCommon = "nkeio8000簡易陰";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "PBR"{
	GroupCommon = "nkeio8000pbr";
	Entry = "入";
	Entry = "切";
}

PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "../n_keio8000_251116_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (7.95,0.43);
	}
	Axle "wheel2"{
		ModelFileName = "../n_keio8000_251116_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (5.85,0.43);
	}
	Axle "wheel3"{
		ModelFileName = "../n_keio8000_251116_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-7.95,0.43);
	}
	Axle "wheel4"{
		ModelFileName = "../n_keio8000_251116_1/wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/yo.png", pbr;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-5.85,0.43);
	}
	Body "Bogie1"{
		ModelFileName = "../n_keio8000_251116_1/bogie_t.x";
		ApplySwitch "床下汚し"{
			Case 1:
				ShiftTexture = 0, 0.0, 0.5;
				ShiftTexture = 1, 0.0, 0.5;
				ShiftTexture = 2, 0.0, 0.5;
				ShiftTexture = 3, 0.0, 0.5;
		}
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.05,0.0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05,0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "../n_keio8000_251116_1/bogie_t.x";
		Turn = yes;
		ApplySwitch "床下汚し"{
			Case 1:
				ShiftTexture = 0, 0.0, 0.5;
				ShiftTexture = 1, 0.0, 0.5;
				ShiftTexture = 2, 0.0, 0.5;
				ShiftTexture = 3, 0.0, 0.5;
		}
		JointZY "wheel3"{
			AttachCoord = (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.57);
			LocalCoord = (6.9, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.9, 1.0);
		}
	}
	Object3D "led_f"{
		ModelFileName = "ledfc_f.x";
		If !"電源"&&!"_CONNECT1"{
			ApplySwitch "種別"{
			Case 1:
				ShiftTexture = 1, 0.0, -0.1875;
			Case 2:
				ShiftTexture = 1, 0.0, -0.15625;
			Case 3:
				ShiftTexture = 1, 0.0, -0.125;
			Case 4:
				ApplySwitch "全体-行先表示器仕様"{
				Case 0:
					ShiftTexture = 1, 0.0, -0.09375;
				Case 1,2:
					ShiftTexture = 1, 0.0, 0.09375;
				}
			Case 5:
				ShiftTexture = 1, 0.0, -0.0625;
			Case 6:
				ShiftTexture = 1, 0.0, -0.03125;
			Case 7:
			Case 8:
				ShiftTexture = 1, -0.0625, -0.15625;
			Case 9:
				ShiftTexture = 1, -0.0625, -0.125;
			Case 12:
				ShiftTexture = 1, -0.0625, -0.09375;
			Default:
				ChangeAlpha = 1, 0.0;
			}
			ApplySwitch "種別"{
			Case 8,9,10:
				ChangeAlpha = 2, 0.0;
			Default:
				ApplySwitch "行先"{
				Case 1:
					ShiftTexture = 2, 0.0, -0.21875;
				Case 2:
					ShiftTexture = 2, 0.0, -0.1875;
				Case 3:
					ApplySwitch "全体-行先表示器仕様"{
					Case 2:
						ShiftTexture = 2, 0.0, -0.125;
					Default:
						ShiftTexture = 2, 0.0, -0.15625;
					}
				Case 4:
					ShiftTexture = 2, 0.0, -0.09375;
				Case 5:
					ShiftTexture = 2, 0.0, -0.0625;
				Case 6:
					ShiftTexture = 2, 0.0, -0.03125;
				Case 7:
				Case 8:
					ShiftTexture = 2, 0.0, 0.03125;
				Case 9:
					ShiftTexture = 2, 0.0, 0.0625;
				Case 10:
					ShiftTexture = 2, 0.0, 0.09375;
				Case 12:
	
					ShiftTexture = 2, 0.0, 0.125;
				Case 13:
					ShiftTexture = 2, 0.0, 0.15625;
				Case 15:
					ShiftTexture = 2, 0.0, 0.1875;
				Case 16:
					ShiftTexture = 2, 0.0, 0.21875;
				Case 17:
					ShiftTexture = 2, 0.0, 0.25;
				Case 18:
					ShiftTexture = 2, 0.0625, -0.21875;
				Case 20:
					ShiftTexture = 2, 0.0625, -0.1875;
				Case 21:
					ApplySwitch "全体-行先表示器仕様"{
					Case 2:
						ShiftTexture = 2, 0.0625, -0.125;
					Default:
						ShiftTexture = 2, 0.0625, -0.15625;
					}
				Case 23:
					ShiftTexture = 2, 0.0625, -0.09375;
				Case 25:
					ShiftTexture = 2, 0.0625, -0.0625;
				Case 26:
					ApplySwitch "全体-行先表示器仕様"{
					Case 2:
						ShiftTexture = 2, 0.0625, 0.0;
					Default:
						ShiftTexture = 2, 0.0625, -0.03125;
					}
				Case 28:
					ShiftTexture = 2, 0.0625, 0.03125;
				Case 29:
					ShiftTexture = 2, 0.0625, 0.0625;
				Case 30:
					ShiftTexture = 2, 0.0625, 0.09375;
				Case 31:
					ShiftTexture = 2, 0.0625, 0.125;
				Case 32:
					ShiftTexture = 2, 0.0625, 0.15625;
				Case 34:
					ShiftTexture = 2, 0.0625, 0.1875;
				Case 35:
					ShiftTexture = 2, 0.0625, 0.21875;
				Case 36:
					ShiftTexture = 2, 0.0625, 0.25;
				Default:
					ChangeAlpha = 2, 0.0;
				}
			}
			If "種別"==1||"_CONNECT1"||"_FRONT"{
				ChangeAlpha = 3, 0.0;
			}
		}Else{
			ChangeAlpha = 1, 0.0;
			ChangeAlpha = 2, 0.0;
			ChangeAlpha = 3, 0.0;
		}
		If "PBR"==0{
			BumpMap = 0;
			EnvMap = 0;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 0, "tex/wo.png", pbr;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "led_s"{
		ModelFileName = "../n_keio8000_251116_1/ledfc_s.x";
		If !"電源"{
			ApplySwitch "種別"{
			Case 1:
				ShiftTexture = 1, 0.0, -0.1875;
			Case 2:
				ShiftTexture = 1, 0.0, -0.15625;
			Case 3:
				ShiftTexture = 1, 0.0, -0.125;
			Case 4:
				ApplySwitch "全体-行先表示器仕様"{
				Case 0:
					ShiftTexture = 1, 0.0, -0.09375;
				Case 1,2:
					ShiftTexture = 1, 0.0, 0.09375;
				}
			Case 5:
				ShiftTexture = 1, 0.0, -0.0625;
			Case 6:
				ShiftTexture = 1, 0.0, -0.03125;
			Case 7:
				ShiftTexture = 1, 0.0, 0.0;
			Case 8:
				ShiftTexture = 1, -0.25, -0.15625;
			Case 9:
				ShiftTexture = 1, -0.25, -0.125;
			Case 10:
				ShiftTexture = 1, -0.25, -0.09375;
			Default:
				ChangeAlpha = 1, 0.0;
			}
			ApplySwitch "種別"{
			Case 8:
				ShiftTexture = 2, -0.25, -0.1875;
			Case 9:
				ShiftTexture = 2, -0.25, -0.15625;
			Case 10:
				ShiftTexture = 2, -0.25, -0.125;
			Default:
				ApplySwitch "行先"{
				Case 1:
					ShiftTexture = 2, 0.0, -0.21875;
				Case 2:
					ShiftTexture = 2, 0.0, -0.1875;
				Case 3:
					ApplySwitch "全体-行先表示器仕様"{
					Case 2:
						ShiftTexture = 2, 0.0, -0.125;
					Default:
						ShiftTexture = 2, 0.0, -0.15625;
					}
				Case 4:
					ShiftTexture = 2, 0.0, -0.09375;
				Case 5:
					ShiftTexture = 2, 0.0, -0.0625;
				Case 6:
					ShiftTexture = 2, 0.0, -0.03125;
				Case 7:
				Case 8:
					ShiftTexture = 2, 0.0, 0.03125;
				Case 9:
					ShiftTexture = 2, 0.0, 0.0625;
				Case 10:
					ShiftTexture = 2, 0.0, 0.09375;
				Case 12:
					ShiftTexture = 2, 0.0, 0.125;
				Case 13:
					ShiftTexture = 2, 0.0, 0.15625;
				Case 15:
					ShiftTexture = 2, 0.0, 0.1875;
				Case 16:
					ShiftTexture = 2, 0.0, 0.21875;
				Case 17:
					ShiftTexture = 2, 0.0, 0.25;
				Case 18:
					ShiftTexture = 2, 0.125, -0.21875;
				Case 20:
					ShiftTexture = 2, 0.125, -0.1875;
				Case 21:
					ApplySwitch "全体-行先表示器仕様"{
					Case 2:
						ShiftTexture = 2, 0.125, -0.125;
					Default:
						ShiftTexture = 2, 0.125, -0.15625;
					}
				Case 23:
					ShiftTexture = 2, 0.125, -0.09375;
				Case 25:
					ShiftTexture = 2, 0.125, -0.0625;
				Case 26:
					ApplySwitch "全体-行先表示器仕様"{
					Case 2:
						ShiftTexture = 2, 0.125, 0.0;
					Default:
						ShiftTexture = 2, 0.125, -0.03125;
					}
				Case 28:
					ShiftTexture = 2, 0.125, 0.03125;
				Case 29:
					ShiftTexture = 2, 0.125, 0.0625;
				Case 30:
					ShiftTexture = 2, 0.125, 0.09375;
				Case 31:
					ShiftTexture = 2, 0.125, 0.125;
				Case 32:
					ShiftTexture = 2, 0.125, 0.15625;
				Case 34:
					ShiftTexture = 2, 0.125, 0.1875;
				Case 35:
					ShiftTexture = 2, 0.125, 0.21875;
				Case 36:
					ShiftTexture = 2, 0.125, 0.25;
				Default:
					ChangeAlpha = 2, 0.0;
				}
			}
		}Else{
			ChangeAlpha = 1, 0.0;
			ChangeAlpha = 2, 0.0;
		}
		If "PBR"==0{
			BumpMap = 0;
			EnvMap = 0;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/wo.png", pbr;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "body_1.x";
		NoCastShadow = 2,3,4,31,32,33,34,35;
		If ("遮光幕"==0 && !"_FRONT"&&!"_CONNECT1")||"遮光幕"==2{
			ShiftTexture = 59, 0.25, 0.0;
		}
		ApplySwitch "形式"{
		Case 0:
			If"編成"==1{
				ApplySwitch "車番"{
				Case 0:
							ShiftTexture = 35, -0.125, -0.1875;
						Case 1:
							ShiftTexture = 35, -0.125, -0.15625;
						Case 2:
							ShiftTexture = 35, -0.125, -0.125;
						Case 3:
							ShiftTexture = 35, -0.125, -0.09375;
						Case 4:
							ShiftTexture = 35, -0.125, -0.0625;
						Case 5:
							ShiftTexture = 35, -0.125, -0.03125;
						Case 6:
							ShiftTexture = 35, -0.125, 0.0;
						Case 7:
							ShiftTexture = 35, -0.125, 0.03125;
						Case 8:
							ShiftTexture = 35, -0.125, 0.0625;
						Case 9:
							ShiftTexture = 35, -0.125, 0.09375;
						Case 10:
							ShiftTexture = 35, -0.125, 0.125;
						Case 11:
							ShiftTexture = 35, -0.125, 0.15625;
						Case 12:
							ShiftTexture = 35, -0.125, 0.1875;
				Case 13:
					ShiftTexture = 35, -0.125, 0.21875;
				}
				If"車番">8{
					ShiftTexture = 33, 0.0, -0.125;
				}Else{
					ShiftTexture = 33, 0.0, -0.15625;
				}
			}Else{
				ApplySwitch "車番"{
				Case 0:
					ShiftTexture = 35, -0.0625, -0.1875;
				Case 1:
					ShiftTexture = 35, -0.0625, -0.15625;
				Case 2:
					ShiftTexture = 35, -0.0625, -0.125;
				Case 3:
					ShiftTexture = 35, -0.0625, -0.09375;
				Case 4:
					ShiftTexture = 35, -0.0625, -0.0625;
				Case 5:
					ShiftTexture = 35, -0.0625, -0.03125;
				Case 6:
					ShiftTexture = 35, -0.0625, 0.0;
				Case 7:
					ShiftTexture = 35, -0.0625, 0.03125;
				Case 8:
					ShiftTexture = 35, -0.0625, 0.0625;
				Case 9:
					ShiftTexture = 35, -0.0625, 0.09375;
				Case 10:
					ShiftTexture = 35, -0.0625, 0.125;
				Case 11:
					ShiftTexture = 35, -0.0625, 0.15625;
				Case 12:
					ShiftTexture = 35, -0.0625, 0.1875;
				Case 13:
					ChangeAlpha = 35, 0.0;
				}
				If"車番">8{
					ShiftTexture = 33, 0.0, -0.0625;
				}Else{
					ShiftTexture = 33, 0.0, -0.09375;
				}
			}
		Case 1:
			If"編成"==1{
				ApplySwitch "車番"{
				Case 0:
							ShiftTexture = 35, 0.0, -0.1875;
						Case 1:
							ShiftTexture = 35, 0.0, -0.15625;
						Case 2:
							ShiftTexture = 35, 0.0, -0.125;
						Case 3:
							ShiftTexture = 35, 0.0, -0.09375;
						Case 4:
							ShiftTexture = 35, 0.0, -0.0625;
						Case 5:
							ShiftTexture = 35, 0.0, -0.03125;
						Case 6:
							ShiftTexture = 35, 0.0, 0.0;
						Case 7:
							ShiftTexture = 35, 0.0, 0.03125;
						Case 8:
							ShiftTexture = 35, 0.0, 0.0625;
						Case 9:
							ShiftTexture = 35, 0.0, 0.09375;
						Case 10:
							ShiftTexture = 35, 0.0, 0.125;
						Case 11:
							ShiftTexture = 35, 0.0, 0.15625;
						Case 12:
							ShiftTexture = 35, 0.0, 0.1875;
				Case 13:
					ShiftTexture = 35, 0.0, 0.21875;
				}
				If"車番">8{
					ShiftTexture = 33, 0.0, 0.03125;
				}
			}Else{
				ApplySwitch "車番"{
				Case 0:
					ShiftTexture = 35, 0.0625, -0.1875;
				Case 1:
					ShiftTexture = 35, 0.0625, -0.15625;
				Case 2:
					ShiftTexture = 35, 0.0625, -0.125;
				Case 3:
					ShiftTexture = 35, 0.0625, -0.09375;
				Case 4:
					ShiftTexture = 35, 0.0625, -0.0625;
				Case 5:
					ShiftTexture = 35, 0.0625, -0.03125;
				Case 6:
					ShiftTexture = 35, 0.0625, 0.0;
				Case 7:
					ShiftTexture = 35, 0.0625, 0.03125;
				Case 8:
					ShiftTexture = 35, 0.0625, 0.0625;
				Case 9:
					ShiftTexture = 35, 0.0625, 0.09375;
				Case 10:
					ShiftTexture = 35, 0.0625, 0.125;
				Case 11:
					ShiftTexture = 35, 0.0625, 0.15625;
				Case 12:
					ShiftTexture = 35, 0.0625, 0.1875;
				Case 13:
					ChangeAlpha = 35, 0.0;
				}
				If"車番">8{
					ShiftTexture = 33, 0.0, 0.09375;
				}Else{
					ShiftTexture = 33, 0.0, 0.0625;
				}
			}
		}
		ApplySwitch "車番"{
		Case 0,10:
			ShiftTexture = 34, 0.0, -0.125;
		Case 1,11:
			ShiftTexture = 34, 0.0, -0.09375;
		Case 2,12:
			ShiftTexture = 34, 0.0, -0.0625;
		Case 3:
			ShiftTexture = 34, 0.0, -0.03125;
		Case 5:
			ShiftTexture = 34, 0.0, 0.03125;
		Case 6:
			ShiftTexture = 34, 0.0, 0.0625;
		Case 7:
			ShiftTexture = 34, 0.0, 0.09375;
		Case 8:
			ShiftTexture = 34, 0.0, 0.125;
		Case 9:
			ShiftTexture = 34, 0.0, -0.15625;
		Case 13:
				ChangeAlpha = 34, 0.0;
		}


		If "PBR"==0{
			BumpMap = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16;
			EnvMap = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/frontn.png", normal;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/frontn.png", normal;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/窓仮n.png", normal;
			ChangeTexture = 3, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 4, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 5, "../n_keio8000_251116_1/tex/body1.png", "../n_keio8000_251116_1/tex/bodyn.png", "../n_keio8000_251116_1/tex/bodyo.png";
			ChangeTexture = 6, "../n_keio8000_251116_1/tex/body1.png", "../n_keio8000_251116_1/tex/bodyn.png", "../n_keio8000_251116_1/tex/bodyo.png";
			ChangeTexture = 7, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 8, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 9, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 10, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 11, "../n_keio8000_251116_1/tex/n.png", normal;
			ChangeTexture = 12, "../n_keio8000_251116_1/tex/bodyn.png", normal;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/fronto.png", pbr;
			ChangeTexture = 1, "../n_keio8000_251116_1/tex/fronto.png", pbr;
			ChangeTexture = 2, "../n_keio8000_251116_1/tex/窓仮o.png", pbr;
			ChangeTexture = 3, "../n_keio8000_251116_1/tex/窓仮o.png", pbr;
			ChangeTexture = 4, "../n_keio8000_251116_1/tex/窓仮o.png", pbr;
			ChangeTexture = 7, "../n_keio8000_251116_1/tex/fronto.png", pbr;
			ChangeTexture = 8, "../n_keio8000_251116_1/tex/fronto.png", pbr;
			ChangeTexture = 9, "../n_keio8000_251116_1/tex/fronto.png", pbr;
			ChangeTexture = 10, "../n_keio8000_251116_1/tex/fronto.png", pbr;
			ChangeTexture = 11, "../n_keio8000_251116_1/tex/fronto.png", pbr;
			ChangeTexture = 12, "../n_keio8000_251116_1/tex/bodyo.png", pbr;
			ChangeTexture = 13, "../n_keio8000_251116_1/tex/black.png", "../n_keio8000_251116_1/tex/n.png", "../n_keio8000_251116_1/tex/wo.png";
			ChangeTexture = 14, "../n_keio8000_251116_1/tex/body1.png", "../n_keio8000_251116_1/tex/bodyn.png", "../n_keio8000_251116_1/tex/bodyo.png";
			ChangeTexture = 15, "../n_keio8000_251116_1/tex/body1.png", "../n_keio8000_251116_1/tex/bodyn.png", "../n_keio8000_251116_1/tex/bodyo.png";
			ChangeTexture = 16, "../n_keio8000_251116_1/tex/body1.png", "../n_keio8000_251116_1/tex/bodyn.png", "../n_keio8000_251116_1/tex/bodyo.png";

			ChangeMaterial{
				MaterialID = 0,1;
				Diffuse = 0.8, 0.8, 0.8, 1.0;
				Ambient = 0.75, 0.75, 0.75;
				Specular = 0.35, 0.35, 0.35;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 3,4;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 1.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 5,6,12,14,15,16;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.81, 0.82;
				Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
			ChangeMaterial{
				MaterialID = 7,8,9,10,11;
				Diffuse = 0.8, 0.8, 0.8, 1.0;
				Ambient = 0.75, 0.75, 0.75;
				Specular = 0.35, 0.35, 0.35;
　　　　	　	}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Light"{
		ModelFileName = "light_0.x";
		NoShadow = 1,2;
		If !"電源"&&!"前照灯・尾灯"&&!"_CONNECT1"{
			If !"_FRONT"{
				ChangeAlpha = 1, 1.0;
			}Else{
				ChangeAlpha = 2, 1.0;
			}
		}
		ApplySwitch "灯具仕様"{
		Case 0:
			ChangeTexture = 0, "tex/灯具1.png";
			ChangeTexture = 1, "tex/灯具1.png";
			ChangeTexture = 2, "tex/灯具1.png";
		}
		If "PBR"==0{
			BumpMap = 0;
			EnvMap = 0;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 0, "tex/wo.png", pbr;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Skirt"{
		ModelFileName = "";
		ApplySwitch "編成"{
		Case 0:
			If !"形式"&&"車番"==7&&"スカート仕様"==2{
				ChangeModel = "skirt_8711.x", 1.0;
			}Else{
				ChangeModel = "skirt_8720.x", 1.0;
			}
		Case 1:
			If !"形式"{
				ChangeModel = "skirt_8711.x", 1.0;
			}Else{
				ChangeModel = "skirt_8761.x", 1.0;
			}
		}
		If "PBR"==0{
			BumpMap = 0,1,3,4,5,6,7,8;
			EnvMap = 0,1,4,5,6,7,8;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 0, "tex/fronto.png", pbr;
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.8, 0.8, 0.8, 1.0;
				Ambient = 0.75, 0.75, 0.75;
				Specular = 0.35, 0.35, 0.35;
　　　　	　	}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Connector"{
		ModelFileName = "connector_8720.x";
		ApplySwitch "編成"{
		Case 0:
			If !"形式"&&"車番"==7&&"スカート仕様"==2{
				ChangeModel = "connector_8700.x", 1.0;
			}
		Case 1:
			If !"形式"{
				ChangeModel = "connector_8700.x", 1.0;
			}Else{
				ChangeModel = "connector_8750.x", 1.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Hood"{
		ModelFileName = "../n_keio8000_251116_1/hood.x";
		Transparent = 1;
		If "形式"==1{
			ChangeModel = "", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Cooler"{
		ModelFileName = "../n_keio8000_251116_1/Cooler_1.x";
		If "形式"==1{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
			}
		}
		If "PBR"==0{
			BumpMap = 0;
			EnvMap = 0;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/クーラー1.png", "../n_keio8000_251116_1/tex/クーラー1n.png", "../n_keio8000_251116_1/tex/クーラー1o.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.81, 0.82;
				Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "yuka"{
		ModelFileName = "";
		ApplySwitch "床下汚し"{
		Case 1:
				//ChangeTexture = 0, "../n_keio8000_251116_1/tex/床下1.png";
		}
		ApplySwitch "形式"{
		Case 0:
			ChangeModel = "../n_keio8000_251116_1/yuka_8700.x", 1.0;
		Case 1:
			ChangeModel = "../n_keio8000_251116_1/yuka_8750.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "antenna"{
		ModelFileName = "../n_keio8000_251116_1/antenna.x";
		ApplySwitch "屋根アンテナ"{
		Case 0:
			ChangeModel = "../n_keio8000_251116_1/antenna_0.x", 1.0;
		Case 1:
			ChangeModel = "../n_keio8000_251116_1/antenna_1.x", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Sticker_n"{
		ModelFileName = "../n_keio8000_251116_1/sticker_n.x";
		NoCastShadow = 0;
		ApplySwitch "形式"{
		Case 0:
				ApplySwitch "編成"{
				Case 0:
					ShiftTexture = 0, 0.0625, 0.1875;
				Case 1:
					ShiftTexture = 0, 0.0625, 0.25;
				}
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Sticker_p"{
		ModelFileName = "";
		NoCastShadow = 0;
		ApplySwitch "車外ステッカー"{
		Case 1:
			ChangeModel = "../n_keio8000_251116_1/sticker_p_2.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Sticker_o"{
		ModelFileName = "";
		NoCastShadow = 0;
		ApplySwitch "編成"{
		Case 0:
			ApplySwitch "車外ステッカー"{
			Case 0:
				ChangeModel = "../n_keio8000_251116_1/sticker_o_3.x", 1.0;
			Case 1:
				ChangeModel = "../n_keio8000_251116_1/sticker_o_2.x", 1.0;
			}
		Case 1:
			ApplySwitch "車番"{
			Case 0,1,3,5,6,8,9,11:
				ApplySwitch "車外ステッカー"{
				Case 0:
					ChangeModel = "../n_keio8000_251116_1/sticker_o_3.x", 1.0;
				Case 1:
					ChangeModel = "../n_keio8000_251116_1/sticker_o_2.x", 1.0;
				}
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Sticker_w"{
		ModelFileName = "";
		NoCastShadow = 0;
		If "編成"==1&&"形式"==0{
			ApplySwitch "女性専用車ステッカー"{
			Case 1:
				ChangeModel = "../n_keio8000_251116_1/sticker_w_2.x", 1.0;
			Case 0:
				ChangeModel = "../n_keio8000_251116_1/sticker_w_2.x", 1.0;
				ShiftTexture = 0, 0.25, 0.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorill"{
		ModelFileName = "../n_keio8000_251116_1/Dooril1.x";
		If "_DOOR1"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.5;
				ReverseTime = 0.5;
				PostReverseDelay = 5.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorilr"{
		ModelFileName = "../n_keio8000_251116_1/Doorir1.x";
		If "_DOOR1" {
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.5;
				ReverseTime = 0.5;
				PostReverseDelay = 5.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorirl"{
		ModelFileName = "../n_keio8000_251116_1/Doorir1.x";
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.5;
				ReverseTime = 0.5;
				PostReverseDelay = 5.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Doorirr"{
		ModelFileName = "../n_keio8000_251116_1/Dooril1.x";
		If "_DOOR2" {
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 2.0;
				ReverseTime = 2.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 3.0;
				AnimationTime = 1.0;
				PreReverseDelay = 2.5;
				ReverseTime = 0.5;
				PostReverseDelay = 5.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Doorll"{
		ModelFileName = "../n_keio8000_251116_1/Doorl1.x";
		NoCastShadow = 0;
		If "PBR"==0{
				ChangeTexture = 1, "../n_keio8000_251116_1/tex/扉1m.png", "../n_keio8000_251116_1/tex/扉1n.png", "../n_keio8000_251116_1/tex/扉1o.png";
			BumpMap = 0,1;
			EnvMap = 0,1;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/窓仮.png", "../n_keio8000_251116_1/tex/窓仮n.png", "../n_keio8000_251116_1/tex/窓仮o.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 3.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.81, 0.82;
				Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
		}
		Joint3D "Doorill"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "../n_keio8000_251116_1/Doorr1.x";
		NoCastShadow = 0;
		If "PBR"==0{
				ChangeTexture = 1, "../n_keio8000_251116_1/tex/扉1m.png", "../n_keio8000_251116_1/tex/扉1n.png", "../n_keio8000_251116_1/tex/扉1o.png";

			BumpMap = 0,1;
			EnvMap = 0,1;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/窓仮.png", "../n_keio8000_251116_1/tex/窓仮n.png", "../n_keio8000_251116_1/tex/窓仮o.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 3.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.81, 0.82;
				Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
		}
		Joint3D "Doorilr"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "../n_keio8000_251116_1/Doorr1.x";
			NoCastShadow = 0;
		If "PBR"==0{

				ChangeTexture = 1, "../n_keio8000_251116_1/tex/扉1m.png", "../n_keio8000_251116_1/tex/扉1n.png", "../n_keio8000_251116_1/tex/扉1o.png";

			BumpMap = 0,1;
			EnvMap = 0,1;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/窓仮.png", "../n_keio8000_251116_1/tex/窓仮n.png", "../n_keio8000_251116_1/tex/窓仮o.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 3.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.81, 0.82;
				Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
		}
		Joint3D "Doorirl"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorrr"{
		ModelFileName = "../n_keio8000_251116_1/Doorl1.x";
		NoCastShadow = 0;
		If "PBR"==0{

				ChangeTexture = 1, "../n_keio8000_251116_1/tex/扉1m.png", "../n_keio8000_251116_1/tex/扉1n.png", "../n_keio8000_251116_1/tex/扉1o.png";
	
			BumpMap = 0,1;
			EnvMap = 0,1;
			ChangeTexture = 0, "../n_keio8000_251116_1/tex/窓仮.png", "../n_keio8000_251116_1/tex/窓仮n.png", "../n_keio8000_251116_1/tex/窓仮o.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 1.0, 1.0, 1.0, 1.0;
				Ambient = 0.9, 0.91, 0.92;
				Power = 3.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.81, 0.82;
				Specular = 0.9, 0.9, 0.9;
				Power = 7.0;
　　　　	　	}
		}
		Joint3D "Doorirr"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorl"{
		ModelFileName = "../n_keio8000_251116_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.39, 3.145, 0.13);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "../n_keio8000_251116_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.39, 3.145, -0.13);
		}
	}
	Object3D "Shadow"{
		ModelFileName = "";
		If!"簡易影"&&!"_SHADOW" { 
			ChangeModel = "../n_keio8000_251116_1/Shadow.x", 1.0;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	If "電源"==0 && "前照灯・尾灯"==0 && "レンズフレア"==0 && !"_CONNECT1" {
		If !"_FRONT"{
			ApplySwitch "灯具仕様"{
			Case 1:
				Headlight{
				    AttachObject = "Dummy";
				    SourceCoord = (0.807, 1.26, 9.85);
				    Direction = (0.0, 0.0, 1.0);
				    MaxDistance = 10.0;
					LensFlare{
					    StartAngle = 50.0;
					    Twinkle = 0.1;
						Texture{
						    Distance = 0.005;
						    Radius = 0.5;
						    TexFileName = "tex/フレア.png";
						    Color = #FFCC874B;
						}
					}
				}
				Headlight{
				    AttachObject = "Dummy";
				    SourceCoord = (-0.807, 1.26, 9.85);
				    Direction = (0.0, 0.0, 1.0);
				    MaxDistance = 10.0;
				}
			Case 0:
				Headlight{
				    AttachObject = "Dummy";
				    SourceCoord = (0.807, 1.26, 9.8);
				    Direction = (0.0, 0.0, 1.0);
				    MaxDistance = 10.0;
					LensFlare{
					    StartAngle = 40.0;
					    Twinkle = 0.1;
						Texture{
						    Distance = 0.005;
						    Radius = 0.5;
						    TexFileName = "tex/フレア.png";
						    Color = #FFFFFFFF;
						}
					}
				}
				Headlight{
				    AttachObject = "Dummy";
				    SourceCoord = (-0.807, 1.26, 9.8);
				    Direction = (0.0, 0.0, 1.0);
				    MaxDistance = 10.0;
				}
			}
		}Else{
			Headlight{
		  	  AttachObject = "Dummy";
			    SourceCoord = (1.055, 1.26, 9.85);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
				LensFlare{
				    StartAngle = 40.0;
				    Twinkle = 0.1;
					Texture{
					    Distance = 0.005;
					    Radius = 0.45;
					    TexFileName = "tex/フレア.png";
					    Color = #FFDD0014;
					}
				}
			}
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (-1.055, 1.26, 9.85);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
			}
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

