PluginHeader{
	RailSimVersion = 2.10;
	PluginType = Train;
	PluginName = "崙揝 DD15宍僨傿乕僛儖婡娭幵晽";
	PluginAuthor = "NyahoTaro";
	IconTexture = "../../Struct/common_nya/nyaicon.png";
	Description = "仸敿塱媣儀乕僞斉";
}

TrainInfo{
	FrontLimit = 11.0;
	TailLimit = -11.0;
	MaxVelocity = 70.0;
//	MaxAcceleration = 6.0;
//	MaxDeceleration = 6.4;
	MaxAcceleration = 2.0;
	MaxDeceleration = 2.5;
}

DefineSwitch "仭僄儞僕儞"{
	GroupCommon = "仭僄儞僕儞";
	Entry = "ON";
	Entry = "OFF";
}

DefineSwitch "仭儔僀僩"{
	GroupCommon = "仭儔僀僩";
	Entry = "僆儞";
	Entry = "僆僼";
	Entry = "尭摂";
}

DefineSwitch "劌擖姺摂"{
	GroupCommon = "劌擖姺摂";
	Entry = "OFF";
	Entry = "ON";
}

DefineSwitch "劋嶌嬈摂"{
	Entry = "OFF";
	Entry = "ON(慜曽偺傒)";
	Entry = "ON(慜屻)";
}


DefineSwitch "仭儔僢僙儖摦嶌"{
}
DefineSwitch "劌僼儔儞僕儍乕"{
	Entry = "枹幚憰";
}
DefineSwitch "劌慜晹庡梼"{
	Entry = "暵";
	Entry = "奐";
	Entry = "擺";
}
DefineSwitch "劌屻晹庡梼"{
	Entry = "暵";
	Entry = "奐";
	Entry = "擺";
}
DefineSwitch "劋曗彆梼"{
	Entry = "暵";
	Entry = "奐";
}
DefineSwitch "仭奼挘愝掕"{
}
DefineSwitch "劌幵斣"{
	Entry = "DD15 50";
	Entry = "傛偔傢偐傜側偄儌僲仸僗僇乕僩偑側偄偺偼巇條";
}
DefineSwitch "劌幵懱摦梙"{
	GroupCommon = "nya@幵懱摦梙";
	Entry = "枹幚憰";
}
DefineSwitch "劌僔儍僪僂"{
	GroupCommon = "rs2c00D";
	Entry = "枹幚憰";
//	Entry = "僆儞";
//	Entry = "僆僼";
}
DefineSwitch "劌攔墝"{
	Entry = "ON";
	Entry = "OFF";
}
DefineSwitch "劌儔僀僩僼儗傾價乕儉"{
	Entry = "僆僼";
	Entry = "帺摦";
	Entry = "忢帪";
}
DefineSwitch "劋僥乕儖價乕儉"{
	Entry = "僆僼";
	Entry = "帺摦";
	Entry = "忢帪";
}
DefineSwitch "仭搤婫愝掕"{}
DefineSwitch "劌搤僄僼僃僋僩"{
	GroupCommon = "rs2c00A";
	Entry = "帺摦";
	Entry = "僆僼";
	Entry = "僆儞";
}
DefineSwitch "劌愥晅拝僥僋僗僠儍"{
	GroupCommon = "nya_snowtex";
	Entry = "僆儞";
	Entry = "僆僼";
}
DefineSwitch "劋愥墝"{
	GroupCommon = "nya_snowsmoke";
	Entry = "僆儞";
	Entry = "僆僼";
}
DefineSwitch "仭僒僂儞僪愝掕"{
}
DefineSwitch "劌僒僂儞僪"{
//	GroupCommon = "rs2c00C";
	Entry = "枹幚憰";
//	Entry = "ON";
//	Entry = "OFF";
}
DefineSwitch "劋婦揓"{
	Entry = "枹幚憰";
//	Entry = "OFF";
//	Entry = "ON";
}


PrimaryAssembly{
//-	幵椫掕媊
	Axle "Wheel1"{
		ModelFileName = "wheel.x";	ModelScale = 1.0;	EnvMap = 0;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "wheel@s.png";
			ChangeTexture = 1, "wheel@s.png";
		}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (4.7, 0.43);
	}
	Axle "Wheel2"{
		ModelFileName = "wheel.x";	ModelScale = 1.0;	EnvMap = 0;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "wheel@s.png";
			ChangeTexture = 1, "wheel@s.png";
		}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (2.5, 0.43);
	}
	Axle "Wheel3"{
		ModelFileName = "wheel.x";	ModelScale = 1.0;	EnvMap = 0;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "wheel@s.png";
			ChangeTexture = 1, "wheel@s.png";
		}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-2.5, 0.43);
	}
	Axle "Wheel4"{
		ModelFileName = "wheel.x";	ModelScale = 1.0;	EnvMap = 0;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "wheel@s.png";
			ChangeTexture = 1, "wheel@s.png";
		}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-4.7, 0.43);
	}


	Body "Bogie1"{
		ModelFileName = "Truck.x";	ModelScale = 1.0;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "bane@s.png";
			ChangeTexture = 1, "black_base@s.png";
		}
		JointZY "Wheel1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.1, 0.0);
		}
		JointZY "Wheel2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.1, 0.0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "Truck.x";	ModelScale = 1.0;	Turn = yes;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "bane@s.png";
			ChangeTexture = 1, "black_base@s.png";
		}
		JointZY "Wheel3"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.1, 0.0);
		}
		JointZY "Wheel4"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.1, 0.0);
		}
	}


