/*
 *	RailSim II Train Plugin
 *	Copyright (c) 2009 インターネット停留所
 */

PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "【東日本旅客鉄道】255系先頭車(5号車)";
	PluginAuthor = "篠ノ之隼(IS学園産業デザイン部RailSim課)";
	IconTexture = "";
	Description = "";

}

TrainInfo{
	FrontLimit = 10.2;	//	前方連結位置 Z 座標
	TailLimit = -10.2;	//	後方連結位置 Z 座標
	MaxVelocity = 120.0;	//	最高速度
	MaxAcceleration = 3.0;	//	最高加速度
	MaxDeceleration = 4.0;	//	最高減速度
	TiltSpeed = 0.1;	//	振り子反応速度
	DoorClosingTime = 6.0;	//	ドア閉め所要時間
}
DefineSwitch "◆種別・行先表示設定◆"{
}
DefineSwitch "◆座席表示・列車名行先の組み合わせについて◆"{
	Entry = "○○席(固定表示)は特急表示に使います。";
	Entry = "○○席(経由表示有)は経由表示が入った行先を使います。";
	Entry = "適当に設定すると行先表示と座席の表示が合わなくなります。";
}
DefineSwitch "列車名・行先"{
GroupCommon = "列車名・行先";
	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 = "競技/品川";
	Entry = "競技/浅草";
	Entry = "競技/日光";
	Entry = "競技/飯能";
}
DefineSwitch "座席"{
	Entry = "表示無";
	Entry = "自由席";
	Entry = "自由席(固定表示)";
	Entry = "自由席(経由表示有)";
	Entry = "指定席";
	Entry = "指定席(固定表示)";
	Entry = "指定席(経由表示有)";
}
DefineSwitch "◆その他設定◆"{
}
DefineSwitch "ドア"{
GroupCommon = "ドア";
	Entry = "自動";
	Entry = "左";
	Entry = "右";
}
DefineSwitch "サウンド"{
GroupCommon = "サウンド";
	Entry = "OFF";
	Entry = "ON";
}
DefineSwitch "簡易シャドウ"{
GroupCommon = "簡易シャドウ";
	Entry = "無";
	Entry = "有";
}

