
declare_plugin("An-22",
{
	installed 	 = true,
	dirName	  	 = current_mod_path,
	version		 = "1.3", 
	state		 = "installed",
	developerName	 = "ps2606",
	info		 = _("The An-22 Antey is a Soviet heavy turboprop transport aircraft, the world's first wide body and the world's largest turboprop aircraft. It is designed for long-range transportation of heavy and bulky weapons, military equipment and troops, as well as for parachuting and landing airborne troops.It was mass-produced in 1965-1975 in the Uzbek SSR at the Tashkent Aviation Production Association named after V. P. Chkalov. A total of 69 copies were produced, including two for strength testing.It is used in the Russian Air Force, as well as in the Ukrainian airline Antonov Airlines.In 9 december 2025, Last An-22 with register RF-08832, crashed in uvodkovskoe reservoir. All on the board died."),

InputProfiles =
{
    ["an-22p"] = current_mod_path .. '/Input/An-22',
},


Skins	=
	{
		{
			name	= _("An-22"),
			dir		=  "Theme"
		},
	},
	
Missions =
	{
		{
			name		    = _("An-22p"),
			dir			    = "Missions",
		},
	},		

LogBook =
	{
		{
			name		= _("An-22p"),
			type		= "An-22p",
		},
	},	
})
		
---Mounts relative path to EDM models
mount_vfs_texture_path  (current_mod_path .. "/Theme/ME")--for simulator loading window
---Mounts relative path to Liveries
mount_vfs_liveries_path	(current_mod_path.."/Liveries")
mount_vfs_model_path	(current_mod_path.."/Shapes")
mount_vfs_sound_path	(current_mod_path.."/Sounds")
---Mounts relative path to Textures
mount_vfs_texture_path (current_mod_path.."/Textures/Antonov An-22")


--List of models/props to be loaded. Loads .lua in root of this entry file which contains each objet properties
dofile(current_mod_path..'/an_22_ai.lua')
dofile(current_mod_path..'/an_22_playable.lua')

-----------------------------------------------------
make_flyable('An-22p', current_mod_path..'/Cockpit/Scripts/', {nil,old = 54}, current_mod_path..'/comm.lua') --working SFM, working HUD
-----------------------------------------------------

plugin_done()