//-	幵懱
	Body "MainBody"{
		ModelFileName = "Body.x";	ModelScale = 1.0;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "main_side@s.png";
			ChangeTexture = 1, "cab-front@s.png";
			ChangeTexture = 2, "cab-side@s.png";
			ChangeTexture = 4, "main-other@s.png";
			ChangeTexture = 5, "ud@s.png";
		}
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (3.6, 0.43);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-3.6, 0.43);
		}
	}

//-	僗僇乕僩
/*
	Object3D "Skart-F"{
		ModelFileName = "";

		ApplySwitch "劌幵斣"{
		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 0.0, 0.0);
		}
	}
*/

//-	儔僢僙儖僿僢僪F
	Object3D "R-Head-F"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0:
			ChangeModel = "Head-Rasseru.x", 1.0;
		}
		AlphaZeroTest = 1;	NoCastShadow = 1;
		If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "_FRONT"==0 & "_CONNECT1"==0 {
			ShiftTexture = 2, 0.50, 0.0;
			ChangeMaterial{
				MaterialID = 2;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "劌擖姺摂"==0 {
			If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "_FRONT"==1 & "_CONNECT1"==0 {
				ShiftTexture = 3, 0.50, 0.0;
				ChangeMaterial{
					MaterialID = 3;
					Emissive = 0.5, 0.5, 0.5;
				}
				ShiftTexture = 4, 0.50, 0.0;
				ChangeMaterial{
					MaterialID = 4;
					Emissive = 0.5, 0.5, 0.5;
				}
			}
		}Else{
			ShiftTexture = 4, 0.50, 0.0;
			ChangeMaterial{
				MaterialID = 4;
				Emissive = 0.5, 0.5, 0.5;
			}
		}
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "Head@s.png";
			ChangeTexture = 1, "Head@s.png";
		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 0.0, 0.0);
		AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "R-Head-MWing-F"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0:
			If "劌慜晹庡梼"==2 {						ChangeModel = "Head-Rasseru-MWing03.x", 1.0;	}
			If "劌慜晹庡梼"==1 & "_FRONT"==0 | "劌屻晹庡梼"==1 & "_FRONT"==1 {	ChangeModel = "Head-Rasseru-MWing02.x", 1.0;	}
			Else{								ChangeModel = "Head-Rasseru-MWing01.x", 1.0;	}
		}
		AlphaZeroTest = 1;	NoCastShadow = 1;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "Head@s.png";
			ChangeTexture = 1, "Head@s.png";
		}
		Joint3D "R-Head-F"{
		AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "R-Head-SWing-F"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0:
			If "劋曗彆梼"==1 & "_FRONT"==0 {	ChangeModel = "Head-Rasseru-SWing02.x", 1.0;	}
			Else{				ChangeModel = "Head-Rasseru-SWing01.x", 1.0;	}
		}
		AlphaZeroTest = 1;	NoCastShadow = 1;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "Head@s.png";
			ChangeTexture = 1, "Head@s.png";
		}
		Joint3D "R-Head-F"{
		AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	儔僢僙儖僿僢僪R
	Object3D "R-Head-R"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0:
			ChangeModel = "Head-Rasseru.x", 1.0;
		}
		AlphaZeroTest = 1;	NoCastShadow = 1;
		If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "_FRONT"==1 & "_CONNECT2"==0 {
			ShiftTexture = 2, 0.50, 0.0;
			ChangeMaterial{
				MaterialID = 2;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		If "劌擖姺摂"==0 {
			If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "_FRONT"==0 & "_CONNECT2"==0 {
				ShiftTexture = 3, 0.50, 0.0;
				ChangeMaterial{
					MaterialID = 3;
					Emissive = 0.5, 0.5, 0.5;
				}
				ShiftTexture = 4, 0.50, 0.0;
				ChangeMaterial{
					MaterialID = 4;
					Emissive = 0.5, 0.5, 0.5;
				}
			}
		}Else{
			ShiftTexture = 4, 0.50, 0.0;
			ChangeMaterial{
				MaterialID = 4;
				Emissive = 0.5, 0.5, 0.5;
			}
		}
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "Head@s.png";
			ChangeTexture = 1, "Head@s.png";
		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 0.0, 0.0);
		AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "R-Head-MWing-R"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0:
			If "劌屻晹庡梼"==2 {						ChangeModel = "Head-Rasseru-MWing03.x", 1.0;	}
			If "劌慜晹庡梼"==1 & "_FRONT"==1 | "劌屻晹庡梼"==1 & "_FRONT"==0 {	ChangeModel = "Head-Rasseru-MWing02.x", 1.0;	}
			Else{								ChangeModel = "Head-Rasseru-MWing01.x", 1.0;	}
		}
		AlphaZeroTest = 1;	NoCastShadow = 1;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "Head@s.png";
			ChangeTexture = 1, "Head@s.png";
		}
		Joint3D "R-Head-R"{
		AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "R-Head-SWing-R"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0:
			If "劋曗彆梼"==1 & "_FRONT"==1 {	ChangeModel = "Head-Rasseru-SWing02.x", 1.0;	}
			Else{				ChangeModel = "Head-Rasseru-SWing01.x", 1.0;	}
		}
		AlphaZeroTest = 1;	NoCastShadow = 1;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "Head@s.png";
			ChangeTexture = 1, "Head@s.png";
		}
		Joint3D "R-Head-R"{
		AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	僗僲乕僾儔僂
	Object3D "Snowplow_F"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 1:
			ChangeModel = "snowplow.x", 1.0;
		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 0.0, 0.0);
		AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "Snowplow_R"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 1:
			ChangeModel = "snowplow.x", 1.0;
		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 0.0, 0.0);
		AttachDir = (0.0, 0.0, -1.0);
		}
	}