DefineAnimation "自由席"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/non-reserved.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/non-reserved_e.png", 100;
}
DefineAnimation "自由席(経由表示有)"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/non-reserved.png", 200;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/non-reserved_e.png", 100;
}
DefineAnimation "指定席"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/reserved.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/reserved_e.png", 100;
}
DefineAnimation "指定席(経由表示有)"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/reserved.png", 200;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/座席/reserved_e.png", 100;
}
DefineAnimation "Sわかしお"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/s-wakashio.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/s-wakashio_e.png", 100;
}
DefineAnimation "Sわかしお_新宿"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/s-wakashio_shinjuku.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/s-wakashio_shinjuku_e.png", 100;
}
DefineAnimation "Sわかしお_安房鴨川"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/s-wakashio_awa.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/awa_via_soto.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/s-wakashio_awa_e.png", 100;
}
DefineAnimation "Sさざなみ"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/s-sazanami.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/s-sazanami_e.png", 100;
}
DefineAnimation "Sさざなみ_新宿"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/s-sazanami_shinjuku.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/s-sazanami_shinjuku_e.png", 100;
}
DefineAnimation "Sさざなみ_館山"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/s-sazanami_tate.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/s-sazanami_tate_e.png", 100;
}
DefineAnimation "Sさざなみ_千倉"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/s-sazanami_chiku.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/s-sazanami_chiku_e.png", 100;
}
DefineAnimation "わかしお"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_e.png", 100;
}
DefineAnimation "わかしお_東京_京葉"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio_tokyo.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/tokyo_via_keiyo.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_tokyo_e.png", 100;
}
DefineAnimation "わかしお_東京_京葉(勝浦まで普通)"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio_katsuura_local.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/tokyo_via_keiyo.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_tokyo_e.png", 100;
}
DefineAnimation "わかしお_上総一ノ宮"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio_kazusa.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_kazusa_e.png", 100;
}
DefineAnimation "わかしお_勝浦"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio_katsu.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_katsu_e.png", 100;
}
DefineAnimation "わかしお_安房鴨川_外房"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio_awa.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/awa_via_soto.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_awa_e.png", 100;
}
DefineAnimation "わかしお_安房鴨川_京葉(勝浦から普通)"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio_katsuura_local2.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/awa_via_keiyo.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_awa_e.png", 100;
}
DefineAnimation "わかしお_安房鴨川・和田浦_外房"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/wakashio_awa_wada.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/awa_wada_via_soto.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/wakashio_awa_wada_e.png", 100;
}
DefineAnimation "さざなみ"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/sazanami.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/sazanami_e.png", 100;
}
DefineAnimation "さざなみ_東京_京葉"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/sazanami_tokyo.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/tokyo_via_keiyo.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/sazanami_tokyo_e.png", 100;
}
DefineAnimation "さざなみ_君津"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/sazanami_kimi.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/sazanami_kimi_e.png", 100;
}
DefineAnimation "さざなみ_館山"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/sazanami_tate.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/sazanami_tate_e.png", 100;
}
DefineAnimation "さざなみ_千倉"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/sazanami_chiku.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/sazanami_chiku_e.png", 100;
}
DefineAnimation "しおさい"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/shiosai.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/shiosai_e.png", 100;
}
DefineAnimation "しおさい_新宿"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/shiosai_shinjuku.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/shiosai_shinjuku_e.png", 100;
}
DefineAnimation "しおさい_東京"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/shiosai_tokyo.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/shiosai_tokyo_e.png", 100;
}
DefineAnimation "しおさい_成東"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/shiosai_naruto.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/shiosai_naruto_e.png", 100;
}
DefineAnimation "しおさい_銚子_総武本線"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/shiosai_choshi.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/choshi_via_sobu.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/shiosai_choshi_e.png", 100;
}
DefineAnimation "あやめ"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/ayame.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/ayame_e.png", 100;
}
DefineAnimation "あやめ_東京"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/ayame_tokyo.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/ayame_tokyo_e.png", 100;
}
DefineAnimation "あやめ_成田"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/ayame_narita.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/ayame_narita_e.png", 100;
}
DefineAnimation "ホームライナー"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/home.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/home_e.png", 100;
}
DefineAnimation "ホームライナー千葉"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/home_chiba.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/home_chiba_e.png", 100;
}
DefineAnimation "ホームライナー津田沼"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先/home_tsuda.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/列車名・行先_英語表記/home_tsuda_e.png", 100;
}
DefineAnimation "あやめ_大洗"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/ayame_oarai.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/ayame_oarai_e.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/garupan.png", 100;
}
DefineAnimation "千葉原"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/chibahara.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/chibahara_e.png", 100;
}
DefineAnimation "松岡"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/matsuoka.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/matsuoka_e.png", 100;
}
DefineAnimation "梅田"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/umeda.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/umeda_e.png", 100;
}
DefineAnimation "品川"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/shinagawa.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/shinagawa_e.png", 100;
}
DefineAnimation "浅草"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/asakusa.png",100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/asakusa_e.png", 100;
}
DefineAnimation "日光"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/nikko.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/nikko_e.png", 100;
}
DefineAnimation "飯能"{
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/hanno.png", 100;
	Frame = "../common_hayabusa/hayabusa_JRE255_tex/LED/ネタ/hanno_e.png", 100;
}

