
###############
### Ukraine ###
###############


### Motorized

### VEHICLE
entity = {
	name = "UKR_motorized_vehicle_entity"
	pdxmesh = "generic_motorized_mesh"
	
	state = { name = "idle"				animation = "idle" 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "move" 	 		animation_blend_time = 0.3 animation_speed = 1.0 
		event = { time = 0 node="left_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { time = 0 node="right_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { trigger_once = yes sound = { soundeffect = "motorized_unit_move_animation" } }
	}
	state = { name = "death"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "idle" 	animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "attack"				animation = "move" 					animation_blend_time = 0.3 animation_speed = 1.0
		event = { time = 0 node="left_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { time = 0 node="right_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { trigger_once = yes sound = { soundeffect = "motorized_unit_move_animation" } }
	}
	state = { name = "defend"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "training"				animation = "idle" 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"			animation = "move" 			animation_blend_time = 0.3 animation_speed = 1.0
		event = { time = 0 node="left_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { time = 0 node="right_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { trigger_once = yes sound = { soundeffect = "motorized_unit_move_animation" } }
	}
	scale = 0.6			
}

# INFANTRY - Rifle (no MGs allowed in trucks)
entity = {
	name = "UKR_vehicle_infantry_rifle_entity"
	pdxmesh = "UKR_infantry_rifle_mesh"	
	
	state = { name = "attack"			animation = "charge_rifle" 		animation_blend_time = 0.0  animation_speed = 1.0 looping = no next_state = "attack" chance = 2 propagate_state = { rifle2 = "idle" } }
	state = { name = "attack"			animation = "charge_rifle_shoot" 	animation_blend_time = 0.0  animation_speed = 1.0 looping = no next_state = "attack" chance = 1 }
	state = { name = "defend"			animation = "attack" 			animation_blend_time = 0.3  animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "support_attack" 	animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"				animation = "move" 		 		animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "retreat" 	 		animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "death"			animation = "death" 			animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "idle"				animation = "idle"       		animation_blend_time = 0.3 animation_speed = 1.0 chance = 15 looping = no }
	state = { name = "idle"				animation = "long_idle02" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "idle"				animation = "long_idle03" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no propagate_state = { lighter = "smoke" }
		event = { time = 0 node="head" particle = "cigarette_smoke_particle"  keep_particle = yes }
	}
	state = { name = "idle"				animation = "long_idle04" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "idle"				animation = "long_idle05" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "training" 			animation_blend_time = 0.3 animation_speed = 1.0 chance = 2 looping = no }
	state = { name = "training"				animation = "jumping_jacks" 	animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "pushup" 			animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "guard_rifle" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "aim_exercise" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	
	attach = { 	name = "rifle1"	Right_Hand_node = "GER_infantry_weapon_rifle_right_entity" }	
	attach = { 	name = "rifle4"	Root_node_2 = "GER_infantry_weapon_rifle_right_entity" }	
	attach = { 	name = "rifle2"	Left_Hand_node = "GER_infantry_weapon_rifle_left_entity" }
	attach = { 	name = "rifle3"	mid_back_node = "GER_infantry_weapon_rifle_long_idle_entity" }
	
	attach = { 	name = "lighter"			Right_Hand_node_4 = "lighter_entity" }
	attach = { 	name = "cigarette1"			Right_Hand_node_2 = "cigarette_entity" }
	attach = { 	name = "cigarette_package1"	Right_Hand_node_3 = "cigarette_package_entity" }
	attach = { 	name = "cigarette_package2"	Left_Hand_node_2 = "cigarette_package_entity" }
	attach = { 	name = "cigarette2"			Root_node_1 = "cigarette_entity" }
	
	scale = 0.8			
}

# FINAL MOTORIZED - VEHICLE + MODEL
entity = {
	name = "UKR_motorized_entity"
	pdxmesh = "motorized_frame_mesh"
	
	state = { name = "idle"				animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "move" 	 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "training"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "death"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "attack"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "defend"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"				animation = "move" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	scale = 1.0
	
	attach = { 	name = "vehicle"			vehicle = "UKR_motorized_vehicle_entity" }
	attach = { 	name = "infantry"			infantry = "UKR_vehicle_infantry_rifle_entity" }
}

### Mechanized ----------------------------------------------------------------------------------------------------------------

# FINAL MECHANIZED - VEHICLE + MODEL
entity = {
	name = "UKR_mechanized_entity"
	pdxmesh = "motorized_frame_mesh"
	
	state = { name = "idle"				animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "move" 	 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "training"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "death"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "attack"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "defend"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"				animation = "move" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	scale = 1.0
	
	attach = { 	name = "vehicle"			vehicle = "GER_mechanized_entity" }
	attach = { 	name = "infantry"			infantry = "UKR_vehicle_infantry_rifle_entity" }
}

##################
# Crimean Tatars #
##################

### Motorized

### VEHICLE
entity = {
	name = "CRI_motorized_vehicle_entity"
	pdxmesh = "generic_motorized_mesh"
	
	state = { name = "idle"				animation = "idle" 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "move" 	 		animation_blend_time = 0.3 animation_speed = 1.0 
		event = { time = 0 node="left_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { time = 0 node="right_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { trigger_once = yes sound = { soundeffect = "motorized_unit_move_animation" } }
	}
	state = { name = "death"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "idle" 	animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "attack"				animation = "move" 					animation_blend_time = 0.3 animation_speed = 1.0
		event = { time = 0 node="left_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { time = 0 node="right_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { trigger_once = yes sound = { soundeffect = "motorized_unit_move_animation" } }
	}
	state = { name = "defend"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "training"				animation = "idle" 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"			animation = "move" 			animation_blend_time = 0.3 animation_speed = 1.0
		event = { time = 0 node="left_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { time = 0 node="right_wheel" particle = "tank_moving_tracks_particle"  keep_particle = no trigger_once = yes}
		event = { trigger_once = yes sound = { soundeffect = "motorized_unit_move_animation" } }
	}
	scale = 0.6			
}

# INFANTRY - Rifle (no MGs allowed in trucks)
entity = {
	name = "CRI_vehicle_infantry_rifle_entity"
	pdxmesh = "CRI_infantry_rifle_mesh"	
	
	state = { name = "attack"			animation = "charge_rifle" 		animation_blend_time = 0.0  animation_speed = 1.0 looping = no next_state = "attack" chance = 2 propagate_state = { rifle2 = "idle" } }
	state = { name = "attack"			animation = "charge_rifle_shoot" 	animation_blend_time = 0.0  animation_speed = 1.0 looping = no next_state = "attack" chance = 1 }
	state = { name = "defend"			animation = "attack" 			animation_blend_time = 0.3  animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "support_attack" 	animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"				animation = "move" 		 		animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "retreat" 	 		animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "death"			animation = "death" 			animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "idle"				animation = "idle"       		animation_blend_time = 0.3 animation_speed = 1.0 chance = 15 looping = no }
	state = { name = "idle"				animation = "long_idle02" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "idle"				animation = "long_idle03" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no propagate_state = { lighter = "smoke" }
		event = { time = 0 node="head" particle = "cigarette_smoke_particle"  keep_particle = yes }
	}
	state = { name = "idle"				animation = "long_idle04" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "idle"				animation = "long_idle05" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "training" 			animation_blend_time = 0.3 animation_speed = 1.0 chance = 2 looping = no }
	state = { name = "training"				animation = "jumping_jacks" 	animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "pushup" 			animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "guard_rifle" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	state = { name = "training"				animation = "aim_exercise" 		animation_blend_time = 0.3 animation_speed = 1.0 chance = 1 looping = no }
	
	attach = { 	name = "rifle1"	Right_Hand_node = "GER_infantry_weapon_rifle_right_entity" }	
	attach = { 	name = "rifle4"	Root_node_2 = "GER_infantry_weapon_rifle_right_entity" }	
	attach = { 	name = "rifle2"	Left_Hand_node = "GER_infantry_weapon_rifle_left_entity" }
	attach = { 	name = "rifle3"	mid_back_node = "GER_infantry_weapon_rifle_long_idle_entity" }
	
	attach = { 	name = "lighter"			Right_Hand_node_4 = "lighter_entity" }
	attach = { 	name = "cigarette1"			Right_Hand_node_2 = "cigarette_entity" }
	attach = { 	name = "cigarette_package1"	Right_Hand_node_3 = "cigarette_package_entity" }
	attach = { 	name = "cigarette_package2"	Left_Hand_node_2 = "cigarette_package_entity" }
	attach = { 	name = "cigarette2"			Root_node_1 = "cigarette_entity" }
	
	scale = 0.8			
}

# FINAL MOTORIZED - VEHICLE + MODEL
entity = {
	name = "CRI_motorized_entity"
	pdxmesh = "motorized_frame_mesh"
	
	state = { name = "idle"				animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "move" 	 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "training"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "death"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "attack"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "defend"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"				animation = "move" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	scale = 1.0
	
	attach = { 	name = "vehicle"			vehicle = "CRI_motorized_vehicle_entity" }
	attach = { 	name = "infantry"			infantry = "CRI_vehicle_infantry_rifle_entity" }
}

### Mechanized ----------------------------------------------------------------------------------------------------------------

# FINAL MECHANIZED - VEHICLE + MODEL
entity = {
	name = "CRI_mechanized_entity"
	pdxmesh = "motorized_frame_mesh"
	
	state = { name = "idle"				animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "retreat"			animation = "move" 	 				animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "training"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "death"			animation = "idle" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "support_attack"	animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "attack"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "defend"			animation = "attack" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	state = { name = "move"				animation = "move" 					animation_blend_time = 0.3 animation_speed = 1.0 }
	scale = 1.0
	
	attach = { 	name = "vehicle"			vehicle = "GER_mechanized_entity" }
	attach = { 	name = "infantry"			infantry = "CRI_vehicle_infantry_rifle_entity" }
}