//-	擱椏僞儞僋
	Object3D "ud"{
		ModelFileName = "ud.x";
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "ud@s.png";
		}
		Joint3D "MainBody"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}


//-	慁夞憢
	Object3D "senkai-mado_S_F"{
		ModelFileName = "";	NoCastShadow = 0;
		ApplySwitch "劌幵斣"{
		Case 0,1:
			ChangeModel = "senkai-mado_s.x", 1.0;

		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 3.255, 0.981);
		}
	}

	Object3D "senkai-mado_S_R"{
		ModelFileName = "";	NoCastShadow = 0;
		ApplySwitch "劌幵斣"{
		Case 0,1:
			ChangeModel = "senkai-mado_s.x", 1.0;

		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 3.255, -0.981);
		AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "senkai-mado_B_F"{
		ModelFileName = "";	NoCastShadow = 0;
		ApplySwitch "劌幵斣"{
		Case 0:
			ChangeModel = "senkai-mado_b.x", 1.0;

		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 3.185, 0.981);
		}
	}

	Object3D "senkai-mado_B_R"{
		ModelFileName = "";	NoCastShadow = 0;
		ApplySwitch "劌幵斣"{
		Case 0:
			ChangeModel = "senkai-mado_b.x", 1.0;

		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 3.185, -0.981);
		AttachDir = (0.0, 0.0, -1.0);
		}
	}