PrimaryAssembly{
	Axle "Wheel1"{
		ModelFileName = "../hayabusa_JRE255_1/Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.8;
		Symmetric = 8;
		Coord = (7.9, 0.4);
	}
	Axle "Wheel2"{
		ModelFileName = "../hayabusa_JRE255_1/Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.8;
		Symmetric = 8;
		Coord = (5.55, 0.4);
	}
	Axle "Wheel3"{
		ModelFileName = "../hayabusa_JRE255_1/Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.8;
		Symmetric = 8;
		Coord = (-5.55, 0.4);
	}
	Axle "Wheel4"{
		ModelFileName = "../hayabusa_JRE255_1/Wheel.x";
		ModelScale = 1.0;
		Diameter = 0.8;
		Symmetric = 8;
		Coord = (-7.9, 0.4);
	}
	Body "Bogie1"{
		ModelFileName = "../hayabusa_JRE255_1/Bogie.x";
		ModelScale = 1.0;
		JointZY "Wheel1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.0, 0.0);
		}
		JointZY "Wheel2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.0, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "../hayabusa_JRE255_1/Bogie.x";
		ModelScale = 1.0;
		Turn = yes;
		JointZY "Wheel3"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.0, 0.0);
		}
		JointZY "Wheel4"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.0, 0.0);
		}
	}
	Body "MainBody"{
		ModelFileName = "body.x";
		ModelScale = 1.0;
		Turn = yes;
		AlphaZeroTest = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30;
		ApplySwitch "列車名・行先"{
		Case 0:
			ChangeTexture = 1,"../common_hayabusa/hayabusa_JRE255_tex/LED/Non.png";
		Case 1:
			ChangeTexture = 1,"../common_hayabusa/hayabusa_JRE255_tex/LED/回送.png";
		Case 2:
			ChangeTexture = 1,"../common_hayabusa/hayabusa_JRE255_tex/LED/特急.png";
		Case 3:
			SetAnimation = 1, "Sわかしお";
		Case 4:
			SetAnimation = 1, "Sわかしお_新宿";
		Case 5:
			SetAnimation = 1, "Sわかしお_安房鴨川";
		Case 6:
			SetAnimation = 1, "Sさざなみ";
		Case 7:
			SetAnimation = 1, "Sさざなみ_新宿";
		Case 8:
			SetAnimation = 1, "Sさざなみ_館山";
		Case 9:
			SetAnimation = 1, "Sさざなみ_千倉";
		Case 10:
			SetAnimation = 1, "わかしお";
		Case 11:
			SetAnimation = 1, "わかしお_東京_京葉";
		Case 12:
			SetAnimation = 1, "わかしお_東京_京葉(勝浦まで普通)";
		Case 13:
			SetAnimation = 1, "わかしお_上総一ノ宮";
		Case 14:
			SetAnimation = 1, "わかしお_勝浦";
		Case 15:
			SetAnimation = 1, "わかしお_安房鴨川_外房";
		Case 16:
			SetAnimation = 1, "わかしお_安房鴨川_京葉(勝浦から普通)";
		Case 17:
			SetAnimation = 1, "わかしお_安房鴨川・和田浦_外房";
		Case 18:
			SetAnimation = 1, "さざなみ";
		Case 19:
			SetAnimation = 1, "さざなみ_東京_京葉";
		Case 20:
			SetAnimation = 1, "さざなみ_君津";
		Case 21:
			SetAnimation = 1, "さざなみ_館山";
		Case 22:
			SetAnimation = 1, "さざなみ_千倉";
		Case 23:
			SetAnimation = 1, "しおさい";
		Case 24:
			SetAnimation = 1, "しおさい_新宿";
		Case 25:
			SetAnimation = 1, "しおさい_東京";
		Case 26:
			SetAnimation = 1, "しおさい_成東";
		Case 27:
			SetAnimation = 1, "しおさい_銚子_総武本線";
		Case 28:
			SetAnimation = 1, "あやめ";
		Case 29:
			SetAnimation = 1, "あやめ_東京";
		Case 30:
			SetAnimation = 1, "あやめ_成田";
		Case 31:
			SetAnimation = 1, "ホームライナー";
		Case 32:
			SetAnimation = 1, "ホームライナー千葉";
		Case 33:
			SetAnimation = 1, "ホームライナー津田沼";
		Case 35:
			SetAnimation = 1, "あやめ_大洗";
		Case 36:
			SetAnimation = 1, "千葉原";
		Case 37:
			SetAnimation = 1, "松岡";
		Case 38:
			SetAnimation = 1, "梅田";
		Case 39:
			SetAnimation = 1, "品川";
		Case 40:
			SetAnimation = 1, "浅草";
		Case 41:
			SetAnimation = 1, "日光";
		Case 42:
			SetAnimation = 1, "飯能";
		      }
		ApplySwitch "座席"{
		Case 0:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_JRE255_tex/LED/座席/Non.png";
		Case 1:
			SetAnimation = 2, "自由席";
		Case 2:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_JRE255_tex/LED/座席/non-reserved.png";
		Case 3:
			SetAnimation = 2, "自由席(経由表示有)";
		Case 4:
			SetAnimation = 2, "指定席";
		Case 5:
			ChangeTexture = 2,"../common_hayabusa/hayabusa_JRE255_tex/LED/座席/reserved.png";
		Case 6:
			SetAnimation = 2, "指定席(経由表示有)";
		      }
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (-7.5, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (7.5, 1.0);
		}
}
	Object3D "shadow"{
		ModelFileName = "../hayabusa_JRE255_1/shadow.x";
		ModelScale = 1.0;
		Turn = yes;
		ApplySwitch "簡易シャドウ"{
		Case 0:
　　　　　　　　　　　　ChangeModel = "",1.0;
			}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			}
		}
	Object3D "DoorL"{
		ModelFileName = "doorl-l.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1;
		If("_DOOR1" && "ドア"==0) || ("_DOOR1"==0 && "ドア"==1) || ("_DOOR1"==1 && "ドア"==2){
				StaticMove{
				Displacement = (0.0, 0.0, 0.5);
				PreAnimationDelay = 0.5;
				AnimationTime = 3.0;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "DoorL2"{
		ModelFileName = "doorl-r.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1;
		If("_DOOR1" && "ドア"==0) || ("_DOOR1"==0 && "ドア"==1) || ("_DOOR1"==1 && "ドア"==2){
				StaticMove{
				Displacement = (0.0, 0.0, -0.5);
				PreAnimationDelay = 0.5;
				AnimationTime = 3.0;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);

		}
	}
	
	Object3D "DoorR"{
		ModelFileName = "doorr-l.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1;
		If("_DOOR2" && "ドア"==0) || ("_DOOR2"==0 && "ドア"==2) || ("_DOOR2"==1 && "ドア"==1){
				StaticMove{
				Displacement = (-0.0, 0.0, 0.5);
				PreAnimationDelay = 0.5;
				AnimationTime = 3.0;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "DoorR2"{
		ModelFileName = "doorr-r.x";
		ModelScale = 1.0;
		AlphaZeroTest = 0,1;
		If("_DOOR2" && "ドア"==0) || ("_DOOR2"==0 && "ドア"==2) || ("_DOOR2"==1 && "ドア"==1){
			StaticMove{
				Displacement = (-0.0, 0.0, -0.5);
				PreAnimationDelay = 0.5;
				AnimationTime = 3.0;
			}
		}
		
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "doorlampL"{
		ModelFileName = "車側灯.x";
		ModelScale = 1.0;
		NoShadow = 0,1;

		If("_DOOR1" && "ドア"==0) || ("_DOOR1"==0 && "ドア"==1) || ("_DOOR1"==1 && "ドア"==2){
			StaticRotation{
				RotationAxis = (0.0, -1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 0.4;
				PreReverseDelay = 3.2;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (1.4, 0.0, 0.0);
		}
	}

	Object3D "doorlampR"{
		ModelFileName = "車側灯.x";
		ModelScale = 1.0;
		NoShadow = 0,1;


		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}

		If("_DOOR2" && "ドア"==0) || ("_DOOR2"==0 && "ドア"==2) || ("_DOOR2"==1 && "ドア"==1){
			StaticRotation{
				RotationAxis = (0.0, -1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 0.4;
				PreReverseDelay = 3.2;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (-1.4, 0.0, 0.3);
		}
	}
//サウンドエフェクト
	
//ドア
If ("サウンド"==1 && "ドア"==0) || ("サウンド"==1 && "ドア"==1) || ("サウンド"==1 && "ドア"==2){
	ApplySwitch "_DOOR1"|"_DOOR2"{
	Case 0:
	If 0=="_VELOCITY"{
		SoundEffect{
		WaveFileName = "../common_hayabusa/hayabusa_metro08_tex/sound/doorcls.wav";
		AttachObject = "MainBody";
		SourceCoord = (0.0, 3.0 ,0.0);
		Loop = no;
		}
	}
	Case 1:
		SoundEffect{
		WaveFileName = "../common_hayabusa/hayabusa_metro08_tex/sound/dooropn.wav";
		AttachObject = "MainBody";
		SourceCoord = (0.0, 3.0 ,0.0);
		Loop = no;
		}
	}
}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.3, 2.9, -9.50);
			DirLink = "Bogie1";
		}
	}
}
