;;; Select best weapon and ammo ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;{ready_for_shot}	- ammo charged (shell in the breech & gun ready for shot)
;;{charging} 		- ammo is charging (gun is`t ready for shot)

{select_ammo
	{human in_bush
		{"grenade ic" {ready_for_shot}}
		{"mortar fg" {ground}}
		{"grenade fg" {check_grenade}}
		{"shell fg" {ground} {ready_for_shot}}
		{"shell fg" {ready_for_shot}}
;		{"ptr" {enable_for_human_user 0}}
		{"zenite" {enable_for_human_user 0}}
		{"hmgun"}
		{"flame"}
		{"fuel"}      
		{"bullet"}
		{"grenade fg" {ground}}
		{"grenade ap"}
		{"light"}
	}
	{human in_cover
		{"grenade ic" {ready_for_shot}}
		{"mortar fg" {ground}}
		{"grenade fg" {check_grenade}}
		{"grenade ap" {enable_for_ai 0} {check_grenade}}
		{"shell fg" {ground} {ready_for_shot}}
		{"shell fg" {ready_for_shot}}
;		{"ptr" {enable_for_human_user 0}}
		{"zenite" {enable_for_human_user 0}}
		{"hmgun"}
		{"flame"}
		{"fuel"}      
		{"bullet"}
		{"ammo rocketlauncher" {enable_for_user 0}}
		{"grenade fg" {ground}}
		{"grenade ap" {enable_for_ai 0}}
		{"grenade ic" {enable_for_ai 0}}
		{"shell fg"}
		{"light"}
	}
	{human
		{"grenade ic" {ready_for_shot}}
		{"shell fg" {ground} {ready_for_shot}}
		{"shell fg" {ready_for_shot}}
		{"mortar fg" {ground}}
;		{"ptr" {enable_for_human_user 0}}
		{"zenite" {enable_for_human_user 0}} ; prohibit the usage (for player infantry)
		{"hmgun"}
		{"flame"}
		{"fuel"}       
		{"bullet"}
		{"sharp_edge"}
		{"grenade fg"}
		{"grenade ap"}
		{"ammo rocketlauncher" {enable_for_user 0}}
		{"light"}
	}
	{car
		{"mortar fg" {ground}}
		{"grenade fg"	{ground}}
		{"grenade ap"}
		{"grenade ic"}
		{"zenite"}
		{"shell fg" {ready_for_shot}}
		{"hmgun"}
		{"shell fg"}
		{"shell ap"}	; for training
		{"fuel"}
		{"bullet"}
		{"light"}
	}
	{cannon
       		{"mortar fg" {ground}}
		{"grenade ic" {ready_for_shot}}
		{"shell fg"}
		{"fuel"}
		{"grenade fg" {ground}}
		{"grenade ap"}
		{"grenade ic"}
		{"shell ap"}
		{"ammo rocketlauncher" {enable_for_user 0}}
		{"light"}
	}
	{airborne
		{"zenite"}
		{"shell fg"}
		{"shell ap"}
		{"bullet"}
	}
	{armoredcar
		{"calliope" {ready_for_shot}}
		{"size3 fg" {volume "body"} {ready_for_shot}}
		{"shell ap" {volume "body"} {ready_for_shot}}
		{"zenite" {volume "body"}}
		{"zenite ap" {volume "body"}}
		{"hmgun" {volume "body"}}
		{"size3 fg" {volume "body"} {charging}}
		{"size2 fg" {volume "body"} {ready_for_shot}}
		{"shell ap" {volume "body"}}
		{"grenade ic" {ready_for_shot}}
		{"grenade ap" {volume "body"}}
		{"fuel" {volume "engine"}}
		{"grenade fg" {volume "grenade_fg_target"}}
		{"grenade ic" {volume "engine"}}
		{"shell ap"}
		{"shell fg"}
		{"light"}
	}
	{light_tank
		{"calliope" {ready_for_shot}}
		{"size3 fg" {volume "body"} {ready_for_shot}}
		{"shell ap" {volume "body"} {ready_for_shot}}
		{"hmgun" {volume "body"}}
		{"size3 fg" {volume "body"} {charging}}
		{"size2 fg" {volume "body"} {ready_for_shot}}
		{"shell ap" {volume "body"}}
		{"zenite" {volume "body"}}
		{"zenite ap" {volume "body"}}
		{"grenade ic" {volume "engine"} {ready_for_shot}}
		{"grenade ap" {volume "body"}}
		{"fuel" {volume "engine"}}
		{"grenade fg" {volume "grenade_fg_target"}}
		{"grenade ic" {volume "engine"}}
		{"shell ap"}
		{"shell fg"}
		{"light"}
	}
	{tank
		{"calliope" {ready_for_shot}}
		{"size3 fg" {volume "body"} {ready_for_shot}}
		{"size3 fg" {volume "body"} {charging}}
		{"shell ap" {volume "body"}}
		{"shell ap"}
		{"zenite" {volume "mover"}}
		{"zenite ap" {volume "mover"}}
		{"grenade ic" {volume "engine"} {ready_for_shot}}
		{"grenade ap" {volume "body"}}
		{"fuel" {volume "engine"}}
		{"grenade fg" {volume "grenade_fg_target"}}
		{"grenade ic" {volume "engine"}}		
		{"shell fg"}
		{"light"}
	}

	{unknown
		(mod not "mp"
			{"grenade fg" {ground}}
			{"shell fg" {ground}}
			{"bullet"}
			{"hmgun"}
			{"ptr" {enable_for_human_user 0}}
			{"zenite" {enable_for_human_user 0}}
			{"grenade ap"}
			{"ammo rocketlauncher" {enable_for_user 0}}
			{"light"}
		)
	}
}