/***楢寢婍***/
	Object3D "Coupler_F"{
		ModelFileName = "../common_nya/Coupler/AC/Coupler.x";
		ModelScale = 0.1;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "../common_nya/Coupler/AC/Coupler_snow.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.88, 6.8);
		}
	}
	Object3D "Coupler_R"{
		ModelFileName = "../common_nya/Coupler/AC/Coupler.x";
		ModelScale = 0.1;
		If (("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2))&("劌愥晅拝僥僋僗僠儍"==0) {
			ChangeTexture = 0, "../common_nya/Coupler/AC/Coupler_snow.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.88, -6.8);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//-	僿僢僪儔僀僩F
	Object3D "HeadLight_F"{
		ModelFileName = "Light-Head.x";
		EnvMap = 1;
/*
		If "_FRONT"==0 & "_CONNECT1"==0 {
			If "仭儔僀僩"==0 | "仭儔僀僩"==2 {
				ShiftTexture = 0, 0.5, 0.0;
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 1.0, 1.0, 1.0;
				}
			}
		}
*/
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}


//-	僿僢僪儔僀僩R
	Object3D "HeadLight_R"{
		ModelFileName = "Light-Head.x";
		EnvMap = 1;
/*
		If "_FRONT"==1 & "_CONNECT2"==0 {
			If "仭儔僀僩"==0 | "仭儔僀僩"==2 {
				ShiftTexture = 0, 0.5, 0.0;
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 1.0, 1.0, 1.0;
				}
			}
		}
*/
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

//-	嶌嬈摂F
	Object3D "SagyouLight_F"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0,1:
			ChangeModel = "Light-Sagyou.x", 1.0;

		}
		If "劋嶌嬈摂"==1 & "_FRONT"==0 & "_CONNECT1"==0 | "劋嶌嬈摂"==2 {
			ShiftTexture = 0, 0.5, 0.0;
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}


//-	嶌嬈摂R
	Object3D "SagyouLight_R"{
		ModelFileName = "";
		ApplySwitch "劌幵斣"{
		Case 0,1:
			ChangeModel = "Light-Sagyou.x", 1.0;

		}
		If "劋嶌嬈摂"==1 & "_FRONT"==1 & "_CONNECT2"==0 | "劋嶌嬈摂"==2 {
			ShiftTexture = 0, 0.5, 0.0;
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 1.0, 1.0, 1.0;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//-	價乕儉Dummy
	Object3D "Dummy_Baem"{
		ModelFileName = "";
		If "仭儔僀僩"==0 | "仭儔僀僩"==2 {
			If "_FRONT"==0 & "_CONNECT1"==0 {
				StaticMove{	Displacement =(0.0, 3.25, 6.9);		}
			}
			If "_FRONT"==1 & "_CONNECT2"==0 {
				StaticMove{	Displacement =(0.0, 3.25, -6.9);	}
				StaticRotation{	RotationAxis = (0.0, 1.0, 0.0);	RotationAngle = 180;	}
			}
		}
		Joint3D "MainBody"{
		AttachCoord = (0.0, 0.0, 0.0);
		AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "Dummy_BaemL"{
		ModelFileName = "";

		Joint3D "Dummy_Baem"{
		AttachCoord = (-1.29, 0.0, 0.0);
		AttachDir = (0.0, 0.0, 1.0);
		}
	}
	Object3D "Dummy_BaemR"{
		ModelFileName = "";
		Joint3D "Dummy_Baem"{
		AttachCoord = (1.29, 0.0, 0.0);
		AttachDir = (0.0, 0.0, 1.0);
		}
	}


//////////////////////////////
//
//	攔墝
//
//////////////////////////////

If "仭僄儞僕儞"==0 & "劌攔墝"==0{
		Particle{
			TextureFileName = "../common_nya/effect/smoke2.png";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 3.7, 1.14);
			MinQty = 10.0;
			RotationSpeed = 0.15, -0.15;	// -k-build
			Lifetime = 1.2, 1.4;
			Direction = (0.5, 0.5, 0.5), (-0.5, 0.5, -0.5);
			InitialRadius = 0.1, 0.1;
			FinalRadius = 0.4, 0.4;
			Color = #11434e50, #22434e50;
			BlendMode = Volume;		// -k-build
		//	BlendMode = Alpha;
			AirResistance = 0.25;
			Gravity = 0.0;
			Turbulence = 1.0;
		}
		Particle{
			TextureFileName = "../common_nya/effect/smoke2.png";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 3.7, -1.14);
			MinQty = 10.0;
			RotationSpeed = 0.15, -0.15;	// -k-build
			Lifetime = 1.2, 1.4;
			Direction = (0.5, 0.5, 0.5), (-0.5, 0.5, -0.5);
			InitialRadius = 0.1, 0.1;
			FinalRadius = 0.4, 0.4;
			Color = #11434e50, #22434e50;
			BlendMode = Volume;		// -k-build
		//	BlendMode = Alpha;
			AirResistance = 0.25;
			Gravity = 0.0;
			Turbulence = 1.0;
		}
	If "_ACCEL">1 {
		Particle{
			TextureFileName = "../common_nya/effect/smoke2.png";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 3.7, 1.14);
			MinQty = 20.0;
			RotationSpeed = 0.15, -0.15;	// -k-build
			Lifetime = 2.0, 2.4;
			Direction = (0.5, 2.0, 0.5), (-0.5, 2.0, -0.5);
			InitialRadius = 0.1, 0.1;
			FinalRadius = 1.0, 1.0;
			Color = #55434e50, #66434e50;
			BlendMode = Volume;		// -k-build
		//	BlendMode = Alpha;
			AirResistance = 0.25;
			Gravity = 0.01;
			Turbulence = 1.0;
		}
		Particle{
			TextureFileName = "../common_nya/effect/smoke2.png";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 3.7, -1.14);
			MinQty = 20.0;
			RotationSpeed = 0.15, -0.15;	// -k-build
			Lifetime = 2.0, 2.4;
			Direction = (-0.5, 2.0, -0.5), (0.5, 2.0, 0.5);
			InitialRadius = 0.1, 0.1;
			FinalRadius = 1.0, 1.0;
			Color = #55434e50, #66434e50;
			BlendMode = Volume;		// -k-build
		//	BlendMode = Alpha;
			AirResistance = 0.25;
			Gravity = 0.01;
			Turbulence = 1.0;
		}
	}
	If "_ACCEL">1 & "_VELOCITY"<3 {
		Particle{
			TextureFileName = "../common_nya/effect/smoke2.png";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 3.7, 1.14);
			MinQty = 30.0;
			RotationSpeed = 0.15, -0.15;	// -k-build
			Lifetime = 3.0, 3.4;
			Direction = (0.5, 2.0, 0.5), (-0.5, 2.0, -0.5);
			InitialRadius = 0.1, 0.1;
			FinalRadius = 1.6, 1.6;
			Color = #88303030, #88505050;
			BlendMode = Volume;		// -k-build
		//	BlendMode = Alpha;
			AirResistance = 0.3;
			Gravity = 0.01;
			Turbulence = 1.0;
		}
		Particle{
			TextureFileName = "../common_nya/effect/smoke2.png";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 3.7, -1.14);
			MinQty = 30.0;
			RotationSpeed = 0.15, -0.15;	// -k-build
			Lifetime = 3.0, 3.4;
			Direction = (-0.5, 2.0, -0.5), (0.5, 2.0, 0.5);
			InitialRadius = 0.1, 0.1;
			FinalRadius = 1.6, 1.6;
			Color = #88303030, #88505050;
			BlendMode = Volume;		// -k-build
		//	BlendMode = Alpha;
			AirResistance = 0.3;
			Gravity = 0.01;
			Turbulence = 1.0;
		}
	}
}//僄儞僕儞

//////////////////////////////
//
//	儔僀僩僼儗傾價乕儉
//
//////////////////////////////

	If "_FRONT"==0 & "_CONNECT1"==0 {
	//-	庛
		If "仭儔僀僩"==0 | "仭儔僀僩"==2 {
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.29, 3.25, 6.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 35.0;
					Texture{
						Distance = 0.0;
						Radius = 0.3;
						TexFileName = "../common_nya/effect/flare4.png";
						Color = #aaffffc0;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.29, 3.25, 6.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
		}
	//-	嫮
		If "仭儔僀僩"==0 & !("_DOOR1" | "_DOOR2") {
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.29, 3.25, 6.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 15.0;
					Texture{
						Distance = 0.0;
						Radius = 0.5;
						TexFileName = "../common_nya/effect/flare1.png";
						Color = #ffffffc0;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.29, 3.25, 6.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
		}
	//-	嫮2
		If "仭儔僀僩"==0 & !("_DOOR1" | "_DOOR2") & "_NIGHT"{
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.29, 3.25, 6.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 15.0;
					Texture{
						Distance = 0.0;
						Radius = 0.8;
						TexFileName = "../common_nya/effect/flare4.png";
						Color = #ffffffc0;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.29, 3.25, 6.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
		}
	}
	If "_FRONT"==1 & "_CONNECT2"==0 {
	//-	庛
		If "仭儔僀僩"==0 | "仭儔僀僩"==2 {
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.29, 3.25, -6.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 35.0;
					Texture{
						Distance = 0.0;
						Radius = 0.3;
						TexFileName = "../common_nya/effect/flare4.png";
						Color = #aaffffc0;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.29, 3.25, -6.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
		}
	//-	嫮
		If "仭儔僀僩"==0 & !("_DOOR1" | "_DOOR2") {
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.29, 3.25, -6.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 15.0;
					Texture{
						Distance = 0.0;
						Radius = 0.5;
						TexFileName = "../common_nya/effect/flare1.png";
						Color = #ffffffc0;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.29, 3.25, -6.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
		}
	//-	嫮2
		If "仭儔僀僩"==0 & !("_DOOR1" | "_DOOR2") & "_NIGHT"{
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.29, 3.25, -6.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 15.0;
					Texture{
						Distance = 0.0;
						Radius = 0.8;
						TexFileName = "../common_nya/effect/flare4.png";
						Color = #ffffffc0;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.29, 3.25, -6.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
		}
	}
	If "劌擖姺摂"==0 {
		If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "_FRONT"==1 & "_CONNECT1"==0 {
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.19, 2.59, 8.1);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 35.0;
					Texture{
						Distance = 0.0;
						Radius = 0.25;
						TexFileName = "../common_nya/effect/flare1.png";
						Color = #ffbb0000;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.14, 2.59, 8.1);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
		}
		If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "_FRONT"==0 & "_CONNECT2"==0 {
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (1.14, 2.59, -8.1);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "MainBody";
				SourceCoord = (-1.19, 2.59, -8.1);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
		}
	}Else{
		Headlight{
			AttachObject = "MainBody";
			SourceCoord = (1.19, 2.59, 8.1);
			Direction = (0.0, 0.0, 1.0);
			MaxDistance = 5.0;
		}
		Headlight{
			AttachObject = "MainBody";
			SourceCoord = (-1.19, 2.59, -8.1);
			Direction = (0.0, 0.0, -1.0);
			MaxDistance = 5.0;
		}
	}




//-	儔僀僩僼儗傾價乕儉
	If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "劌儔僀僩僼儗傾價乕儉"==1 & "_NIGHT"==1 | "劌儔僀僩僼儗傾價乕儉"==2  {
		If ("_FRONT"==0 & "_CONNECT1"==0) || ("_FRONT"==1 & "_CONNECT2"==0) {
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.00, 0.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 0.3;
						TexFileName = "Light_Beam.dds";
						Color = #80bfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.00, 0.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.00, 0.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.00, 0.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}

			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.05, 0.3);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 0.4;
						TexFileName = "Light_Beam.dds";
						Color = #73bfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.05, 0.3);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.05, 0.3);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.05, 0.3);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}

			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.10, 0.7);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 0.5;
						TexFileName = "Light_Beam.dds";
						Color = #66bfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.10, 0.7);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.10, 0.7);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.10, 0.7);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}

			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.15, 1.2);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 0.6;
						TexFileName = "Light_Beam.dds";
						Color = #59bfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.15, 1.2);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.15, 1.2);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.15, 1.2);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}

			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.20, 1.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 0.7;
						TexFileName = "Light_Beam.dds";
						Color = #4dbfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.20, 1.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.20, 1.8);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.20, 1.8);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}

			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.25, 2.5);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 0.8;
						TexFileName = "Light_Beam.dds";
						Color = #40bfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.25, 2.5);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.25, 2.5);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.25, 2.5);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}

			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.30, 3.3);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 0.9;
						TexFileName = "Light_Beam.dds";
						Color = #33bfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.30, 3.3);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.30, 3.3);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.30, 3.3);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}

			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.35, 4.2);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
				LensFlare{
					StartAngle = 120.0;
					Texture{
						Distance = 0.0;
						Radius = 1.0;
						TexFileName = "Light_Beam.dds";
						Color = #26bfbf93;
					}
				}
			}
			Headlight{
				AttachObject = "Dummy_BaemL";
				SourceCoord = (0.0, -0.35, 4.2);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.35, 4.2);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 5.0;
			}
			Headlight{
				AttachObject = "Dummy_BaemR";
				SourceCoord = (0.0, -0.35, 4.2);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 5.0;
			}
		}
	}


//-	僥乕儖價乕儉
	If ("仭儔僀僩"==0 | "仭儔僀僩"==2) & "劋僥乕儖價乕儉"==1 & "_NIGHT"==1 | "劋僥乕儖價乕儉"==2  {
		If ("_FRONT"==0 & "_CONNECT1"==0) {
			Particle{
				TextureFileName = "Light_Beam.dds";
				AttachObject = "MainBody";
				SourceCoord = (1.19, 2.59, -8.1);
				MinQty = 0.0;
				MaxQty = 200.0;
				VelocityRel = 0.5;
				Lifetime = 10.0, 9.5;
				Direction = (0.0, 0.0, 0.0), (0.0, 0.0, 0.0);
				InitialRadius = 0.3, 0.3;
				FinalRadius = 0.1, 0.1;
				Color = #55ff0000, #55ff0000;
				BlendMode = Add;
				AirResistance = 100.0;
				Gravity = 0.0;
				Turbulence = 0.0;
			}

			Particle{
				TextureFileName = "Light_Beam.dds";
				AttachObject = "MainBody";
				SourceCoord = (-1.19, 2.59, -8.1);
				MinQty = 0.0;
				MaxQty = 200.0;
				VelocityRel = 0.5;
				Lifetime = 10.0, 9.5;
				Direction = (0.0, 0.0, 0.0), (0.0, 0.0, 0.0);
				InitialRadius = 0.3, 0.3;
				FinalRadius = 0.1, 0.1;
				Color = #55ff0000, #55ff0000;
				BlendMode = Add;
				AirResistance = 100.0;
				Gravity = 0.0;
				Turbulence = 0.0;
			}
		}
		If ("_FRONT"==1 & "_CONNECT2"==0) {
			Particle{
				TextureFileName = "Light_Beam.dds";
				AttachObject = "MainBody";
				SourceCoord = (1.19, 2.59, 8.1);
				MinQty = 0.0;
				MaxQty = 100.0;
				VelocityRel = 0.5;
				Lifetime = 8.0, 7.5;
				Direction = (0.0, 0.0, 0.0), (0.0, 0.0, 0.0);
				InitialRadius = 0.5, 0.5;
				FinalRadius = 0.3, 0.3;
				Color = #55ff0000, #55ff0000;
				BlendMode = Add;
				AirResistance = 100.0;
				Gravity = 0.0;
				Turbulence = 0.0;
			}

			Particle{
				TextureFileName = "Light_Beam.dds";
				AttachObject = "MainBody";
				SourceCoord = (-1.19, 2.59, 8.1);
				MinQty = 0.0;
				MaxQty = 100.0;
				VelocityRel = 0.5;
				Lifetime = 8.0, 7.5;
				Direction = (0.0, 0.0, 0.0), (0.0, 0.0, 0.0);
				InitialRadius = 0.5, 0.5;
				FinalRadius = 0.3, 0.3;
				Color = #55ff0000, #55ff0000;
				BlendMode = Add;
				AirResistance = 100.0;
				Gravity = 0.0;
				Turbulence = 0.0;
			}
		}
	}


//儔僀僩娭學偙偙傑偱


//-	僒僂儞僪
/*
	If "劋婦揓"==1 {
		SoundEffect{
			WaveFileName = "SOUND/horn.wav";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 3.8, 0.0);
			Volume = 0;
			Loop = no;
		}
	}

	If ("劌僒僂儞僪"==0) && ("仭僄儞僕儞"==0) && ("_VELOCITY"==0 || "_ACCEL"<1){
		SoundEffect{
			WaveFileName = "SOUND/idling.wav";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 2.0, 3.6);
			Volume = 0;
			Loop = yes;
		}
	}

	If ("劌僒僂儞僪"==0) && ("仭僄儞僕儞"==0) && ("_VELOCITY"==0 || "_ACCEL"<1){
		SoundEffect{
			WaveFileName = "SOUND/idling.wav";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 2.0, -3.6);
			Volume = 0;
			Loop = yes;
		}
	}

	If ("劌僒僂儞僪"==0) && ("仭僄儞僕儞"==0) && "_ACCEL">1{
		SoundEffect{
			WaveFileName = "SOUND/throttle.wav";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 2.0, 3.6);
			Volume = 0;
			Loop = yes;
		}
	}

	If ("劌僒僂儞僪"==0) && ("仭僄儞僕儞"==0) && "_ACCEL">1{
		SoundEffect{
			WaveFileName = "SOUND/throttle.wav";
			AttachObject = "MainBody";
			SourceCoord = (0.0, 2.0, -3.6);
			Volume = 0;
			Loop = yes;
		}
	}
*/
//僒僂儞僪END

//////////////////////////////
//
//	愥僷乕僥傿僋儖
//
//////////////////////////////

If ("劌搤僄僼僃僋僩"==0 & "_SEASON">=3)|("劌搤僄僼僃僋僩"==2) {
	If "劌慜晹庡梼"==1 & "_FRONT"==0 {
		If "_VELOCITY">=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (1.6, 0.0, 10.0);					MinQty = 20;					Lifetime = 1.2, 1.2;
				Direction = (-3.50, 2.50, -3.00), (-3.50, 2.50, -3.00);		InitialRadius = 0.8, 0.8;			FinalRadius = 2.6, 2.6;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.10;
			}
		}
		If 20<="_VELOCITY" & "_VELOCITY"<=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (1.9, 0.2, 10.0);					MinQty = 5;					Lifetime = 5.0, 5.0;
				Direction = (-2.00, 1.00, -1.50), (-2.00, 1.00, -1.50);		InitialRadius = 0.8, 0.8;			FinalRadius = 2.0, 2.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.020;
			}
		}
		If 10<="_VELOCITY" & "_VELOCITY"<=20{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (1.9, 0.2, 10.0);					MinQty = 5;					Lifetime = 5.0, 5.0;
				Direction = (-1.00, 0.50, -0.80), (-1.00, 0.50, -0.80);		InitialRadius = 0.6, 0.6;			FinalRadius = 1.2, 1.2;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.005;
			}
		}
		If 1<="_VELOCITY" & "_VELOCITY"<=10{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (1.9, 0.2, 10.0);					MinQty = 5;					Lifetime = 10.0, 10.0;
				Direction = (-0.50, 0.20, -0.40), (-0.50, 0.20, -0.40);		InitialRadius = 0.4, 0.4;			FinalRadius = 1.0, 1.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.001;
			}
		}
	}
	If "劌慜晹庡梼"==1 & "_FRONT"==1 {
		If "_VELOCITY">=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (1.6, 0.0, 10.0);					MinQty = 20;					Lifetime = 1.2, 1.2;
				Direction = (-3.50, 2.50, -3.00), (-3.50, 2.50, -3.00);		InitialRadius = 0.8, 0.8;			FinalRadius = 2.6, 2.6;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.10;
			}
		}
		If 20<="_VELOCITY" & "_VELOCITY"<=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (1.9, 0.2, 10.0);					MinQty = 5;					Lifetime = 5.0, 5.0;
				Direction = (-2.00, 1.00, -1.50), (-2.00, 1.00, -1.50);		InitialRadius = 0.8, 0.8;			FinalRadius = 2.0, 2.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.020;
			}
		}
		If 10<="_VELOCITY" & "_VELOCITY"<=20{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (1.9, 0.2, 10.0);					MinQty = 5;					Lifetime = 5.0, 5.0;
				Direction = (-1.00, 0.50, -0.80), (-1.00, 0.50, -0.80);		InitialRadius = 0.6, 0.6;			FinalRadius = 1.2, 1.2;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.005;
			}
		}
		If 1<="_VELOCITY" & "_VELOCITY"<=10{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (1.9, 0.2, 10.0);					MinQty = 5;					Lifetime = 10.0, 10.0;
				Direction = (-0.50, 0.20, -0.40), (-0.50, 0.20, -0.40);		InitialRadius = 0.4, 0.4;			FinalRadius = 1.0, 1.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.001;
			}
		}
	}
	If "劌屻晹庡梼"==1 & "_FRONT"==0 {
		If "_VELOCITY">=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 10;					Lifetime = 1.2, 1.2;
				Direction = (-2.50, 1.50, -2.00), (-2.50, 1.50, -2.00);		InitialRadius = 0.6, 0.6;			FinalRadius = 2.0, 2.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.05;
			}
		}
		If 20<="_VELOCITY" & "_VELOCITY"<=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 5;					Lifetime = 2.0, 2.0;
				Direction = (-2.00, 1.00, -1.50), (-2.00, 1.00, -1.50);		InitialRadius = 0.8, 0.8;			FinalRadius = 2.0, 2.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.020;
			}
		}
		If 10<="_VELOCITY" & "_VELOCITY"<=20{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 5;					Lifetime = 2.0, 2.0;
				Direction = (-1.00, 0.50, -0.80), (-1.00, 0.50, -0.80);		InitialRadius = 0.6, 0.6;			FinalRadius = 1.2, 1.2;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.005;
			}
		}
		If 1<="_VELOCITY" & "_VELOCITY"<=10{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 5;					Lifetime = 4.0, 4.0;
				Direction = (-0.50, 0.20, -0.40), (-0.50, 0.20, -0.40);		InitialRadius = 0.4, 0.4;			FinalRadius = 1.0, 1.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.001;
			}
		}
	}
	If "劌屻晹庡梼"==1 & "_FRONT"==1 {
		If "_VELOCITY">=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 10;					Lifetime = 1.2, 1.2;
				Direction = (-2.50, 1.50, -2.00), (-2.50, 1.50, -2.00);		InitialRadius = 0.6, 0.6;			FinalRadius = 2.0, 2.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.05;
			}
		}
		If 20<="_VELOCITY" & "_VELOCITY"<=30{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 5;					Lifetime = 2.0, 2.0;
				Direction = (-2.00, 1.00, -1.50), (-2.00, 1.00, -1.50);		InitialRadius = 0.8, 0.8;			FinalRadius = 2.0, 2.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.020;
			}
		}
		If 10<="_VELOCITY" & "_VELOCITY"<=20{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 5;					Lifetime = 2.0, 2.0;
				Direction = (-1.00, 0.50, -0.80), (-1.00, 0.50, -0.80);		InitialRadius = 0.6, 0.6;			FinalRadius = 1.2, 1.2;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.005;
			}
		}
		If 1<="_VELOCITY" & "_VELOCITY"<=10{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-R";
				SourceCoord = (-1.0, 0.0, -8.0);				MinQty = 5;					Lifetime = 4.0, 4.0;
				Direction = (-0.50, 0.20, -0.40), (-0.50, 0.20, -0.40);		InitialRadius = 0.4, 0.4;			FinalRadius = 1.0, 1.0;
				Color = #ffffffff, #ffffffff;					BlendMode = Alpha;				Gravity = 0.001;
			}
		}
	}
	If "劋愥墝"==0 {
		If "_FRONT"==0 {
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (0.0, -0.0, -11.0);				
					MinQty = 0;
					MaxQty = 10;
					VelocityRel = 0.1;
					Lifetime = 6.0, 8.0;
				Direction = (0.00, 0.40, 0.00), (0.00, 0.40, 0.00);		InitialRadius = 2.0, 2.0;			FinalRadius = 6.0, 8.0;
				Color = #22ffffff, #44ffffff;					BlendMode = Alpha;
				AirResistance = 1.0;
				Gravity = 0.001;
				Turbulence = 1.0;
			}
		}Else{
			Particle{
				TextureFileName = "../common_nya/Effect/Snow5.png";		AttachObject = "R-Head-MWing-F";
				SourceCoord = (0.0, -0.0, 11.0);				
					MinQty = 0;
					MaxQty = 10;
					VelocityRel = 0.1;
					Lifetime = 6.0, 8.0;
				Direction = (0.00, 0.40, 0.00), (0.00, 0.40, 0.00);		InitialRadius = 2.0, 2.0;			FinalRadius = 6.0, 8.0;
				Color = #22ffffff, #44ffffff;					BlendMode = Alpha;
				AirResistance = 1.0;
				Gravity = 0.001;
				Turbulence = 1.0;
			}
		}
	}

}//搤僄僼僃僋僩End
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (-0.6, 3.3, 1.0);
			DirLink = "Bogie1";
		}
	}
	TailCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.6, 3.3, -1.0);
			DirLink = "Bogie2";
		}
	}
}
