EGG_EVO_ResetClick =
{
//	onMapSingleClick "if (_alt and debug) then {vehicle player setpos _pos;{vehicle _x setpos _pos} forEach _units}";
	onMapSingleClick "if (editor ==1) then {vehicle player setpos _pos;";
};

// Creates and fills local ammo boxes of Weapons, items and clothing

EGG_EVO_AmmoBox = 
{
	//ranked crates
	_playerrank = _this select 0;
	_rank = _playerrank;
	
	//unranked crates
	If (ranklock ==1 || ranklock == 3 || ranklock == 5) then {_playerrank = 6};

//west weapons
	_EGG_fillammoboxW =
	{
		_rank = _this select 0;
		_vec = _this select 1;
		clearWeaponCargo _vec;
		clearMagazineCargo _vec;
		clearItemCargo _vec;
//dealing with darkness - top of crate
		_vec addItemCargo ["uns_anpvs2",1];
		_vec addItemCargo ["Binocular",1];
		_vec AddWeaponCargo ["uns_mkvFlarePistol",5];
		_vec AddWeaponCargo ["uns_MX991_w",5];
		_vec AddWeaponCargo ["uns_MX991_r",5];
		_vec AddWeaponCargo ["uns_MX991_g",5];
		_vec AddWeaponCargo ["uns_MX991_m1911",5];
		_vec AddWeaponCargo ["uns_MX991_m1911SD",5];
		_vec addItemCargo ["uns_BA30",5];
		_vec addItemCargo ["uns_BA30_red",5];
		_vec addItemCargo ["uns_BA30_green",5];
//essential kit
		_vec addItemCargo ["FirstAidKit",10];
		_vec addItemCargo ["Medikit",1];
		_vec addItemCargo ["ToolKit",1];
		_vec addItemCargo ["UNS_TrapKit",5];
		_vec addMagazineCargo ["uns_ItemM57clacker",5];
//		_vec AddWeaponCargo ["uns_speargun",5];
//rockets
		_vec AddWeaponCargo ["uns_m72",5];
		_vec addMagazineCargo ["uns_m72rocket",5];
		switch (_rank) do
		{
			case 0:
			{
				_vec AddWeaponCargo ["uns_38spec",5];
				_vec AddWeaponCargo ["uns_m1911",5];
				_vec AddWeaponCargo ["uns_ithaca37",5];
				_vec AddWeaponCargo ["uns_thompson",5];
				_vec AddWeaponCargo ["uns_sten",5];
				_vec AddWeaponCargo ["uns_Sterling",5];
				_vec AddWeaponCargo ["uns_M3a1",5];
				_vec AddWeaponCargo ["uns_m1carbine",5];
				_vec AddWeaponCargo ["uns_m1garand",5];
				_vec AddWeaponCargo ["uns_m14",5];
				_vec AddWeaponCargo ["uns_model70",5];
				_vec AddWeaponCargo ["uns_M16",5];
				_vec AddWeaponCargo ["uns_xm177e1",5];
				_vec AddWeaponCargo ["uns_M79",5];
				_vec AddWeaponCargo ["uns_m60",5];
//items
				_vec addItemCargo ["uns_b_m6",1];
				_vec addItemCargo ["uns_b_m7",1];
				_vec addItemCargo ["uns_b_m1917",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_o_Unertl8x",1];
				_vec addItemCargo ["uns_bp_M60",1];
				_vec addItemCargo ["uns_bp_M63",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
			};
			 case 1:
			{
				_vec AddWeaponCargo ["uns_38spec",5];
				_vec AddWeaponCargo ["uns_m1911",5];
				_vec AddWeaponCargo ["uns_coltcmdr",5];
				_vec AddWeaponCargo ["uns_ithaca37",5];
				_vec AddWeaponCargo ["uns_m1897riot",5];
				_vec AddWeaponCargo ["uns_mac10",5];
				_vec AddWeaponCargo ["uns_thompson",5];
				_vec AddWeaponCargo ["uns_m3a1",5];
				_vec AddWeaponCargo ["uns_sten",5];
				_vec AddWeaponCargo ["uns_owen",5];
				_vec AddWeaponCargo ["uns_uzif",5];
				_vec AddWeaponCargo ["uns_Sterling",5];
				_vec AddWeaponCargo ["uns_Sterling_f",5];
				_vec AddWeaponCargo ["uns_m1carbine",5];
				_vec AddWeaponCargo ["uns_m1carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m2carbine",5];
				_vec addWeaponCargo ["uns_l1a1_enfield",5];
				_vec addWeaponCargo ["uns_l1a1_blk",5];
				_vec addWeaponCargo ["uns_l2a1",5];
				_vec addWeaponCargo ["uns_l1a1",5];
				_vec addWeaponCargo ["uns_l1a1gl",5];

				_vec AddWeaponCargo ["uns_m1garand",5];
				_vec AddWeaponCargo ["uns_m1garandbayo",5];
				_vec AddWeaponCargo ["uns_m14",5];
				_vec AddWeaponCargo ["uns_m14bayo",5];
				_vec AddWeaponCargo ["uns_model70",5];

				_vec AddWeaponCargo ["uns_M16",5];
				_vec AddWeaponCargo ["uns_M16_bayo",5];
				_vec AddWeaponCargo ["uns_M16A1",5];
				_vec AddWeaponCargo ["uns_xm177e1",5];
				_vec AddWeaponCargo ["uns_xm177e2",5];

				_vec AddWeaponCargo ["uns_M79",5];
				_vec AddWeaponCargo ["uns_bar",5];
				_vec AddWeaponCargo ["uns_m60",5];
//items				
				_vec addItemCargo ["uns_b_m4",1];
				_vec addItemCargo ["uns_b_m6",1];
				_vec addItemCargo ["uns_b_m7",1];
				_vec addItemCargo ["uns_b_m1917",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_o_Unertl8x",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_bp_M60",1];
				_vec addItemCargo ["uns_bp_M63",1];
			};
			 case 2:
			{
				_vec AddWeaponCargo ["uns_38spec",5];
				_vec AddWeaponCargo ["uns_m1911",5];
				_vec AddWeaponCargo ["uns_coltcmdr",5];
				_vec AddWeaponCargo ["uns_ithaca37",5];
				_vec AddWeaponCargo ["uns_ithaca37_grip",5];
				_vec AddWeaponCargo ["uns_m1897riot",5];
				_vec AddWeaponCargo ["uns_m1897",5];
				_vec AddWeaponCargo ["uns_mac10",5];
				_vec AddWeaponCargo ["uns_thompson",5];
				_vec AddWeaponCargo ["uns_m3a1",5];
				_vec AddWeaponCargo ["uns_sten",5];
				_vec AddWeaponCargo ["uns_owen",5];
				_vec AddWeaponCargo ["uns_uzi",5];
				_vec AddWeaponCargo ["uns_uzif",5];
				_vec AddWeaponCargo ["uns_Sterling",5];
				_vec AddWeaponCargo ["uns_Sterling_f",5];
				_vec AddWeaponCargo ["uns_m1carbine",5];
				_vec AddWeaponCargo ["uns_m1carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m1carbine_sniper",5];
				_vec AddWeaponCargo ["uns_m2carbine",5];
				_vec addWeaponCargo ["uns_l1a1_enfield",5];
				_vec addWeaponCargo ["uns_l1a1_blk",5];
				_vec addWeaponCargo ["uns_l2a1",5];
				_vec addWeaponCargo ["uns_l1a1",5];
				_vec addWeaponCargo ["uns_l1a1gl",5];

				_vec AddWeaponCargo ["uns_m1garand",5];
				_vec AddWeaponCargo ["uns_m1garandbayo",5];
				_vec AddWeaponCargo ["uns_m1garand_gl",5];
				_vec AddWeaponCargo ["uns_m14",5];
				_vec AddWeaponCargo ["uns_m14bayo",5];
				_vec AddWeaponCargo ["uns_model70",5];

				_vec AddWeaponCargo ["uns_M16",5];
				_vec AddWeaponCargo ["uns_M16_bayo",5];
				_vec AddWeaponCargo ["uns_M16mk",5];
				_vec AddWeaponCargo ["uns_M16_XM148",5];

				_vec AddWeaponCargo ["uns_M16A1",5];
				_vec AddWeaponCargo ["uns_M16A1_bayo",5];
				_vec AddWeaponCargo ["uns_M16A1mk",5];

				_vec AddWeaponCargo ["uns_xm177e1",5];
				_vec AddWeaponCargo ["uns_xm177e1mk",5];
				_vec AddWeaponCargo ["uns_xm177e2",5];
				_vec AddWeaponCargo ["uns_xm177e2_grip",5];

				_vec AddWeaponCargo ["uns_M79",5];
				_vec AddWeaponCargo ["uns_bar",5];
				_vec AddWeaponCargo ["uns_m60",5];

//items				
				_vec addItemCargo ["uns_b_m4",1];
				_vec addItemCargo ["uns_b_m6",1];
				_vec addItemCargo ["uns_b_m7",1];
				_vec addItemCargo ["uns_b_m1917",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_o_RedfieldART",1];
				_vec addItemCargo ["uns_o_Unertl8x",1];
				_vec addItemCargo ["uns_o_LeatherwoodART",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m16",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m14",1];
				_vec addItemCargo ["uns_o_colt4x",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_M84",1];
				_vec addItemCargo ["uns_bp_M60",1];
				_vec addItemCargo ["uns_bp_M63",1];
			};
			 case 3:
			{
				_vec AddWeaponCargo ["uns_38spec",5];
				_vec AddWeaponCargo ["uns_m1911",5];
				_vec AddWeaponCargo ["uns_coltcmdr",5];
				_vec AddWeaponCargo ["uns_ithaca37",5];
				_vec AddWeaponCargo ["uns_ithaca37_grip",5];
				_vec AddWeaponCargo ["uns_m1897riot",5];
				_vec AddWeaponCargo ["uns_m1897",5];
				_vec AddWeaponCargo ["uns_model12",5];
				_vec AddWeaponCargo ["uns_m45",5];
				_vec AddWeaponCargo ["uns_mac10",5];
				_vec AddWeaponCargo ["uns_thompson",5];
				_vec AddWeaponCargo ["uns_m3a1",5];
				_vec AddWeaponCargo ["uns_sten",5];
				_vec AddWeaponCargo ["uns_owen",5];
				_vec AddWeaponCargo ["uns_uzi",5];
				_vec AddWeaponCargo ["uns_uzif",5];
				_vec AddWeaponCargo ["uns_Sterling",5];
				_vec AddWeaponCargo ["uns_Sterling_f",5];
				_vec AddWeaponCargo ["uns_SterlingSD",5];
				_vec AddWeaponCargo ["uns_m1carbine",5];
				_vec AddWeaponCargo ["uns_m1carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m1carbine_sniper",5];
				_vec AddWeaponCargo ["uns_m1carbine_gl",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch",5];
				_vec AddWeaponCargo ["uns_m2carbine",5];
				_vec AddWeaponCargo ["uns_m2carbine_bayo",5];
				_vec addWeaponCargo ["uns_l1a1_enfield",5];
				_vec addWeaponCargo ["uns_l1a1_blk",5];
				_vec addWeaponCargo ["uns_l2a1",5];
				_vec addWeaponCargo ["uns_l1a1",5];
				_vec addWeaponCargo ["uns_l1a1gl",5];

				_vec AddWeaponCargo ["uns_m1garand",5];
				_vec AddWeaponCargo ["uns_m1garandbayo",5];
				_vec AddWeaponCargo ["uns_m1garand_gl",5];
				_vec AddWeaponCargo ["uns_m14",5];
				_vec AddWeaponCargo ["uns_m14bayo",5];
				_vec AddWeaponCargo ["uns_m14sd",5];
				_vec AddWeaponCargo ["uns_m21",5];
				_vec AddWeaponCargo ["uns_model70",5];
				_vec AddWeaponCargo ["uns_model70sd",5];
				_vec AddWeaponCargo ["uns_M40",5];

				_vec AddWeaponCargo ["uns_M16",5];
				_vec AddWeaponCargo ["uns_M16_bayo",5];
				_vec AddWeaponCargo ["uns_M16_SD",5];
				_vec AddWeaponCargo ["uns_M16mk",5];
				_vec AddWeaponCargo ["uns_M16s",5];
				_vec AddWeaponCargo ["uns_M16_XM148",5];

				_vec AddWeaponCargo ["uns_M16A1",5];
				_vec AddWeaponCargo ["uns_M16A1_bayo",5];
				_vec AddWeaponCargo ["uns_M16a1_SD",5];
				_vec AddWeaponCargo ["uns_M16A1mk",5];
				_vec AddWeaponCargo ["uns_m16a1_m203",5];

				_vec AddWeaponCargo ["uns_xm177e1",5];
				_vec AddWeaponCargo ["uns_xm177e1mk",5];
				_vec AddWeaponCargo ["uns_xm177e1_xm148",5];
				_vec AddWeaponCargo ["uns_xm177e2",5];
				_vec AddWeaponCargo ["uns_xm177e2_grip",5];
				_vec AddWeaponCargo ["uns_xm177e2_short",5];
				_vec AddWeaponCargo ["uns_xm177e2mk",5];
				_vec AddWeaponCargo ["uns_M79",5];
				_vec AddWeaponCargo ["uns_bar",5];
				_vec AddWeaponCargo ["uns_m60",5];

//items				
				_vec addItemCargo ["uns_b_m4",1];
				_vec addItemCargo ["uns_b_m6",1];
				_vec addItemCargo ["uns_b_m7",1];
				_vec addItemCargo ["uns_b_m1917",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_s_M14",1];
				_vec addItemCargo ["uns_s_M16",1];
				_vec addItemCargo ["uns_s_Mac10",1];
				_vec addItemCargo ["uns_s_M3a1",1];
				_vec addItemCargo ["uns_s_UZI",1];
				_vec addItemCargo ["uns_s_sten",1];
				_vec addItemCargo ["uns_s_M1911",1];
				_vec addItemCargo ["uns_s_PPK",1];
				_vec addItemCargo ["uns_o_RedfieldART",1];
				_vec addItemCargo ["uns_o_Unertl8x",1];
				_vec addItemCargo ["uns_o_LeatherwoodART",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m16",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m14",1];
				_vec addItemCargo ["uns_o_colt4x",1];
				_vec addItemCargo ["uns_o_ANPVS2",1];
				_vec addItemCargo ["uns_o_ANPVS2_M14",1];
				_vec addItemCargo ["uns_o_ANPVS2_M16",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_M84",1];
				_vec addItemCargo ["uns_bp_M60",1];
				_vec addItemCargo ["uns_bp_M63",1];
			};
			 case 4:
			{
				_vec AddWeaponCargo ["uns_38spec",5];
				_vec AddWeaponCargo ["uns_m1911",5];
				_vec AddWeaponCargo ["uns_coltcmdr",5];
				_vec AddWeaponCargo ["uns_357m",5];
				_vec AddWeaponCargo ["uns_m1911SD",5];
				_vec AddWeaponCargo ["uns_ithaca37",5];
				_vec AddWeaponCargo ["uns_ithaca37_grip",5];
				_vec AddWeaponCargo ["uns_m1897riot",5];
				_vec AddWeaponCargo ["uns_m1897",5];
				_vec AddWeaponCargo ["uns_model12",5];
				_vec AddWeaponCargo ["uns_m870",5];
				_vec AddWeaponCargo ["uns_m45",5];
				_vec AddWeaponCargo ["uns_m45sd",5];
				_vec AddWeaponCargo ["uns_mac10",5];
				_vec AddWeaponCargo ["uns_mac10sd",5];
				_vec AddWeaponCargo ["uns_thompson",5];
				_vec AddWeaponCargo ["uns_m3a1",5];
				_vec AddWeaponCargo ["uns_sten",5];
				_vec AddWeaponCargo ["uns_owen",5];
				_vec AddWeaponCargo ["uns_uzi",5];
				_vec AddWeaponCargo ["uns_uzif",5];
				_vec AddWeaponCargo ["uns_uzi_SD",5];
				_vec AddWeaponCargo ["uns_Sterling",5];
				_vec AddWeaponCargo ["uns_Sterling_f",5];
				_vec AddWeaponCargo ["uns_SterlingSD",5];
				_vec AddWeaponCargo ["uns_SterlingSD_f",5];
				_vec AddWeaponCargo ["uns_m1carbine",5];
				_vec AddWeaponCargo ["uns_m1carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m1carbine_sniper",5];
				_vec AddWeaponCargo ["uns_m1carbine_gl",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch_bayo",5];
				_vec AddWeaponCargo ["uns_m2carbine",5];
				_vec AddWeaponCargo ["uns_m2carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m2carbine_sniper",5];
				_vec addWeaponCargo ["uns_l1a1_enfield",5];
				_vec addWeaponCargo ["uns_l1a1_blk",5];
				_vec addWeaponCargo ["uns_l2a1",5];
				_vec addWeaponCargo ["uns_l1a1",5];
				_vec addWeaponCargo ["uns_l1a1gl",5];

				_vec AddWeaponCargo ["uns_m1garand",5];
				_vec AddWeaponCargo ["uns_m1garands",5];
				_vec AddWeaponCargo ["uns_m1garandbayo",5];
				_vec AddWeaponCargo ["uns_m1garand_gl",5];
				_vec AddWeaponCargo ["uns_m14",5];
				_vec AddWeaponCargo ["uns_m14bayo",5];
				_vec AddWeaponCargo ["uns_m14sd",5];
				_vec AddWeaponCargo ["uns_m21",5];
				_vec AddWeaponCargo ["uns_m21nv",5];
				_vec AddWeaponCargo ["uns_model70",5];
				_vec AddWeaponCargo ["uns_model70sd",5];
				_vec AddWeaponCargo ["uns_M40",5];
				_vec AddWeaponCargo ["uns_M40sd",5];

				_vec AddWeaponCargo ["uns_M63a_AR",5];
				_vec AddWeaponCargo ["uns_M16",5];
				_vec AddWeaponCargo ["uns_M16_bayo",5];
				_vec AddWeaponCargo ["uns_M16_SD",5];
				_vec AddWeaponCargo ["uns_M16_dm",5];
				_vec AddWeaponCargo ["uns_M16mk",5];
				_vec AddWeaponCargo ["uns_M16mk_sd",5];
				_vec AddWeaponCargo ["uns_M16s",5];
				_vec AddWeaponCargo ["uns_M16_NV",5];
				_vec AddWeaponCargo ["uns_M16_XM148",5];

				
				_vec AddWeaponCargo ["uns_M16A1",5];
				_vec AddWeaponCargo ["uns_M16A1_bayo",5];
				_vec AddWeaponCargo ["uns_M16a1_SD",5];
				_vec AddWeaponCargo ["uns_M16A1s",5];
				_vec AddWeaponCargo ["uns_M16A1mk",5];
				_vec AddWeaponCargo ["uns_M16A1mk_sd",5];
				_vec AddWeaponCargo ["uns_M16A1_HBAR",5];
				_vec AddWeaponCargo ["uns_m16a1_m203",5];

				_vec AddWeaponCargo ["uns_xm177e1",5];
				_vec AddWeaponCargo ["uns_xm177e1mk",5];
				_vec AddWeaponCargo ["uns_xm177e1s",5];
				_vec AddWeaponCargo ["uns_xm177e1_xm148",5];
				_vec AddWeaponCargo ["uns_xm177e2",5];
				_vec AddWeaponCargo ["uns_xm177e2_grip",5];
				_vec AddWeaponCargo ["uns_xm177e2_short",5];
				_vec AddWeaponCargo ["uns_xm177e2mk",5];
				_vec AddWeaponCargo ["uns_M79",5];
				_vec AddWeaponCargo ["uns_bar",5];
				_vec AddWeaponCargo ["uns_M63a_drum",5];
				_vec AddWeaponCargo ["uns_M63a_LMG",5];
				_vec AddWeaponCargo ["uns_m60",5];
				_vec AddWeaponCargo ["uns_M60support",5];
//items				
				_vec addItemCargo ["uns_b_m4",1];
				_vec addItemCargo ["uns_b_m6",1];
				_vec addItemCargo ["uns_b_m7",1];
				_vec addItemCargo ["uns_b_m1917",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_s_M14",1];
				_vec addItemCargo ["uns_s_M16",1];
				_vec addItemCargo ["uns_s_Mac10",1];
				_vec addItemCargo ["uns_s_M3a1",1];
				_vec addItemCargo ["uns_s_M45",1];
				_vec addItemCargo ["uns_s_UZI",1];
				_vec addItemCargo ["uns_s_sten",1];
				_vec addItemCargo ["uns_s_M1911",1];
				_vec addItemCargo ["uns_s_PPK",1];
				_vec addItemCargo ["uns_o_RedfieldART",1];
				_vec addItemCargo ["uns_o_Unertl8x",1];
				_vec addItemCargo ["uns_o_LeatherwoodART",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m16",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m14",1];

				_vec addItemCargo ["uns_o_colt4x",1];
				_vec addItemCargo ["uns_o_ANPVS2",1];
				_vec addItemCargo ["uns_o_ANPVS2_M14",1];
				_vec addItemCargo ["uns_o_ANPVS2_M16",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_M84",1];
				_vec addItemCargo ["uns_bp_M60",1];
				_vec addItemCargo ["uns_bp_M63",1];
			};
			 case 5:
			{
				_vec AddWeaponCargo ["uns_38spec",5];
				_vec AddWeaponCargo ["uns_m1911",5];
				_vec AddWeaponCargo ["uns_coltcmdr",5];
				_vec AddWeaponCargo ["uns_357m",5];
				_vec AddWeaponCargo ["uns_bhp",5];
				_vec AddWeaponCargo ["uns_m1911SD",5];
				_vec AddWeaponCargo ["uns_ppkSD",5];
				_vec AddWeaponCargo ["uns_ithaca37",5];
				_vec AddWeaponCargo ["uns_ithaca37_grip",5];
				_vec AddWeaponCargo ["uns_m1897riot",5];
				_vec AddWeaponCargo ["uns_m1897",5];
				_vec AddWeaponCargo ["uns_model12",5];
				_vec AddWeaponCargo ["uns_m870",5];
				_vec AddWeaponCargo ["uns_m870_mk1",5];
				_vec AddWeaponCargo ["uns_m45",5];
				_vec AddWeaponCargo ["uns_m45sd",5];
				_vec AddWeaponCargo ["uns_mac10",5];
				_vec AddWeaponCargo ["uns_mac10sd",5];
				_vec AddWeaponCargo ["uns_thompson",5];
				_vec AddWeaponCargo ["uns_m3a1",5];
				_vec AddWeaponCargo ["uns_m3sd",5];
				_vec AddWeaponCargo ["uns_sten",5];
				_vec AddWeaponCargo ["uns_owen",5];
				_vec AddWeaponCargo ["uns_uzi",5];
				_vec AddWeaponCargo ["uns_uzif",5];
				_vec AddWeaponCargo ["uns_uzi_SD",5];
				_vec AddWeaponCargo ["uns_Sterling",5];
				_vec AddWeaponCargo ["uns_Sterling_f",5];
				_vec AddWeaponCargo ["uns_SterlingSD",5];
				_vec AddWeaponCargo ["uns_SterlingSD_f",5];
				_vec AddWeaponCargo ["uns_m1carbine",5];
				_vec AddWeaponCargo ["uns_m1carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m1carbine_sniper",5];
				_vec AddWeaponCargo ["uns_m1carbine_gl",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch_gl",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch_bayo",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch_sniper",5];
				_vec AddWeaponCargo ["uns_m2carbine",5];
				_vec AddWeaponCargo ["uns_m2carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m2carbine_sniper",5];
				_vec AddWeaponCargo ["uns_m2carbine_gl",5];
				_vec addWeaponCargo ["uns_l1a1_enfield",5];
				_vec addWeaponCargo ["uns_l1a1_blk",5];
				_vec addWeaponCargo ["uns_l2a1",5];
				_vec addWeaponCargo ["uns_l1a1",5];
				_vec addWeaponCargo ["uns_l1a1gl",5];

				_vec AddWeaponCargo ["uns_m1garand",5];
				_vec AddWeaponCargo ["uns_m1garands",5];
				_vec AddWeaponCargo ["uns_m1garandbayo",5];
				_vec AddWeaponCargo ["uns_m1garand_gl",5];
				_vec AddWeaponCargo ["uns_m14",5];
				_vec AddWeaponCargo ["uns_m14bayo",5];
				_vec AddWeaponCargo ["uns_m14sd",5];
				_vec AddWeaponCargo ["uns_m21",5];
				_vec AddWeaponCargo ["uns_m21sd",5];
				_vec AddWeaponCargo ["uns_m21nv",5];
				_vec AddWeaponCargo ["uns_model70",5];
				_vec AddWeaponCargo ["uns_model70sd",5];
				_vec AddWeaponCargo ["uns_model70nv",5];
				_vec AddWeaponCargo ["uns_M40",5];
				_vec AddWeaponCargo ["uns_M40sd",5];
				_vec AddWeaponCargo ["uns_M40nv",5];
				_vec AddWeaponCargo ["uns_M40sd_camo",5];

				_vec AddWeaponCargo ["uns_M63a_AR",5];
				_vec AddWeaponCargo ["uns_M63a_AR_bayo",5];
				_vec AddWeaponCargo ["uns_M16",5];
				_vec AddWeaponCargo ["uns_M16_bayo",5];
				_vec AddWeaponCargo ["uns_M16_SD",5];
				_vec AddWeaponCargo ["uns_M16_dm",5];
				_vec AddWeaponCargo ["uns_M16mk",5];
				_vec AddWeaponCargo ["uns_M16mk_sd",5];
				_vec AddWeaponCargo ["uns_M16s",5];
				_vec AddWeaponCargo ["uns_M16s_sd",5];
				_vec AddWeaponCargo ["uns_M16_NV",5];
				_vec AddWeaponCargo ["uns_M16_XM148",5];
				_vec AddWeaponCargo ["uns_m16_m203",5];

				_vec AddWeaponCargo ["uns_M16A1",5];
				_vec AddWeaponCargo ["uns_M16A1_bayo",5];
				_vec AddWeaponCargo ["uns_M16a1_SD",5];
				_vec AddWeaponCargo ["uns_M16A1s",5];
				_vec AddWeaponCargo ["uns_M16A1mk_sd",5];
				_vec AddWeaponCargo ["uns_M16A1mk",5];
				_vec AddWeaponCargo ["uns_M16A1_NV",5];
				_vec AddWeaponCargo ["uns_M16A1_HBAR",5];
				_vec AddWeaponCargo ["uns_m16a1_m203",5];

				_vec AddWeaponCargo ["uns_xm177e1",5];
				_vec AddWeaponCargo ["uns_xm177e1_dm",5];
				_vec AddWeaponCargo ["uns_xm177e1mk",5];
				_vec AddWeaponCargo ["uns_xm177e1s",5];
				_vec AddWeaponCargo ["uns_xm177e1_NV",5];
				_vec AddWeaponCargo ["uns_xm177e1_xm148",5];
				_vec AddWeaponCargo ["uns_xm177e2",5];
				_vec AddWeaponCargo ["uns_xm177e2_grip",5];
				_vec AddWeaponCargo ["uns_xm177e2_short",5];
				_vec AddWeaponCargo ["uns_xm177e2_stock",5];
				_vec AddWeaponCargo ["uns_xm177e2mk",5];
				_vec AddWeaponCargo ["uns_xm177e2s",5];
				_vec AddWeaponCargo ["uns_xm177e2_NV",5];
				_vec AddWeaponCargo ["uns_xm177e2_xm148",5];
				_vec AddWeaponCargo ["uns_M79",5];
				_vec AddWeaponCargo ["uns_M79p",5];
				_vec AddWeaponCargo ["uns_bar",5];
				_vec AddWeaponCargo ["uns_M63a_drum",5];
				_vec AddWeaponCargo ["uns_M63a_LMG",5];
				_vec AddWeaponCargo ["uns_M63asupport",5];
				_vec AddWeaponCargo ["uns_m60",5];
				_vec AddWeaponCargo ["uns_M60support",5];
				_vec AddWeaponCargo ["uns_m60shorty",5];
//items				
				_vec addItemCargo ["uns_b_m4",1];
				_vec addItemCargo ["uns_b_m6",1];
				_vec addItemCargo ["uns_b_m7",1];
				_vec addItemCargo ["uns_b_m1917",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_s_M14",1];
				_vec addItemCargo ["uns_s_M16",1];
				_vec addItemCargo ["uns_s_Mac10",1];
				_vec addItemCargo ["uns_s_M3a1",1];
				_vec addItemCargo ["uns_s_M45",1];
				_vec addItemCargo ["uns_s_UZI",1];
				_vec addItemCargo ["uns_s_sten",1];
				_vec addItemCargo ["uns_s_M1911",1];
				_vec addItemCargo ["uns_s_PPK",1];
				_vec addItemCargo ["uns_o_RedfieldART",1];
				_vec addItemCargo ["uns_o_Unertl8x",1];
				_vec addItemCargo ["uns_o_LeatherwoodART",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m16",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m14",1];

				_vec addItemCargo ["uns_o_colt4x",1];
				_vec addItemCargo ["uns_o_ANPVS2",1];
				_vec addItemCargo ["uns_o_ANPVS2_M14",1];
				_vec addItemCargo ["uns_o_ANPVS2_M16",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_M84",1];
				_vec addItemCargo ["uns_bp_M60",1];
				_vec addItemCargo ["uns_bp_M63",1];
			};
			 case 6:
			{
				_vec AddItemCargo ["uns_binocular_navy",5];
				_vec AddWeaponCargo ["uns_38spec",5];
				_vec AddWeaponCargo ["uns_m1911",5];
				_vec AddWeaponCargo ["uns_coltcmdr",5];
				_vec AddWeaponCargo ["uns_357m",5];
				_vec AddWeaponCargo ["uns_bhp",5];
				_vec AddWeaponCargo ["uns_m1911SD",5];
				_vec AddWeaponCargo ["uns_ppkSD",5];
				_vec AddWeaponCargo ["uns_Ruger",5];
				_vec AddWeaponCargo ["uns_ithaca37",5];
				_vec AddWeaponCargo ["uns_ithaca37_grip",5];
				_vec AddWeaponCargo ["uns_m1897riot",5];
				_vec AddWeaponCargo ["uns_m1897",5];
				_vec AddWeaponCargo ["uns_model12",5];
				_vec AddWeaponCargo ["uns_m870",5];
				_vec AddWeaponCargo ["uns_m870_mk1",5];
				_vec AddWeaponCargo ["uns_m870_mk1_bayo",5];
				_vec AddWeaponCargo ["uns_m45",5];
				_vec AddWeaponCargo ["uns_m45sd",5];
				_vec AddWeaponCargo ["uns_mac10",5];
				_vec AddWeaponCargo ["uns_mac10sd",5];
				_vec AddWeaponCargo ["uns_thompson",5];
				_vec AddWeaponCargo ["uns_m3a1",5];
				_vec AddWeaponCargo ["uns_m3sd",5];
				_vec AddWeaponCargo ["uns_stensd",5];
				_vec AddWeaponCargo ["uns_sten",5];
				_vec AddWeaponCargo ["uns_owen",5];
				_vec AddWeaponCargo ["uns_uzi",5];
				_vec AddWeaponCargo ["uns_uzif",5];
				_vec AddWeaponCargo ["uns_uzi_SD",5];
				_vec AddWeaponCargo ["uns_Sterling",5];
				_vec AddWeaponCargo ["uns_Sterling_f",5];
				_vec AddWeaponCargo ["uns_SterlingSD",5];
				_vec AddWeaponCargo ["uns_SterlingSD_f",5];

				_vec AddWeaponCargo ["uns_m1carbine",5];
				_vec AddWeaponCargo ["uns_m1carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m1carbine_sniper",5];
				_vec AddWeaponCargo ["uns_m1carbine_gl",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch_gl",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch_bayo",5];
				_vec AddWeaponCargo ["uns_m1carbine_pouch_sniper",5];
				_vec AddWeaponCargo ["uns_m2carbine",5];
				_vec AddWeaponCargo ["uns_m2carbine_bayo",5];
				_vec AddWeaponCargo ["uns_m2carbine_sniper",5];
				_vec AddWeaponCargo ["uns_m2carbine_gl",5];
				_vec AddWeaponCargo ["uns_m3carbine",5];
				_vec addWeaponCargo ["uns_l1a1_enfield",5];
				_vec addWeaponCargo ["uns_l1a1_blk",5];
				_vec addWeaponCargo ["uns_l2a1",5];
				_vec addWeaponCargo ["uns_l1a1",5];
				_vec addWeaponCargo ["uns_l1a1gl",5];

				_vec AddWeaponCargo ["uns_m1garand",5];
				_vec AddWeaponCargo ["uns_m1garands",5];
				_vec AddWeaponCargo ["uns_m1garandbayo",5];
				_vec AddWeaponCargo ["uns_m1garand_gl",5];
				_vec AddWeaponCargo ["uns_m14",5];
				_vec AddWeaponCargo ["uns_m14bayo",5];
				_vec AddWeaponCargo ["uns_m14sd",5];
				_vec AddWeaponCargo ["uns_m21",5];
				_vec AddWeaponCargo ["uns_m21sd",5];
				_vec AddWeaponCargo ["uns_m21nv",5];
				_vec AddWeaponCargo ["uns_m21nvsd",5];
				_vec AddWeaponCargo ["uns_model70",5];
				_vec AddWeaponCargo ["uns_model70sd",5];
				_vec AddWeaponCargo ["uns_model70nv",5];
				_vec AddWeaponCargo ["uns_model70nvsd",5];
				_vec AddWeaponCargo ["uns_M40",5];
				_vec AddWeaponCargo ["uns_M40sd",5];
				_vec AddWeaponCargo ["uns_M40nv",5];
				_vec AddWeaponCargo ["uns_M40nvsd",5];
				_vec AddWeaponCargo ["uns_M40sd_camo",5];
				_vec AddWeaponCargo ["uns_M40nvsd_camo",5];

				_vec AddWeaponCargo ["uns_M63a_AR",5];
				_vec AddWeaponCargo ["uns_M63a_AR_bayo",5];
				_vec AddWeaponCargo ["uns_M16",5];
				_vec AddWeaponCargo ["uns_M16_bayo",5];
				_vec AddWeaponCargo ["uns_M16_SD",5];
				_vec AddWeaponCargo ["uns_M16_dm",5];
				_vec AddWeaponCargo ["uns_M16mk",5];
				_vec AddWeaponCargo ["uns_M16mk_sd",5];
				_vec AddWeaponCargo ["uns_M16s",5];
				_vec AddWeaponCargo ["uns_M16s_sd",5];
				_vec AddWeaponCargo ["uns_M16_NV",5];
				_vec AddWeaponCargo ["uns_M16_NVsd",5];
				_vec AddWeaponCargo ["uns_M16_XM148",5];
				_vec AddWeaponCargo ["uns_m16_m203",5];

				_vec AddWeaponCargo ["uns_M16A1",5];
				_vec AddWeaponCargo ["uns_M16A1_bayo",5];
				_vec AddWeaponCargo ["uns_M16a1_SD",5];
				_vec AddWeaponCargo ["uns_M16A1mk_sd",5];
				_vec AddWeaponCargo ["uns_M16A1mk",5];
				_vec AddWeaponCargo ["uns_M16A1s",5];
				_vec AddWeaponCargo ["uns_M16A1s_sd",5];
				_vec AddWeaponCargo ["uns_M16A1_NV",5];
				_vec AddWeaponCargo ["uns_M16A1_NVsd",5];
				_vec AddWeaponCargo ["uns_M16A1_HBAR",5];
				_vec AddWeaponCargo ["uns_m16a1_m203",5];

				_vec AddWeaponCargo ["uns_xm177e1",5];
				_vec AddWeaponCargo ["uns_xm177e1_dm",5];
				_vec AddWeaponCargo ["uns_xm177e1s",5];
				_vec AddWeaponCargo ["uns_xm177e2_stock",5];
				_vec AddWeaponCargo ["uns_xm177e1mk",5];
				_vec AddWeaponCargo ["uns_xm177e1_NV",5];
				_vec AddWeaponCargo ["uns_xm177e1_xm148",5];
				_vec AddWeaponCargo ["uns_xm177e1_m203",5];
				_vec AddWeaponCargo ["uns_xm177e2",5];
				_vec AddWeaponCargo ["uns_xm177e2_grip",5];
				_vec AddWeaponCargo ["uns_xm177e2_short",5];
				_vec AddWeaponCargo ["uns_xm177e2mk",5];
				_vec AddWeaponCargo ["uns_xm177e2s",5];
				_vec AddWeaponCargo ["uns_xm177e2_NV",5];
				_vec AddWeaponCargo ["uns_xm177e2_xm148",5];
				_vec AddWeaponCargo ["uns_xm177e2_m203",5];

				_vec AddWeaponCargo ["uns_M79",5];
				_vec AddWeaponCargo ["uns_M79p",5];
				_vec AddWeaponCargo ["uns_ex41",5];
				_vec AddWeaponCargo ["uns_bar",5];
				_vec AddWeaponCargo ["uns_M63a_drum",5];
				_vec AddWeaponCargo ["uns_M63a_LMG",5];
				_vec AddWeaponCargo ["uns_M63asupport",5];
				_vec AddWeaponCargo ["uns_m60",5];
				_vec AddWeaponCargo ["uns_M60support",5];
				_vec AddWeaponCargo ["uns_m60shorty",5];
				_vec AddWeaponCargo ["uns_m60grip",5];
				_vec AddWeaponCargo ["uns_rpdsog",5];
//items				
				_vec addItemCargo ["uns_b_m4",1];
				_vec addItemCargo ["uns_b_m6",1];
				_vec addItemCargo ["uns_b_m7",1];
				_vec addItemCargo ["uns_b_m1917",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_s_M14",1];
				_vec addItemCargo ["uns_s_M16",1];
				_vec addItemCargo ["uns_s_Mac10",1];
				_vec addItemCargo ["uns_s_M3a1",1];
				_vec addItemCargo ["uns_s_M45",1];
				_vec addItemCargo ["uns_s_UZI",1];
				_vec addItemCargo ["uns_s_sten",1];
				_vec addItemCargo ["uns_s_M1911",1];
				_vec addItemCargo ["uns_s_PPK",1];
				_vec addItemCargo ["uns_o_RedfieldART",1];
				_vec addItemCargo ["uns_o_Unertl8x",1];
				_vec addItemCargo ["uns_o_LeatherwoodART",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m16",1];
				_vec addItemCargo ["uns_o_LeatherwoodART_m14",1];

				_vec addItemCargo ["uns_o_colt4x",1];
				_vec addItemCargo ["uns_o_ANPVS2",1];
				_vec addItemCargo ["uns_o_ANPVS2_M14",1];
				_vec addItemCargo ["uns_o_ANPVS2_M16",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_M84",1];
				_vec addItemCargo ["uns_bp_M60",1];
				_vec addItemCargo ["uns_bp_M63",1];
			};
		};
//AMMO

//pistol ammo
//		_vec addMagazineCargo ["uns_spear_mag",20];
		_vec addMagazineCargo ["uns_38specmag",20];
		_vec addMagazineCargo ["uns_357mag",20];
		_vec addMagazineCargo ["uns_m1911mag",20];
		_vec addMagazineCargo ["uns_coltcmdrmag",20];
		_vec addmagazinecargo ["uns_13Rnd_hp",20];
		_vec addMagazineCargo ["uns_Rugermag",20];
		_vec addMagazineCargo ["uns_ppkmag",20];
//smg ammo
		_vec addMagazineCargo ["uns_mac10mag",20];
		_vec addmagazinecargo ["uns_32Rnd_uzi",20];
		_vec addmagazinecargo ["uns_32Rnd_uzi_pa",20];
		_vec addMagazineCargo ["uns_stenmag",20];
		_vec addMagazineCargo ["uns_stenmag_T",20];
		_vec addMagazineCargo ["uns_owenmag",20];
		_vec addMagazineCargo ["uns_owenmag_T",20];
		_vec addMagazineCargo ["uns_mk4mag",20];
		_vec addMagazineCargo ["uns_mk4mag_T",20];
		_vec addMagazineCargo ["uns_m45mag",20];
		_vec addMagazineCargo ["uns_m45mag_T",20];
		_vec addMagazineCargo ["uns_m45mag_NT",20];
		_vec addMagazineCargo ["uns_thompsonmag_20",20];
		_vec addMagazineCargo ["uns_thompsonmag_30",20];
		_vec addMagazineCargo ["uns_thompsonmag_20_T",20];
		_vec addMagazineCargo ["uns_thompsonmag_30_T",20];
		_vec addMagazineCargo ["uns_thompsonmag_20_NT",20];
		_vec addMagazineCargo ["uns_thompsonmag_30_NT",20];
		_vec addMagazineCargo ["uns_m3a1mag",20];
		_vec addMagazineCargo ["uns_m3a1mag_T",20];
//shotgun ammo
		_vec addMagazineCargo ["uns_12gaugemag_4f",20];
		_vec addMagazineCargo ["uns_12gaugemag_4",20];
		_vec addMagazineCargo ["uns_12gaugemag_6f",20];
		_vec addMagazineCargo ["uns_12gaugemag_6",20];
		_vec addMagazineCargo ["uns_m870mag",20];
//rifle ammo
		_vec addMagazineCargo ["uns_m1carbinemag",20];
		_vec addMagazineCargo ["uns_m2carbinemag",20];
		_vec addMagazineCargo ["uns_m1carbinemag_T",20];
		_vec addMagazineCargo ["uns_m1carbinemag_NT",20];
		_vec addMagazineCargo ["uns_m2carbinemag_T",20];
		_vec addMagazineCargo ["uns_m2carbinemag_NT",20];
		_vec addMagazineCargo ["uns_m1garandmag",20];
		_vec addMagazineCargo ["uns_m1garandmag_T",20];
		_vec addMagazineCargo ["uns_m14mag",20];
		_vec addMagazineCargo ["uns_m14mag_T",20];
		_vec addMagazineCargo ["uns_m14mag_NT",20];
		_vec addMagazineCargo ["uns_model70mag",20];
		_vec addMagazineCargo ["uns_model70mag_T",20];
		_vec addMagazineCargo ["uns_m40mag",20];
		_vec addMagazineCargo ["uns_m40mag_T",20];
//assault rifle ammo
		_vec addMagazineCargo ["uns_l1a1mag",20];
		_vec addMagazineCargo ["uns_l1a1mag_T",20];
		_vec addMagazineCargo ["uns_l1a1mag_NT",20];
		_vec addmagazinecargo ["uns_20Rnd_556x45_Stanag",20];
		_vec addmagazinecargo ["uns_20Rnd_556x45_Stanag_T",20];
		_vec addmagazinecargo ["uns_20Rnd_556x45_Stanag_NT",20];
		_vec addmagazinecargo ["uns_30Rnd_556x45_Stanag",20];
		_vec addmagazinecargo ["uns_30Rnd_556x45_Stanag_T",20];
		_vec addmagazinecargo ["uns_30Rnd_556x45_Stanag_NT",20];
//mg ammo
		_vec addMagazineCargo ["uns_m63amag",20];
		_vec addmagazinecargo ["uns_m63abox",20];
		_vec addMagazineCargo ["uns_barmag",20];
		_vec addMagazineCargo ["uns_barmag_T",20];
		_vec addMagazineCargo ["uns_barmag_NT",20];
		_vec addMagazineCargo ["uns_m60mag",20];
		_vec addMagazineCargo ["uns_m60mag_200",20];
		_vec addMagazineCargo ["uns_rpdsogmag",20];		
//nades
		_vec addMagazineCargo ["uns_mk2gren",20];
		_vec addMagazineCargo ["uns_m61gren",20];
		_vec addMagazineCargo ["uns_m67gren",20];
		_vec addMagazineCargo ["uns_v40gren",20];
		_vec addMagazineCargo ["uns_m34gren",20];
		_vec addMagazineCargo ["uns_m14gren",20];
		_vec addMagazineCargo ["uns_m308gren",20];
		_vec addMagazineCargo ["uns_mk3a2gren",20];
		_vec addMagazineCargo ["uns_mk40gren",20];
		_vec addMagazineCargo ["uns_m18purple",20];
		_vec addMagazineCargo ["uns_m18yellow",20];
		_vec addMagazineCargo ["uns_m18green",20];
		_vec addMagazineCargo ["uns_m18red",20];
		_vec addMagazineCargo ["uns_m18white",20];
		_vec addMagazineCargo ["uns_m18orange",20];
		_vec addMagazineCargo ["uns_m18blue",20];
		_vec addMagazineCargo ["Uns_1Rnd_HE_M381",20];
		_vec addMagazineCargo ["Uns_1Rnd_HE_M406",20];
		_vec addMagazineCargo ["uns_1Rnd_AB_M397",20];
		_vec addMagazineCargo ["uns_1Rnd_HEDP_M433",20];
		_vec addMagazineCargo ["uns_1Rnd_BS_M576",20];
		_vec addMagazineCargo ["uns_m406vest",20];
		_vec addMagazineCargo ["uns_ex41mag",20];
		_vec addMagazineCargo ["Uns_1Rnd_22mm_M1a2_FRAG",20];

		_vec addMagazineCargo ["uns_40mm_white",20];
		_vec addMagazineCargo ["uns_40mm_green",20];
		_vec addMagazineCargo ["uns_40mm_red",20];
		_vec addMagazineCargo ["uns_40mm_yellow",20];
		_vec addMagazineCargo ["uns_40mm_mkv_White",20];
		_vec addMagazineCargo ["uns_40mm_mkv_Red",20];
		_vec addMagazineCargo ["uns_40mm_mkv_Yellow",20];
		_vec addMagazineCargo ["uns_40mm_mkv_Green",20];
		_vec addMagazineCargo ["uns_1Rnd_Smoke_MKV",20];
		_vec addMagazineCargo ["uns_1Rnd_SmokeGreen_MKV",20];
		_vec addMagazineCargo ["uns_1Rnd_SmokeRed_MKV",20];
		_vec addMagazineCargo ["uns_1Rnd_Smokeyellow_MKV",20];
		_vec addMagazineCargo ["uns_1Rnd_Smoke_40mm",20];
		_vec addMagazineCargo ["uns_1Rnd_SmokeGreen_40mm",20];
		_vec addMagazineCargo ["uns_1Rnd_SmokeRed_40mm",20];
		_vec addMagazineCargo ["uns_1Rnd_Smokeyellow_40mm",20];
//traps
		_vec addMagazineCargo ["uns_M118_mag_remote",20];
		_vec addMagazineCargo ["uns_traps_claymore_mag",20];
		_vec addMagazineCargo ["ClaymoreDirectionalMine_Remote_Mag",10];
		_vec addMagazineCargo ["ATMine_Range_Mag",10];
		_vec addMagazineCargo ["APERSMine_Range_Mag",30];
		_vec addMagazineCargo ["APERSBoundingMine_Range_Mag",30];
		_vec addMagazineCargo ["DemoCharge_Remote_Mag",10];
		_vec addMagazineCargo ["SatchelCharge_Remote_Mag",10];
		_vec addMagazineCargo ["APERSTripMine_Wire_Mag",10];
/*
		_vec addMagazineCargo ["PipeBomb",20];
		_vec addMagazineCargo ["Mine",20];
		_vec addMagazineCargo ["uns_traps_claymore_mag",20];
		_vec addMagazineCargo ["uns_traps_flare_mag",20];
		_vec addMagazineCargo ["uns_traps_mine_mag",20];
		_vec addMagazineCargo ["uns_traps_nade_mag",20];
		_vec addMagazineCargo ["uns_traps_nade_mag3",20];
		_vec addMagazineCargo ["uns_mine_IN_mag",20];
		_vec addMagazineCargo ["uns_mine_TM_mag",20];
*/
//items
		_vec addMagazineCargo ["uns_kabar",5];
		_vec addMagazineCargo ["uns_ItemSiphon",20];
		_vec addMagazineCargo ["uns_ItemFuelcan",5];
		_vec addItemCargo ["ItemMap",1];
		_vec addItemCargo ["ItemWatch",1];
		_vec addItemCargo ["ItemCompass",1];
		_vec addItemCargo ["UNS_ItemRadio_PRC_90",1];
		_vec addItemCargo ["UNS_ItemRadio_PRC_25",1];
		_vec addMagazineCargo ["UNS_sharkchaser",1];

// non-essential items
		_vec addMagazineCargo ["uns_leaflet1",3];
		_vec addMagazineCargo ["uns_leaflet2",3];
		_vec addMagazineCargo ["uns_leaflet3",3];
		_vec addMagazineCargo ["uns_leaflet4",3];
		_vec addMagazineCargo ["uns_leaflet5",3];
		_vec addMagazineCargo ["uns_leaflet6",3];
		_vec addMagazineCargo ["uns_leaflet7",3];
		_vec addMagazineCargo ["uns_leaflet8",3];
		_vec addMagazineCargo ["uns_leaflet9",3];
		_vec addMagazineCargo ["uns_leaflet10",3];
		_vec addMagazineCargo ["uns_leaflet11",3];
		_vec addMagazineCargo ["uns_leaflet12",3];
		_vec addMagazineCargo ["uns_leaflet13",3];
		_vec addMagazineCargo ["uns_leaflet14",3];
		_vec addMagazineCargo ["uns_leaflet15",3];
		_vec addMagazineCargo ["uns_leaflet16",3];
		_vec addMagazineCargo ["uns_item_dong",3];
		_vec addMagazineCargo ["uns_item_MPC",3];
		_vec addMagazineCargo ["uns_item_map1",3];
		_vec addMagazineCargo ["uns_item_map2",3];
		_vec addMagazineCargo ["uns_item_condoms",3];
		_vec addMagazineCargo ["uns_item_zippo",3];
		_vec addMagazineCargo ["uns_item_smokes",3];
		_vec addMagazineCargo ["uns_item_ashtray",3];
		_vec addMagazineCargo ["uns_item_messtin",3];
		_vec addMagazineCargo ["uns_item_messpass",3];
		_vec addMagazineCargo ["uns_item_bugspray",3];
		_vec addMagazineCargo ["uns_item_bugjuice",3];
		_vec addMagazineCargo ["uns_item_LRRPstew",3];
		_vec addMagazineCargo ["uns_item_P38",3];
		_vec addMagazineCargo ["uns_BA1568",3];
	}; // end of _EGG_fillammoboxW
	
//east weapons
	_EGG_fillammoboxE =
	{
		_rank = _this select 0;
		_vec = _this select 1;
		clearWeaponCargo _vec;
		clearMagazineCargo _vec;
		clearItemCargo _vec;
//dealing with darkness - top of crate
		_vec addItemCargo ["Binocular",1];
		_vec AddWeaponCargo ["uns_mkvFlarePistol",5];
		_vec AddWeaponCargo ["uns_MX991_w",5];
		_vec addItemCargo ["uns_BA30",5];
//essential kit
		_vec addItemCargo ["FirstAidKit",10];
		_vec addItemCargo ["Medikit",1];
		_vec addItemCargo ["ToolKit",1];
		_vec addItemCargo ["UNS_TrapKit",5];
//rockets
		_vec AddWeaponCargo ["uns_B40",5];
		_vec addMagazineCargo ["uns_B40grenade",5];
		switch (_rank) do
		{
			 case 0:
			{
//pistol
				_vec AddWeaponCargo ["uns_Tt33",5];
//smg
				_vec AddWeaponCargo ["uns_thompsonvc",5];
				_vec AddWeaponCargo ["uns_k50m",5];
				_vec AddWeaponCargo ["uns_mp40",5];
//rifles
				_vec AddWeaponCargo ["uns_baikal",5];
				_vec AddWeaponCargo ["uns_mosin",5];
				_vec AddWeaponCargo ["uns_mosins",5];
				_vec addWeaponCargo ["uns_mas4956",5];
//assault
				_vec AddWeaponCargo ["uns_type56",5];
				_vec AddWeaponCargo ["uns_ak47",5];
//mg
				_vec AddWeaponCargo ["uns_DP28",5];
//items
				_vec addItemCargo ["uns_b_6H3",1];
				_vec addItemCargo ["uns_o_PU",1];
				_vec addItemCargo ["uns_bp_DP28",1];
			};
			 case 1:
			{
//pistol
				_vec AddWeaponCargo ["uns_Tt33",5];
				_vec AddWeaponCargo ["uns_Makarov",5];
//smg
				_vec AddWeaponCargo ["uns_thompsonvc",5];
				_vec AddWeaponCargo ["uns_k50m",5];
				_vec AddWeaponCargo ["uns_mp40",5];
				_vec AddWeaponCargo ["uns_type50",5];
//rifles
				_vec AddWeaponCargo ["uns_baikal",5];
				_vec AddWeaponCargo ["uns_svt",5];
				_vec AddWeaponCargo ["uns_mosin",5];
				_vec AddWeaponCargo ["uns_mosins",5];
				_vec addWeaponCargo ["uns_mas4956",5];
				_vec AddWeaponCargo ["uns_mas4956bayo",5];
				_vec AddWeaponCargo ["uns_type99",5];
//assault
				_vec AddWeaponCargo ["uns_type56",5];
				_vec AddWeaponCargo ["uns_ak47",5];
				_vec AddWeaponCargo ["uns_ak47_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_49",5];
//mg
				_vec AddWeaponCargo ["uns_DP28",5];
				_vec AddWeaponCargo ["uns_MG42",5];
//rockets
				_vec AddWeaponCargo ["uns_rpg2",5];
//items
				_vec addItemCargo ["uns_b_6H3",1];
				_vec addItemCargo ["uns_o_PU",1];
				_vec addItemCargo ["uns_bp_DP28",1];
				_vec addItemCargo ["uns_bp_MG42",1];
			};
			 case 2:
			{
//pistol
				_vec AddWeaponCargo ["uns_p64",5];
				_vec AddWeaponCargo ["uns_Tt33",5];
				_vec AddWeaponCargo ["uns_Makarov",5];
//smg
				_vec AddWeaponCargo ["uns_thompsonvc",5];
				_vec AddWeaponCargo ["uns_mp40",5];
				_vec AddWeaponCargo ["uns_k50m",5];
				_vec AddWeaponCargo ["uns_k50mdrum",5];
				_vec AddWeaponCargo ["uns_type50",5];
				_vec AddWeaponCargo ["uns_STG_44",5];
//rifles
				_vec AddWeaponCargo ["uns_baikal",5];
				_vec AddWeaponCargo ["uns_baikal_sawnoff",5];
				_vec AddWeaponCargo ["uns_svt",5];
				_vec AddWeaponCargo ["uns_SKS",5];
				_vec AddWeaponCargo ["uns_mosin",5];
				_vec AddWeaponCargo ["uns_mosins",5];
				_vec AddWeaponCargo ["uns_mas36",5];
				_vec addWeaponCargo ["uns_mas4956",5];
				_vec AddWeaponCargo ["uns_mas4956bayo",5];
				_vec AddWeaponCargo ["uns_type99",5];
				_vec AddWeaponCargo ["uns_type99_bayo",5];
//assault
				_vec AddWeaponCargo ["uns_sa58p",5];
				_vec AddWeaponCargo ["uns_type56",5];
				_vec AddWeaponCargo ["uns_type56_bayo",5];
				_vec AddWeaponCargo ["uns_ak47",5];
				_vec AddWeaponCargo ["uns_ak47_bayo",5];
				_vec AddWeaponCargo ["uns_aks47",5];
				_vec AddWeaponCargo ["uns_ak47_49",5];
				_vec AddWeaponCargo ["uns_ak47_52",5];

				_vec AddWeaponCargo ["uns_akm",5];
				_vec AddWeaponCargo ["uns_akm_bayo",5];
//mg
				_vec AddWeaponCargo ["uns_DP28",5];
				_vec AddWeaponCargo ["uns_MG42",5];
//rockets
				_vec AddWeaponCargo ["uns_rpg2",5];
//items
				_vec addItemCargo ["uns_b_type30",1];
				_vec addItemCargo ["uns_b_spike",1];
				_vec addItemCargo ["uns_b_6H3",1];
				_vec addItemCargo ["uns_o_Akatihi4x",1];
				_vec addItemCargo ["uns_o_PU",1];
				_vec addItemCargo ["uns_bp_DP28",1];
				_vec addItemCargo ["uns_bp_MG42",1];
			};
			 case 3:
			{
//pistol
				_vec AddWeaponCargo ["uns_p64",5];
				_vec AddWeaponCargo ["uns_Tt33",5];
				_vec AddWeaponCargo ["uns_Makarov",5];
				_vec AddWeaponCargo ["uns_APS",5];
//smg
				_vec AddWeaponCargo ["uns_pm63",5];
				_vec AddWeaponCargo ["uns_thompsonvc",5];
				_vec AddWeaponCargo ["uns_mp40",5];
				_vec AddWeaponCargo ["uns_k50m",5];
				_vec AddWeaponCargo ["uns_k50mdrum",5];
				_vec AddWeaponCargo ["uns_type50",5];
				_vec AddWeaponCargo ["uns_PPS43",5];
				_vec AddWeaponCargo ["uns_STG_44",5];
//rifles
				_vec AddWeaponCargo ["uns_baikal",5];
				_vec AddWeaponCargo ["uns_baikal_sawnoff",5];
				_vec AddWeaponCargo ["uns_svt",5];
				_vec AddWeaponCargo ["uns_SKS",5];
				_vec AddWeaponCargo ["uns_mosin",5];
				_vec AddWeaponCargo ["uns_mosins",5];
				_vec AddWeaponCargo ["uns_mas36",5];
				_vec AddWeaponCargo ["uns_mas36bayo",5];
				_vec addWeaponCargo ["uns_mas4956",5];
				_vec AddWeaponCargo ["uns_mas4956bayo",5];
				_vec addWeaponCargo ["uns_mas4956s",5];
				_vec AddWeaponCargo ["uns_type99",5];
				_vec AddWeaponCargo ["uns_type99_bayo",5];
				_vec AddWeaponCargo ["uns_type99_sniper",5];
//assault
				_vec AddWeaponCargo ["uns_sa58p",5];
				_vec AddWeaponCargo ["uns_sa58p_bayo",5];
				_vec AddWeaponCargo ["uns_sa58vf",5];
				_vec AddWeaponCargo ["uns_type56",5];
				_vec AddWeaponCargo ["uns_type56_bayo",5];
				_vec AddWeaponCargo ["uns_ak47",5];
				_vec AddWeaponCargo ["uns_ak47_bayo",5];
				_vec AddWeaponCargo ["uns_aks47",5];
				_vec AddWeaponCargo ["uns_aks47_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_49",5];
				_vec AddWeaponCargo ["uns_ak47_52",5];

				_vec AddWeaponCargo ["uns_akm",5];
				_vec AddWeaponCargo ["uns_akm_bayo",5];
				_vec AddWeaponCargo ["uns_akm_drum",5];
				_vec AddWeaponCargo ["uns_akms",5];
				_vec AddWeaponCargo ["uns_akms_bayo",5];
				_vec AddWeaponCargo ["uns_akmsf",5];
//mg
				_vec AddWeaponCargo ["uns_DP28",5];
				_vec AddWeaponCargo ["uns_MG42",5];
				_vec AddWeaponCargo ["uns_RPD",5];
//rockets
				_vec AddWeaponCargo ["uns_rpg2",5];
				_vec AddWeaponCargo ["uns_rpg7",5];
//items
				_vec addItemCargo ["uns_b_type30",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_b_spike17",1];
				_vec addItemCargo ["uns_b_sks",1];
				_vec addItemCargo ["uns_b_spike",1];
				_vec addItemCargo ["uns_b_6H3",1];
				_vec addItemCargo ["uns_o_Akatihi4x",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_PU",1];
				_vec addItemCargo ["uns_bp_DP28",1];
				_vec addItemCargo ["uns_bp_MG42",1];
			};
			 case 4:
			{
//pistol
				_vec AddWeaponCargo ["uns_p64",5];
				_vec AddWeaponCargo ["uns_Tt33",5];
				_vec AddWeaponCargo ["uns_Makarov",5];
				_vec AddWeaponCargo ["uns_MakarovSD",5];
				_vec AddWeaponCargo ["uns_APS",5];
//smg
				_vec AddWeaponCargo ["uns_pm63",5];
				_vec AddWeaponCargo ["uns_pm63f",5];
				_vec AddWeaponCargo ["uns_thompsonvc",5];
				_vec AddWeaponCargo ["uns_mp40",5];
				_vec AddWeaponCargo ["uns_type50",5];
				_vec AddWeaponCargo ["uns_ppsh41",5];
				_vec AddWeaponCargo ["uns_k50m",5];
				_vec AddWeaponCargo ["uns_k50mdrum",5];
				_vec AddWeaponCargo ["uns_PPS43",5];
				_vec AddWeaponCargo ["uns_mat49",5];
				_vec AddWeaponCargo ["uns_STG_44",5];
//rifles
				_vec AddWeaponCargo ["uns_baikal",5];
				_vec AddWeaponCargo ["uns_baikal_sawnoff",5];
				_vec AddWeaponCargo ["uns_svt",5];
				_vec AddWeaponCargo ["uns_SKS",5];
				_vec AddWeaponCargo ["uns_sksbayo",5];
				_vec AddWeaponCargo ["uns_mosin",5];
				_vec AddWeaponCargo ["uns_mosins",5];
				_vec AddWeaponCargo ["uns_mas36",5];
				_vec AddWeaponCargo ["uns_mas36bayo",5];
				_vec addWeaponCargo ["uns_mas4956",5];
				_vec AddWeaponCargo ["uns_mas4956bayo",5];
				_vec addWeaponCargo ["uns_mas4956s",5];
				_vec AddWeaponCargo ["uns_type99",5];
				_vec AddWeaponCargo ["uns_type99_bayo",5];
				_vec AddWeaponCargo ["uns_type99_sniper",5];
				_vec AddWeaponCargo ["uns_type99_sniper_bayo",5];
//assault
				_vec AddWeaponCargo ["uns_sa58p",5];
				_vec AddWeaponCargo ["uns_sa58p_bayo",5];
				_vec AddWeaponCargo ["uns_sa58v",5];
				_vec AddWeaponCargo ["uns_sa58vf",5];
				_vec AddWeaponCargo ["uns_type56",5];
				_vec AddWeaponCargo ["uns_type56_bayo",5];
				_vec AddWeaponCargo ["uns_ak47",5];
				_vec AddWeaponCargo ["uns_ak47_bayo",5];
				_vec AddWeaponCargo ["uns_aks47",5];
				_vec AddWeaponCargo ["uns_aks47_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_49",5];
				_vec AddWeaponCargo ["uns_ak47_49_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_52",5];

				_vec AddWeaponCargo ["uns_akm",5];
				_vec AddWeaponCargo ["uns_akm_bayo",5];
				_vec AddWeaponCargo ["uns_akm_drum",5];
				_vec AddWeaponCargo ["uns_akms",5];
				_vec AddWeaponCargo ["uns_akms_bayo",5];
				_vec AddWeaponCargo ["uns_akms_SD",5];
				_vec AddWeaponCargo ["uns_akms_drum",5];
				_vec AddWeaponCargo ["uns_akmsf",5];
//mg
				_vec AddWeaponCargo ["uns_DP28",5];
				_vec AddWeaponCargo ["uns_MG42",5];
				_vec AddWeaponCargo ["uns_MG42support",5];
				_vec AddWeaponCargo ["uns_RPD",5];
				_vec AddWeaponCargo ["uns_RPK_40",5];
//rockets
				_vec AddWeaponCargo ["uns_rpg2",5];
				_vec AddWeaponCargo ["uns_rpg7",5];
//items
				_vec addItemCargo ["uns_b_type30",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_b_spike17",1];
				_vec addItemCargo ["uns_b_sks",1];
				_vec addItemCargo ["uns_b_spike",1];
				_vec addItemCargo ["uns_b_6H3",1];
				_vec addItemCargo ["uns_s_PBS1",1];
				_vec addItemCargo ["uns_s_APS",1];
				_vec addItemCargo ["uns_o_Akatihi4x",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_PU",1];
				_vec addItemCargo ["uns_bp_DP28",1];
				_vec addItemCargo ["uns_bp_MG42",1];
			};
			 case 5:
			{
//pistol
				_vec AddWeaponCargo ["uns_p64",5];
				_vec AddWeaponCargo ["uns_Tt33",5];
				_vec AddWeaponCargo ["uns_Makarov",5];
				_vec AddWeaponCargo ["uns_MakarovSD",5];
				_vec AddWeaponCargo ["uns_APS",5];
				_vec AddWeaponCargo ["uns_APS_SD",5];
//smg
				_vec AddWeaponCargo ["uns_pm63",5];
				_vec AddWeaponCargo ["uns_pm63f",5];
				_vec AddWeaponCargo ["uns_thompsonvc",5];
				_vec AddWeaponCargo ["uns_mp40",5];
				_vec AddWeaponCargo ["uns_type50",5];
				_vec AddWeaponCargo ["uns_ppsh41",5];
				_vec AddWeaponCargo ["uns_k50m",5];
				_vec AddWeaponCargo ["uns_k50mdrum",5];
				_vec AddWeaponCargo ["uns_PPS43",5];
				_vec AddWeaponCargo ["uns_PPS43f",5];
				_vec AddWeaponCargo ["uns_mat49",5];
				_vec AddWeaponCargo ["uns_STG_44",5];
//rifles
				_vec AddWeaponCargo ["uns_baikal",5];
				_vec AddWeaponCargo ["uns_baikal_sawnoff",5];
				_vec AddWeaponCargo ["uns_svt",5];
				_vec AddWeaponCargo ["uns_SKS",5];
				_vec AddWeaponCargo ["uns_sksbayo",5];
				_vec AddWeaponCargo ["uns_mosin",5];
				_vec AddWeaponCargo ["uns_mosins",5];
				_vec AddWeaponCargo ["uns_mas36",5];
				_vec AddWeaponCargo ["uns_mas36bayo",5];
				_vec AddWeaponCargo ["uns_mas36short",5];
				_vec addWeaponCargo ["uns_mas4956",5];
				_vec AddWeaponCargo ["uns_mas4956bayo",5];
				_vec addWeaponCargo ["uns_mas4956s",5];
				_vec AddWeaponCargo ["uns_mas4956sbayo",5];
				_vec AddWeaponCargo ["uns_type99",5];
				_vec AddWeaponCargo ["uns_type99_bayo",5];
				_vec AddWeaponCargo ["uns_type99_sniper",5];
				_vec AddWeaponCargo ["uns_type99_gl",5];
				_vec AddWeaponCargo ["uns_type99_sniper_bayo",5];
				_vec AddWeaponCargo ["uns_SVD",5];
//assault
				_vec AddWeaponCargo ["uns_sa58p",5];
				_vec AddWeaponCargo ["uns_sa58p_bayo",5];
				_vec AddWeaponCargo ["uns_sa58v",5];
				_vec AddWeaponCargo ["uns_sa58vf",5];
				_vec AddWeaponCargo ["uns_sa58v_bayo",5];
				_vec AddWeaponCargo ["uns_type56",5];
				_vec AddWeaponCargo ["uns_type56_bayo",5];
				_vec AddWeaponCargo ["uns_ak47",5];
				_vec AddWeaponCargo ["uns_ak47_bayo",5];
				_vec AddWeaponCargo ["uns_aks47",5];
				_vec AddWeaponCargo ["uns_aks47_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_49",5];
				_vec AddWeaponCargo ["uns_ak47_49_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_52",5];
				_vec AddWeaponCargo ["uns_ak47_52_bayo",5];

				_vec AddWeaponCargo ["uns_akm",5];
				_vec AddWeaponCargo ["uns_akm_bayo",5];
				_vec AddWeaponCargo ["uns_akm_drum",5];
				_vec AddWeaponCargo ["uns_akm_SD",5];
				_vec AddWeaponCargo ["uns_akms",5];
				_vec AddWeaponCargo ["uns_akms_bayo",5];
				_vec AddWeaponCargo ["uns_akms_SD",5];
				_vec AddWeaponCargo ["uns_akmsf_SD",5];
				_vec AddWeaponCargo ["uns_akms_drum",5];
				_vec AddWeaponCargo ["uns_akmsf",5];
				_vec AddWeaponCargo ["uns_akmsf_drum",5];
//mg
				_vec AddWeaponCargo ["uns_DP28",5];
				_vec AddWeaponCargo ["uns_MG42",5];
				_vec AddWeaponCargo ["uns_MG42support",5];
				_vec AddWeaponCargo ["uns_RPD",5];
				_vec AddWeaponCargo ["uns_RPDsupport",5];
				_vec AddWeaponCargo ["uns_RPK_40",5];
				_vec AddWeaponCargo ["uns_PK",5];
//rockets
				_vec AddWeaponCargo ["uns_rpg2",5];
				_vec AddWeaponCargo ["uns_rpg7",5];
				_vec AddWeaponCargo ["uns_sa7",5];
//items
				_vec addItemCargo ["uns_b_type30",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_b_spike17",1];
				_vec addItemCargo ["uns_b_sks",1];
				_vec addItemCargo ["uns_b_spike",1];
				_vec addItemCargo ["uns_b_6H3",1];
				_vec addItemCargo ["uns_s_PBS1",1];
				_vec addItemCargo ["uns_s_APS",1];
				_vec addItemCargo ["uns_o_Akatihi4x",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_PSO1",1];
				_vec addItemCargo ["uns_o_PU",1];
				_vec addItemCargo ["uns_bp_DP28",1];
				_vec addItemCargo ["uns_bp_MG42",1];
			};
			 case 6:
			{
//pistol
				_vec AddWeaponCargo ["uns_p64",5];
				_vec AddWeaponCargo ["uns_Tt33",5];
				_vec AddWeaponCargo ["uns_Makarov",5];
				_vec AddWeaponCargo ["uns_MakarovSD",5];
				_vec AddWeaponCargo ["uns_APS",5];
				_vec AddWeaponCargo ["uns_APS_SD",5];
				_vec AddWeaponCargo ["uns_pm63p",5];
//smg
				_vec AddWeaponCargo ["uns_pm63",5];
				_vec AddWeaponCargo ["uns_pm63f",5];
				_vec AddWeaponCargo ["uns_thompsonvc",5];
				_vec AddWeaponCargo ["uns_mp40",5];
				_vec AddWeaponCargo ["uns_type50",5];
				_vec AddWeaponCargo ["uns_ppsh41",5];
				_vec AddWeaponCargo ["uns_k50m",5];
				_vec AddWeaponCargo ["uns_k50mdrum",5];
				_vec AddWeaponCargo ["uns_PPS43",5];
				_vec AddWeaponCargo ["uns_PPS43f",5];
				_vec AddWeaponCargo ["uns_PPS52",5];
				_vec AddWeaponCargo ["uns_mat49",5];
				_vec AddWeaponCargo ["uns_STG_44",5];
//rifles
				_vec AddWeaponCargo ["uns_baikal",5];
				_vec AddWeaponCargo ["uns_baikal_sawnoff",5];
				_vec AddWeaponCargo ["uns_svt",5];
				_vec AddWeaponCargo ["uns_SKS",5];
				_vec AddWeaponCargo ["uns_sksbayo",5];
				_vec AddWeaponCargo ["uns_mosin",5];
				_vec AddWeaponCargo ["uns_mosins",5];
				_vec AddWeaponCargo ["uns_mas36",5];
				_vec AddWeaponCargo ["uns_mas36bayo",5];
				_vec AddWeaponCargo ["uns_mas36short",5];
				_vec addWeaponCargo ["uns_mas4956",5];
				_vec AddWeaponCargo ["uns_mas4956bayo",5];
				_vec addWeaponCargo ["uns_mas4956s",5];
				_vec AddWeaponCargo ["uns_mas4956sbayo",5];
				_vec AddWeaponCargo ["uns_mas4956_gl",5];
				_vec AddWeaponCargo ["uns_type99",5];
				_vec AddWeaponCargo ["uns_type99_bayo",5];
				_vec AddWeaponCargo ["uns_type99_sniper",5];
				_vec AddWeaponCargo ["uns_type99_gl",5];
				_vec AddWeaponCargo ["uns_type99_sniper_bayo",5];
				_vec AddWeaponCargo ["uns_SVD",5];
				_vec AddWeaponCargo ["uns_SVD_CAMO",5];
//assault
				_vec AddWeaponCargo ["uns_sa58p",5];
				_vec AddWeaponCargo ["uns_sa58p_bayo",5];
				_vec AddWeaponCargo ["uns_sa58v",5];
				_vec AddWeaponCargo ["uns_sa58vf",5];
				_vec AddWeaponCargo ["uns_sa58v_bayo",5];
				_vec AddWeaponCargo ["uns_type56",5];
				_vec AddWeaponCargo ["uns_type56_bayo",5];
				_vec AddWeaponCargo ["uns_ak47",5];
				_vec AddWeaponCargo ["uns_ak47_bayo",5];
				_vec AddWeaponCargo ["uns_aks47",5];
				_vec AddWeaponCargo ["uns_aks47_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_49",5];
				_vec AddWeaponCargo ["uns_ak47_49_bayo",5];
				_vec AddWeaponCargo ["uns_ak47_52",5];
				_vec AddWeaponCargo ["uns_ak47_52_bayo",5];

				_vec AddWeaponCargo ["uns_akm",5];
				_vec AddWeaponCargo ["uns_akm_bayo",5];
				_vec AddWeaponCargo ["uns_akm_drum",5];
				_vec AddWeaponCargo ["uns_akm_SD",5];
				_vec AddWeaponCargo ["uns_akms",5];
				_vec AddWeaponCargo ["uns_akms_bayo",5];
				_vec AddWeaponCargo ["uns_akms_SD",5];
				_vec AddWeaponCargo ["uns_akmsf_SD",5];
				_vec AddWeaponCargo ["uns_akms_drum",5];
				_vec AddWeaponCargo ["uns_akms_SD_drum",5];
				_vec AddWeaponCargo ["uns_akmsf",5];
				_vec AddWeaponCargo ["uns_akmsf_drum",5];
				_vec AddWeaponCargo ["uns_akmsf_SD_drum",5];
//mg
				_vec AddWeaponCargo ["uns_DP28",5];
				_vec AddWeaponCargo ["uns_MG42",5];
				_vec AddWeaponCargo ["uns_MG42support",5];
				_vec AddWeaponCargo ["uns_RPD",5];
				_vec AddWeaponCargo ["uns_RPDsupport",5];
				_vec AddWeaponCargo ["uns_RPK_40",5];
				_vec AddWeaponCargo ["uns_RPK_drum",5];
				_vec AddWeaponCargo ["uns_PK",5];
				_vec AddWeaponCargo ["uns_Pksupport",5];
//rockets
				_vec AddWeaponCargo ["uns_rpg2",5];
				_vec AddWeaponCargo ["uns_rpg7",5];
				_vec AddWeaponCargo ["uns_sa7",5];
				_vec AddWeaponCargo ["uns_sa7b",5];

//items				
				_vec addItemCargo ["uns_b_type30",1];
				_vec addItemCargo ["uns_b_mas49",1];
				_vec addItemCargo ["uns_b_spike17",1];
				_vec addItemCargo ["uns_b_sks",1];
				_vec addItemCargo ["uns_b_spike",1];
				_vec addItemCargo ["uns_b_6H3",1];
				_vec addItemCargo ["uns_s_PBS1",1];
				_vec addItemCargo ["uns_s_APS",1];
				_vec addItemCargo ["uns_o_Akatihi4x",1];
				_vec addItemCargo ["uns_o_APXSOM",1];
				_vec addItemCargo ["uns_o_PSO1",1];
				_vec addItemCargo ["uns_o_PSO1_camo",1];
				_vec addItemCargo ["uns_o_PU",1];
				_vec addItemCargo ["uns_bp_DP28",1];
				_vec addItemCargo ["uns_bp_MG42",1];
			};
		};
//AMMO

//pistol ammo
		_vec addmagazinecargo ["uns_6Rnd_czak",20];
		_vec addMagazineCargo ["uns_makarovmag",20];
		_vec addMagazineCargo ["uns_tokarevmag",20];
		_vec addmagazinecargo ["uns_20Rnd_APS",20];
		_vec addmagazinecargo ["uns_25Rnd_pm_pa",20];
//smg ammo
		_vec addMagazineCargo ["uns_thompsonmag_20",20];
		_vec addMagazineCargo ["uns_thompsonmag_20_T",20];
		_vec addMagazineCargo ["uns_thompsonmag_20_NT",20];
		_vec addmagazinecargo ["uns_mp40mag",20];
		_vec addmagazinecargo ["uns_25Rnd_pm",20];
		_vec addMagazineCargo ["uns_mat49mag_T",20];
		_vec addMagazineCargo ["uns_mat49mag_NT",20];
		_vec addMagazineCargo ["uns_mat49mag",20];
		_vec addMagazineCargo ["uns_k50mag",20];
		_vec addMagazineCargo ["uns_k50mag_NT",20];
		_vec addMagazineCargo ["uns_k50mag_T",20];
		_vec addMagazineCargo ["uns_ppshmag",20];
		_vec addMagazineCargo ["uns_ppshmag_T",20];
		_vec addMagazineCargo ["uns_ppshmag_NT",20];
//assault ammo
		_vec addmagazinecargo ["uns_30Rnd_kurtz_stg",20];
		_vec addMagazineCargo ["uns_ak47mag",20];
		_vec addMagazineCargo ["uns_ak47mag_T",20];
		_vec addMagazineCargo ["uns_ak47mag_NT",20];
		_vec addMagazineCargo ["uns_sa58mag",20];
		_vec addMagazineCargo ["uns_sa58mag_T",20];
		_vec addMagazineCargo ["uns_sa58mag_NT",20];
		_vec addmagazinecargo ["uns_75Rnd_akdr",20];
//rifle ammo
		_vec addMagazineCargo ["uns_12gaugemag_2",20];
		_vec addMagazineCargo ["uns_svtmag",20];
		_vec addMagazineCargo ["uns_svtmag_T",20];
		_vec addMagazineCargo ["uns_sksmag",20];
		_vec addMagazineCargo ["uns_sksmag_T",20];
		_vec addMagazineCargo ["uns_sksmag_NT",20];
		_vec addMagazineCargo ["uns_mosinmag",20];
		_vec addMagazineCargo ["uns_mosinmag_T",20];
		_vec addMagazineCargo ["uns_svdmag",20];
		_vec addMagazineCargo ["uns_svdmag_T",20];
		_vec addMagazineCargo ["uns_mas36mag",20];
		_vec addMagazineCargo ["uns_mas36mag_T",20];
		_vec addMagazineCargo ["uns_mas4956mag",20];
		_vec addMagazineCargo ["uns_mas4956mag_T",20];
		_vec addMagazineCargo ["uns_type99mag",20];
		_vec addMagazineCargo ["uns_type99mag_T",20];
//mg ammo
		_vec addMagazineCargo ["uns_rpkmag",20];
		_vec addMagazineCargo ["uns_rpdmag",20];
		_vec addmagazinecargo ["uns_50Rnd_792x57_Mg42",20];
		_vec addmagazinecargo ["uns_250Rnd_792x57_Mg42",20];
		_vec addmagazinecargo ["uns_100Rnd_762x54_PK",20];
		_vec addmagazinecargo ["uns_47Rnd_DP28",20];
//rocket ammo
		_vec addmagazinecargo ["uns_B40grenade",20];
		_vec addMagazineCargo ["uns_rpg2grenade",20];
		_vec addMagazineCargo ["uns_rpg7grenade",20];
		_vec addMagazineCargo ["uns_sa7mag",20];
		_vec addMagazineCargo ["uns_sa7bmag",20];
//nades
		_vec addMagazineCargo ["Uns_1Rnd_22mm_FRAG",20];
		_vec addMagazineCargo ["Uns_1Rnd_22mm_AT",20];
		_vec addMagazineCargo ["Uns_1Rnd_22mm_HEAT",20];
		_vec addMagazineCargo ["Uns_1Rnd_22mm_lume",20];
		_vec addMagazineCargo ["Uns_1Rnd_22mm_smoke",20];
		_vec addMagazineCargo ["Uns_1Rnd_22mm_WP",20];
		_vec addMagazineCargo ["Uns_1Rnd_30mm_FRAG",20];

		_vec AddmagazineCargo ["uns_molotov_mag",20];
		_vec AddmagazineCargo ["uns_t67gren",20];
		_vec AddmagazineCargo ["uns_rgd33gren",20];
		_vec addMagazineCargo ["uns_f1gren",20];
		_vec AddmagazineCargo ["uns_rg42gren",20];
		_vec AddmagazineCargo ["uns_rgd5gren",20];
		_vec AddmagazineCargo ["uns_rkg3gren",20];
		_vec addMagazineCargo ["uns_rdg2",20];
		_vec addMagazineCargo ["uns_rdg3",20];
//traps
		_vec addMagazineCargo ["APERSMine_Range_Mag",30];
		_vec addMagazineCargo ["DemoCharge_Remote_Mag",10];
		_vec addMagazineCargo ["SatchelCharge_Remote_Mag",10];
		_vec addMagazineCargo ["APERSTripMine_Wire_Mag",10];
/*
		_vec addMagazineCargo ["uns_traps_punj1_mag",20];
		_vec addMagazineCargo ["uns_traps_punj2_mag",20];
		_vec addMagazineCargo ["uns_traps_punj4_mag",20];
		_vec addMagazineCargo ["uns_traps_punj5_mag",20];
		_vec addMagazineCargo ["uns_traps_nade_mag2",20];
		_vec addMagazineCargo ["uns_traps_nade_mag4",20];
		_vec addMagazineCargo ["uns_traps_arty_mag",20];
		_vec addMagazineCargo ["uns_mine_AP_mag",20];
		_vec addMagazineCargo ["uns_mine_AT_mag",20];
		_vec addMagazineCargo ["uns_mine_AV_mag",20];
		_vec addMagazineCargo ["PipeBomb",20];
		_vec addMagazineCargo ["MineE",20];
*/
//items
		_vec addMagazineCargo ["uns_knife",5];
		_vec addMagazineCargo ["uns_ItemSiphon",20];
		_vec addMagazineCargo ["uns_ItemFuelcan",5];
		_vec addItemCargo ["ItemMap",1];
		_vec addItemCargo ["ItemWatch",1];
		_vec addItemCargo ["ItemCompass",1];
		_vec addItemCargo ["UNS_ItemRadio_T_884",1];
// non-essential items
		_vec addMagazineCargo ["uns_leaflet3",3];
		_vec addMagazineCargo ["uns_leaflet9",3];
		_vec addMagazineCargo ["uns_leaflet10",3];
		_vec addMagazineCargo ["uns_leaflet13",3];
		_vec addMagazineCargo ["uns_leaflet16",3];
		_vec addMagazineCargo ["uns_item_dong",3];
		_vec addMagazineCargo ["uns_item_map1",3];
		_vec addMagazineCargo ["uns_item_map2",3];
		_vec addMagazineCargo ["uns_item_smokes",3];
	}; // end of _EGG_fillammoboxE
	
//uniforms and helmets
	_EGG_fillammoboxG1 =
	{
		_rank = _this select 0;
		_vec = _this select 1;
		clearWeaponCargo _vec;
		clearMagazineCargo _vec;
		clearItemCargo _vec;

		switch (_rank) do
		{		
			 case 0:
			{
//HEADGEAR
				_vec addItemCargo ["UNS_USMC_Cover",1];
				_vec addItemCargo ["UNS_Beret_G",1];
				_vec addItemCargo ["UNS_M1_4",1];
				_vec addItemCargo ["UNS_M1_3",1];
				_vec addItemCargo ["UNS_M1_2",1];
				_vec addItemCargo ["UNS_M1_1",1];
//UNIFORMS
				_vec addItemCargo ["UNS_NZ_ARMY_BDU",1];
				_vec addItemCargo ["UNS_RAR_ARMY_BDU",1];
				_vec addItemCargo ["UNS_Pilot_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU",1];
				_vec addItemCargo ["UNS_USMC_BDU",1];
/*
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pvt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pfc",1];
*/
			};
			 case 1:
			{
//HEADGEAR
				_vec addItemCargo ["UNS_USMC_Cover",1];
				_vec addItemCargo ["UNS_Beret_G",1];
				_vec addItemCargo ["UNS_Beret_B",1];
				_vec addItemCargo ["UNS_M1_4",1];
				_vec addItemCargo ["UNS_M1_3",1];
				_vec addItemCargo ["UNS_M1_2",1];
				_vec addItemCargo ["UNS_M1_1",1];
				_vec addItemCargo ["UNS_M1_1V",1];
				_vec addItemCargo ["UNS_Boonie_OD",1];

//UNIFORMS
				_vec addItemCargo ["UNS_NZ_ARMY_BDU",1];
				_vec addItemCargo ["UNS_RAR_ARMY_BDU",1];
				_vec addItemCargo ["UNS_Pilot_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU",1];
				_vec addItemCargo ["UNS_USMC_Flak",1];
				_vec addItemCargo ["UNS_USMC_BDU",1];
/*
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pvt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pfc",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65lcpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpl",1];
*/
			};
			 case 2:
			{
//HEADGEAR
				_vec addItemCargo ["UNS_TC_1",1];
				_vec addItemCargo ["UNS_USMC_Cover",1];
				_vec addItemCargo ["UNS_Beret_G",1];
				_vec addItemCargo ["UNS_Beret_MRF",1];
				_vec addItemCargo ["UNS_Beret_B",1];
				_vec addItemCargo ["UNS_Beret_5",1];
				_vec addItemCargo ["UNS_M1_3A",1];
				_vec addItemCargo ["UNS_M1_2A",1];
				_vec addItemCargo ["UNS_M1_4",1];
				_vec addItemCargo ["UNS_M1_3",1];
				_vec addItemCargo ["UNS_M1_2",1];
				_vec addItemCargo ["UNS_M1_1",1];
				_vec addItemCargo ["UNS_M1_1V",1];
				_vec addItemCargo ["UNS_M1_1V1",1];
				_vec addItemCargo ["UNS_M1_1V2",1];
				_vec addItemCargo ["UNS_Boonie_OD",1];
//UNIFORMS
				_vec addItemCargo ["UNS_NZ_ARMY_BDU",1];
				_vec addItemCargo ["UNS_RAR_ARMY_BDU",1];
				_vec addItemCargo ["UNS_Pilot_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU_F",1];
				_vec addItemCargo ["UNS_USMC_Flak",1];
				_vec addItemCargo ["UNS_USMC_Flak_F",1];
				_vec addItemCargo ["UNS_USMC_BDU",1];
				
/*
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pvt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pfc",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65lcpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65mgsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65ssg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65msg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgm",1];
*/
			};
			 case 3:
			{
//HEADGEAR
				_vec addItemCargo ["UNS_TC_1",1];
				_vec addItemCargo ["UNS_USMC_Cover",1];
				_vec addItemCargo ["UNS_Beret_G",1];
				_vec addItemCargo ["UNS_Beret_AVAB",1];
				_vec addItemCargo ["UNS_Beret_MRF",1];
				_vec addItemCargo ["UNS_Beret_B",1];
				_vec addItemCargo ["UNS_Beret_5",1];
				_vec addItemCargo ["UNS_Beret_51LT",1];
				_vec addItemCargo ["UNS_Beret_52LT",1];
				_vec addItemCargo ["UNS_JP_Helmet",1];
				_vec addItemCargo ["UNS_M1_5A",1];
				_vec addItemCargo ["UNS_M1_4A",1];
				_vec addItemCargo ["UNS_M1_3A",1];
				_vec addItemCargo ["UNS_M1_2A",1];
				_vec addItemCargo ["UNS_M1_17",1];
				_vec addItemCargo ["UNS_M1_16",1];
				_vec addItemCargo ["UNS_M1_6",1];
				_vec addItemCargo ["UNS_M1_5",1];
				_vec addItemCargo ["UNS_M1_4",1];
				_vec addItemCargo ["UNS_M1_3",1];
				_vec addItemCargo ["UNS_M1_2",1];
				_vec addItemCargo ["UNS_M1_1",1];
				_vec addItemCargo ["UNS_M1_SP",1];
				_vec addItemCargo ["UNS_M1_1V",1];
				_vec addItemCargo ["UNS_M1_1V1",1];
				_vec addItemCargo ["UNS_M1_1V2",1];
				_vec addItemCargo ["UNS_M1_1V1N",1];
				_vec addItemCargo ["UNS_M1_1V3",1];
				_vec addItemCargo ["UNS_Boonie_TIG",1];
				_vec addItemCargo ["UNS_Boonie_DKF",1];
				_vec addItemCargo ["UNS_Boonie_OD",1];
				_vec addItemCargo ["UNS_Boonie_ODF",1];
				_vec addItemCargo ["UNS_Headband_OD",1];
//UNIFORMS
				_vec addItemCargo ["UNS_NZ_ARMY_BDU",1];
				_vec addItemCargo ["UNS_RAR_ARMY_BDU",1];
				_vec addItemCargo ["UNS_Pilot_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU_F",1];
				_vec addItemCargo ["UNS_ARMY_BDU_65",1];
				_vec addItemCargo ["UNS_USMC_Flak",1];
				_vec addItemCargo ["UNS_USMC_Flak_F",1];
				_vec addItemCargo ["UNS_USMC_FLAK_65",1];
				_vec addItemCargo ["UNS_USMC_BDU",1];
				_vec addItemCargo ["UNS_USMC_LERDL",1];
				_vec addItemCargo ["UNS_SEAL_BDU_TS",1];
				_vec addItemCargo ["UNS_SOG_BDU_O",1];

/*
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pvt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pfc",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65lcpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65mgsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65ssg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65msg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgm",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC652ndlt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stlt",1];
*/
			};
			 case 4:
			{
//HEADGEAR
				_vec addItemCargo ["UNS_TC_1",1];
				_vec addItemCargo ["UNS_USMC_Cover",1];
				_vec addItemCargo ["UNS_Beret_G",1];
				_vec addItemCargo ["UNS_Beret_AVAB",1];
				_vec addItemCargo ["UNS_Beret_MRF",1];
				_vec addItemCargo ["UNS_Beret_B",1];
				_vec addItemCargo ["UNS_Beret_5",1];
				_vec addItemCargo ["UNS_Beret_51LT",1];
				_vec addItemCargo ["UNS_Beret_52LT",1];
				_vec addItemCargo ["UNS_Beret_5CPT",1];
				_vec addItemCargo ["UNS_JP_Helmet",1];
				_vec addItemCargo ["UNS_M1_7A",1];
				_vec addItemCargo ["UNS_M1_6A",1];
				_vec addItemCargo ["UNS_M1_5A",1];
				_vec addItemCargo ["UNS_M1_4A",1];
				_vec addItemCargo ["UNS_M1_3A",1];
				_vec addItemCargo ["UNS_M1_2A",1];
				_vec addItemCargo ["UNS_M1_18",1];
				_vec addItemCargo ["UNS_M1_17",1];
				_vec addItemCargo ["UNS_M1_16",1];
				_vec addItemCargo ["UNS_M1_9",1];
				_vec addItemCargo ["UNS_M1_8",1];
				_vec addItemCargo ["UNS_M1_7",1];
				_vec addItemCargo ["UNS_M1_6",1];
				_vec addItemCargo ["UNS_M1_5",1];
				_vec addItemCargo ["UNS_M1_4",1];
				_vec addItemCargo ["UNS_M1_3",1];
				_vec addItemCargo ["UNS_M1_2",1];
				_vec addItemCargo ["UNS_M1_1",1];
				_vec addItemCargo ["UNS_M1_MP",1];
				_vec addItemCargo ["UNS_M1_SP",1];
				_vec addItemCargo ["UNS_M1_1V",1];
				_vec addItemCargo ["UNS_M1_1V1",1];
				_vec addItemCargo ["UNS_M1_1V2",1];
				_vec addItemCargo ["UNS_M1_1V1N",1];
				_vec addItemCargo ["UNS_M1_1V3",1];
				_vec addItemCargo ["UNS_M1_1V4",1];
				_vec addItemCargo ["UNS_M1_1V5",1];
				_vec addItemCargo ["UNS_Boonie_TIG",1];
				_vec addItemCargo ["UNS_Boonie_TIGF",1];
				_vec addItemCargo ["UNS_Boonie_DKF",1];
				_vec addItemCargo ["UNS_Boonie_OD2",1];
				_vec addItemCargo ["UNS_Boonie_OD",1];
				_vec addItemCargo ["UNS_Boonie_ODF",1];
				_vec addItemCargo ["UNS_Headband_OD",1];
				_vec addItemCargo ["UNS_Headband_OD2",1];
//UNIFORMS
				_vec addItemCargo ["UNS_NZ_ARMY_BDU",1];
				_vec addItemCargo ["UNS_RAR_ARMY_BDU",1];
				_vec addItemCargo ["UNS_Pilot_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU_F",1];
				_vec addItemCargo ["UNS_ARMY_BDU_65",1];
				_vec addItemCargo ["UNS_USMC_BDU_65",1];
				_vec addItemCargo ["UNS_USMC_Flak",1];
				_vec addItemCargo ["UNS_USMC_Flak_F",1];
				_vec addItemCargo ["UNS_USMC_FLAK_65",1];
				_vec addItemCargo ["UNS_USMC_Flak_S",1];
				_vec addItemCargo ["UNS_USMC_BDU",1];
				_vec addItemCargo ["UNS_USMC_LERDL",1];
				_vec addItemCargo ["UNS_TIGER_BDU",1];
				_vec addItemCargo ["UNS_DUCK_BDU",1];
				_vec addItemCargo ["UNS_SEAL_BDU_TS",1];
				_vec addItemCargo ["UNS_SEAL_BDU_TD",1];
				_vec addItemCargo ["UNS_SOG_BDU_O",1];
				_vec addItemCargo ["UNS_SOG_BDU_OP",1];
				
/*
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pvt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pfc",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65lcpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65mgsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65ssg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65msg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgm",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC652ndlt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stlt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpt",1];
*/
			};
			 case 5:
			{
//HEADGEAR
				_vec addItemCargo ["UNS_TC_1",1];
				_vec addItemCargo ["UNS_TC_2",1];
				_vec addItemCargo ["UNS_USMC_Cover",1];
				_vec addItemCargo ["UNS_Beret_G",1];
				_vec addItemCargo ["UNS_Beret_AVAB",1];
				_vec addItemCargo ["UNS_Beret_AVM",1];
				_vec addItemCargo ["UNS_Beret_MRF",1];
				_vec addItemCargo ["UNS_Beret_B",1];
				_vec addItemCargo ["UNS_Beret_5",1];
				_vec addItemCargo ["UNS_Beret_51LT",1];
				_vec addItemCargo ["UNS_Beret_52LT",1];
				_vec addItemCargo ["UNS_Beret_5CPT",1];
				_vec addItemCargo ["UNS_Beret_5MAJ",1];
				_vec addItemCargo ["UNS_HP_Helmet",1];
				_vec addItemCargo ["UNS_JP_Helmet",1];
				_vec addItemCargo ["UNS_M1_9A",1];
				_vec addItemCargo ["UNS_M1_8A",1];
				_vec addItemCargo ["UNS_M1_7A",1];
				_vec addItemCargo ["UNS_M1_6A",1];
				_vec addItemCargo ["UNS_M1_5A",1];
				_vec addItemCargo ["UNS_M1_4A",1];
				_vec addItemCargo ["UNS_M1_3A",1];
				_vec addItemCargo ["UNS_M1_2A",1];
				_vec addItemCargo ["UNS_M1_20",1];
				_vec addItemCargo ["UNS_M1_19",1];
				_vec addItemCargo ["UNS_M1_18",1];
				_vec addItemCargo ["UNS_M1_17",1];
				_vec addItemCargo ["UNS_M1_16",1];
				_vec addItemCargo ["UNS_M1_12",1];
				_vec addItemCargo ["UNS_M1_11",1];
				_vec addItemCargo ["UNS_M1_10",1];
				_vec addItemCargo ["UNS_M1_9",1];
				_vec addItemCargo ["UNS_M1_8",1];
				_vec addItemCargo ["UNS_M1_7",1];
				_vec addItemCargo ["UNS_M1_6",1];
				_vec addItemCargo ["UNS_M1_5",1];
				_vec addItemCargo ["UNS_M1_4",1];
				_vec addItemCargo ["UNS_M1_3",1];
				_vec addItemCargo ["UNS_M1_2",1];
				_vec addItemCargo ["UNS_M1_1",1];
				_vec addItemCargo ["UNS_M1_AFT",1];
				_vec addItemCargo ["UNS_M1_MP",1];
				_vec addItemCargo ["UNS_M1_SP",1];
				_vec addItemCargo ["UNS_M1_PBR",1];
				_vec addItemCargo ["UNS_M1_1V",1];
				_vec addItemCargo ["UNS_M1_1V1",1];
				_vec addItemCargo ["UNS_M1_1V2",1];
				_vec addItemCargo ["UNS_M1_1V1N",1];
				_vec addItemCargo ["UNS_M1_1V3",1];
				_vec addItemCargo ["UNS_M1_1V4",1];
				_vec addItemCargo ["UNS_M1_1V5",1];
				_vec addItemCargo ["UNS_M1_1V6",1];
				_vec addItemCargo ["UNS_M1_1V7",1];
				_vec addItemCargo ["UNS_Boonie_TIG",1];
				_vec addItemCargo ["UNS_Boonie_TIG1",1];
				_vec addItemCargo ["UNS_Boonie_TIGF",1];
				_vec addItemCargo ["UNS_Boonie_TIGF2",1];
				_vec addItemCargo ["UNS_Boonie_DK",1];
				_vec addItemCargo ["UNS_Boonie_OD2",1];
				_vec addItemCargo ["UNS_Boonie_OD",1];
				_vec addItemCargo ["UNS_Boonie_ODF",1];
				_vec addItemCargo ["UNS_Bandana_OD",1];
				_vec addItemCargo ["UNS_Headband_OD",1];
				_vec addItemCargo ["UNS_Headband_OD2",1];
				_vec addItemCargo ["UNS_Headband_ED",1];
//UNIFORMS
				_vec addItemCargo ["UNS_NZ_ARMY_BDU",1];
				_vec addItemCargo ["UNS_RAR_ARMY_BDU",1];
				_vec addItemCargo ["UNS_Pilot_BDU",1];
				_vec addItemCargo ["UNS_JPilot_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU_F",1];
				_vec addItemCargo ["UNS_ARMY_BDU_65",1];
				_vec addItemCargo ["UNS_USMC_BDU_65",1];
				_vec addItemCargo ["UNS_USMC_Flak",1];
				_vec addItemCargo ["UNS_USMC_Flak_F",1];
				_vec addItemCargo ["UNS_USMC_FLAK_65",1];
				_vec addItemCargo ["UNS_USMC_FLAK2_65",1];
				_vec addItemCargo ["UNS_USMC_Flak_S",1];
				_vec addItemCargo ["UNS_USMC_Flak_E",1];
				_vec addItemCargo ["UNS_USMC_BDU",1];
				_vec addItemCargo ["UNS_USMC_BDU_S",1];
				_vec addItemCargo ["UNS_USMC_LERDL",1];
				_vec addItemCargo ["UNS_TIGER_BDU",1];
				_vec addItemCargo ["UNS_TIGER2_BDU",1];
				_vec addItemCargo ["UNS_DUCK_BDU",1];
				_vec addItemCargo ["UNS_SEAL_BDU_TS",1];
				_vec addItemCargo ["UNS_SEAL_BDU_TD",1];
				_vec addItemCargo ["UNS_SEAL_BDU_ED",1];
				_vec addItemCargo ["UNS_SOG_BDU_O",1];
				_vec addItemCargo ["UNS_SOG_BDU_OP",1];
				_vec addItemCargo ["UNS_SOG_BDU_BT",1];
				
/*
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pvt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pfc",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65lcpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65mgsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65ssg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65msg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgm",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC652ndlt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stlt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65maj",1];
*/
			};
			 case 6:
			{
//HEADGEAR

				_vec addItemCargo ["UNS_TC_1",1];
				_vec addItemCargo ["UNS_TC_2",1];
				_vec addItemCargo ["UNS_USMC_Cover",1];
				_vec addItemCargo ["UNS_Beret_G",1];
				_vec addItemCargo ["UNS_Beret_AVAB",1];
				_vec addItemCargo ["UNS_Beret_AVM",1];
				_vec addItemCargo ["UNS_Beret_AVR",1];
				_vec addItemCargo ["UNS_Beret_MRF",1];
				_vec addItemCargo ["UNS_Beret_B",1];
				_vec addItemCargo ["UNS_Beret_5",1];
				_vec addItemCargo ["UNS_Beret_51LT",1];
				_vec addItemCargo ["UNS_Beret_52LT",1];
				_vec addItemCargo ["UNS_Beret_5CPT",1];
				_vec addItemCargo ["UNS_Beret_5MAJ",1];
				_vec addItemCargo ["UNS_Beret_5LTCOL",1];
				_vec addItemCargo ["UNS_Beret_5COL",1];
				_vec addItemCargo ["UNS_HP_Helmet",1];
				_vec addItemCargo ["UNS_JP_Helmet",1];
				_vec addItemCargo ["UNS_JP_Helmet2",1];
				_vec addItemCargo ["UNS_M1_9A",1];
				_vec addItemCargo ["UNS_M1_8A",1];
				_vec addItemCargo ["UNS_M1_7A",1];
				_vec addItemCargo ["UNS_M1_6A",1];
				_vec addItemCargo ["UNS_M1_5A",1];
				_vec addItemCargo ["UNS_M1_4A",1];
				_vec addItemCargo ["UNS_M1_3A",1];
				_vec addItemCargo ["UNS_M1_2A",1];

				_vec addItemCargo ["UNS_M1_23",1];
				_vec addItemCargo ["UNS_M1_22",1];
				_vec addItemCargo ["UNS_M1_21",1];
				_vec addItemCargo ["UNS_M1_20",1];
				_vec addItemCargo ["UNS_M1_19",1];
				_vec addItemCargo ["UNS_M1_18",1];
				_vec addItemCargo ["UNS_M1_17",1];
				_vec addItemCargo ["UNS_M1_16",1];
				_vec addItemCargo ["UNS_M1_15",1];
				_vec addItemCargo ["UNS_M1_14",1];
				_vec addItemCargo ["UNS_M1_13",1];
				_vec addItemCargo ["UNS_M1_12",1];
				_vec addItemCargo ["UNS_M1_11",1];
				_vec addItemCargo ["UNS_M1_10",1];
				_vec addItemCargo ["UNS_M1_9",1];
				_vec addItemCargo ["UNS_M1_8",1];
				_vec addItemCargo ["UNS_M1_7",1];
				_vec addItemCargo ["UNS_M1_6",1];
				_vec addItemCargo ["UNS_M1_5",1];
				_vec addItemCargo ["UNS_M1_4",1];
				_vec addItemCargo ["UNS_M1_3",1];
				_vec addItemCargo ["UNS_M1_2",1];
				_vec addItemCargo ["UNS_M1_1",1];
				_vec addItemCargo ["UNS_M1_AFT",1];
				_vec addItemCargo ["UNS_M1_MP",1];
				_vec addItemCargo ["UNS_M1_SP",1];
				_vec addItemCargo ["UNS_M1_PBR",1];
				_vec addItemCargo ["UNS_M1_1V",1];
				_vec addItemCargo ["UNS_M1_1V1",1];
				_vec addItemCargo ["UNS_M1_1V2",1];
				_vec addItemCargo ["UNS_M1_1V1N",1];
				_vec addItemCargo ["UNS_M1_1V3",1];
				_vec addItemCargo ["UNS_M1_1V4",1];
				_vec addItemCargo ["UNS_M1_1V5",1];
				_vec addItemCargo ["UNS_M1_1V6",1];
				_vec addItemCargo ["UNS_M1_1V7",1];
				_vec addItemCargo ["UNS_M1_1V8",1];
				_vec addItemCargo ["UNS_M1_1RM",1];
				_vec addItemCargo ["UNS_Boonie_TIG",1];
				_vec addItemCargo ["UNS_Boonie_TIG1",1];
				_vec addItemCargo ["UNS_Boonie_TIG2",1];
				_vec addItemCargo ["UNS_Boonie_TIGF",1];
				_vec addItemCargo ["UNS_Boonie_TIGF2",1];
				_vec addItemCargo ["UNS_Boonie_TIGF3",1];
				_vec addItemCargo ["UNS_Boonie_TIGF4",1];
				_vec addItemCargo ["UNS_Boonie_DK",1];
				_vec addItemCargo ["UNS_Boonie_DKF",1];
				_vec addItemCargo ["UNS_Boonie_OD2",1];
				_vec addItemCargo ["UNS_Boonie_OD",1];
				_vec addItemCargo ["UNS_Boonie_ODF",1];
				_vec addItemCargo ["UNS_Boonie_ODP",1];
				_vec addItemCargo ["UNS_Boonie_ERDL",1];
				_vec addItemCargo ["UNS_Bandana_OD",1];
				_vec addItemCargo ["UNS_Bandana_OD2",1];
				_vec addItemCargo ["UNS_Bandana_OD3",1];
				_vec addItemCargo ["UNS_Headband_OD",1];
				_vec addItemCargo ["UNS_Headband_OD2",1];
				_vec addItemCargo ["UNS_Headband_ED",1];
				_vec addItemCargo ["UNS_Headband_BK",1];
//UNIFORMS
				_vec addItemCargo ["UNS_NZ_ARMY_BDU",1];
				_vec addItemCargo ["UNS_RAR_ARMY_BDU",1];
				_vec addItemCargo ["UNS_Pilot_BDU",1];
				_vec addItemCargo ["UNS_JPilot_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU",1];
				_vec addItemCargo ["UNS_ARMY_BDU_F",1];
				_vec addItemCargo ["UNS_ARMY_BDU_65",1];
				_vec addItemCargo ["UNS_USMC_BDU_65",1];
				_vec addItemCargo ["UNS_USMC_BDU_65_2",1];

				_vec addItemCargo ["UNS_USMC_Flak",1];
				_vec addItemCargo ["UNS_USMC_Flak_F",1];
				_vec addItemCargo ["UNS_USMC_FLAK_65",1];
				_vec addItemCargo ["UNS_USMC_FLAK2_65",1];
				_vec addItemCargo ["UNS_USMC_Flak_S",1];
				_vec addItemCargo ["UNS_USMC_Flak_E",1];
				_vec addItemCargo ["UNS_USMC_Flak_ES",1];

				_vec addItemCargo ["UNS_USMC_BDU",1];
				_vec addItemCargo ["UNS_USMC_BDU_S",1];
				_vec addItemCargo ["UNS_USMC_LERDL",1];
				_vec addItemCargo ["UNS_TIGER_BDU",1];
				_vec addItemCargo ["UNS_TIGER2_BDU",1];
				_vec addItemCargo ["UNS_TIGER3_BDU",1];
				_vec addItemCargo ["UNS_DUCK_BDU",1];

				_vec addItemCargo ["UNS_SEAL_BDU_TS",1];
				_vec addItemCargo ["UNS_SEAL_BDU_TD",1];
				_vec addItemCargo ["UNS_SEAL_BDU_ED",1];
				_vec addItemCargo ["UNS_SEAL_BDU_ET",1];
				_vec addItemCargo ["UNS_SOG_BDU_O",1];
				_vec addItemCargo ["UNS_SOG_BDU_OP",1];
				_vec addItemCargo ["UNS_SOG_BDU_BT",1];
				_vec addItemCargo ["UNS_SOG_BDU_BK",1];
				_vec addItemCargo ["UNS_SOG_BDU_TS",1];
				
				
/*
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pvt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65pfc",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65lcpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65mgsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpl",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65ssg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65msg",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stsgt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65sgm",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC652ndlt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC651stlt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65cpt",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65maj",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65ltcol",1];
				_vec addItemCargo ["UNS_USMC_BDU_USMC65col",1];
*/
			};
		};
	}; // _EGG_fillammoboxG1
//weapon packs
	_EGG_fillpackbox_W =
	{
		_rank = _this select 0;
		_vec = _this select 1;
		clearWeaponCargo _vec;
		clearMagazineCargo _vec;
		clearbackpackcargo _vec;
		clearItemCargo _vec;

		switch (_rank) do
		{
			_vec addBackpackCargo ["uns_Tripod_Bag",10];
			 case 0:
			{
//PACKS
				_vec addBackpackCargo ["uns_M60_low_US_Bag",1];
				_vec addBackpackCargo ["Uns_US_searchlight_Bag",1];
			};
			 case 1:
			{
//PACKS
				_vec addBackpackCargo ["uns_M60_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_60mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["Uns_US_searchlight_Bag",1];
				_vec addBackpackCargo ["uns_pk_low_NVA_Bag",1];
			};
			 case 2:
			{
//PACKS
				_vec addBackpackCargo ["uns_M60_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M1919_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_60mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["Uns_US_searchlight_Bag",1];
				_vec addBackpackCargo ["uns_pk_low_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_PK_High_NVA_Bag",1];
			};
			 case 3:
			{
//PACKS
				_vec addBackpackCargo ["uns_M60_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M1919_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_60mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["Uns_US_searchlight_Bag",1];
				_vec addBackpackCargo ["uns_pk_low_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_PK_High_NVA_Bag",1];
				_vec addBackpackCargo ["uns_MG42_NVA_Bag",1];
			};
			 case 4:
			{
//PACKS
				_vec addBackpackCargo ["uns_M60_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M1919_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_low_US_Bag",1];
				_vec addBackpackCargo ["uns_m2_high_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_60mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["uns_M1_81mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["Uns_US_searchlight_Bag",1];
				_vec addBackpackCargo ["uns_pk_low_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_PK_High_NVA_Bag",1];
				_vec addBackpackCargo ["uns_MG42_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_Dshk_Low_NVA_Bag",1];
				_vec addBackpackCargo ["uns_Type36_NVA_Bag",1];
			};
			 case 5:
			{
//PACKS
				_vec addBackpackCargo ["uns_M60_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M1919_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_low_US_Bag",1];
				_vec addBackpackCargo ["uns_m2_high_US_Bag",1];
				_vec addBackpackCargo ["uns_MK18_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_60mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["uns_M1_81mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["Uns_US_searchlight_Bag",1];
				_vec addBackpackCargo ["uns_pk_low_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_PK_High_NVA_Bag",1];
				_vec addBackpackCargo ["uns_MG42_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_Dshk_Low_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_Dshk_High_NVA_Bag",1];
				_vec addBackpackCargo ["uns_Type36_NVA_Bag",1];
			};
			 case 6:
			{
//PACKS
				_vec addBackpackCargo ["uns_M60_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M1919_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_low_US_Bag",1];
				_vec addBackpackCargo ["uns_m2_high_US_Bag",1];
				_vec addBackpackCargo ["uns_MK18_low_US_Bag",1];
				_vec addBackpackCargo ["uns_M2_60mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["uns_M1_81mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["uns_M30_107mm_mortar_US_Bag",1];
				_vec addBackpackCargo ["Uns_US_searchlight_Bag",1];
				_vec addBackpackCargo ["uns_pk_low_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_PK_High_NVA_Bag",1];
				_vec addBackpackCargo ["uns_MG42_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_Dshk_Low_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_Dshk_High_NVA_Bag",1];
				_vec addBackpackCargo ["uns_Type36_NVA_Bag",1];
				_vec addBackpackCargo ["uns_SPG9_NVA_Bag",1];
				_vec addBackpackCargo ["Uns_M1941_82mm_Mortar_NVA_Bag",1];
			};
		};
	}; // end of _EGG_fillpackbox_W

//backpacks, goggles and vests
	_EGG_fillpackbox =
	{
		_rank = _this select 0;
		_vec = _this select 1;
		clearWeaponCargo _vec;
		clearMagazineCargo _vec;
		clearbackpackcargo _vec;
		clearItemCargo _vec;

		switch (_rank) do
		{
			 case 0:
			{
//PACKS
				_vec addBackpackCargo ["UNS_Alice_1",1];
				_vec addBackpackCargo ["UNS_USMC_E1",1];
				_vec addBackpackCargo ["UNS_USMC_MED",1];
				_vec addBackpackCargo ["UNS_USMC_RTO",1];
//VESTS
				_vec addItemCargo ["UNS_M1956_M1",1];
				_vec addItemCargo ["UNS_M1956_M2",1];
//goggles
				_vec addItemCargo ["G_Spectacles",2];
				_vec addItemCargo ["UNS_Scarf_OD",2];
				_vec addItemCargo ["UNS_scarf_1stCav",2];
				_vec addItemCargo ["UNS_Towel_Long",2];
			};
			 case 1:
			{
//PACKS
				_vec addBackpackCargo ["UNS_Alice_1",1];
				_vec addBackpackCargo ["UNS_Alice_2",1];
				_vec addBackpackCargo ["UNS_USMC_E1",1];
				_vec addBackpackCargo ["UNS_USMC_MED",1];
				_vec addBackpackCargo ["UNS_USMC_RTO",1];
//VESTS
				_vec addItemCargo ["UNS_M1956_M1",1];
				_vec addItemCargo ["UNS_M1956_M2",1];
				_vec addItemCargo ["UNS_M1956_M3",1];
				_vec addItemCargo ["UNS_M1956_M4",1];
//goggles
				_vec addItemCargo ["G_Spectacles",2];
				_vec addItemCargo ["UNS_Scarf_OD",2];
				_vec addItemCargo ["UNS_Towel",2];
				_vec addItemCargo ["UNS_scarf_1stCav",2];
				_vec addItemCargo ["UNS_Towel_Long",2];
			};
			 case 2:
			{
//PACKS
				_vec addBackpackCargo ["UNS_Alice_F1",1];
				_vec addBackpackCargo ["UNS_Alice_1",1];
				_vec addBackpackCargo ["UNS_Alice_2",1];
				_vec addBackpackCargo ["UNS_USMC_E1",1];
				_vec addBackpackCargo ["UNS_USMC_MED",1];
				_vec addBackpackCargo ["UNS_USMC_R1",1];
				_vec addBackpackCargo ["UNS_USMC_RTO",1];
//VESTS
				_vec addItemCargo ["UNS_M1956_A1",1];
				_vec addItemCargo ["UNS_M1956_A2",1];
				_vec addItemCargo ["UNS_M1956_M1",1];
				_vec addItemCargo ["UNS_M1956_M2",1];
				_vec addItemCargo ["UNS_M1956_M3",1];
				_vec addItemCargo ["UNS_M1956_M4",1];
				_vec addItemCargo ["UNS_M1956_M5",1];
				_vec addItemCargo ["UNS_M1956_M6",1];
//goggles
				_vec addItemCargo ["G_Spectacles",2];
				_vec addItemCargo ["G_Squares",2];
				_vec addItemCargo ["UNS_Scarf_OD",2];
				_vec addItemCargo ["UNS_Towel",2];
				_vec addItemCargo ["UNS_scarf_1stCav",2];
				_vec addItemCargo ["UNS_Towel_Long",2];
			};
			 case 3:
			{
//PACKS
				_vec addBackpackCargo ["UNS_Alice_F1",1];
				_vec addBackpackCargo ["UNS_Alice_F2",1];
				_vec addBackpackCargo ["UNS_Alice_FR",1];
				_vec addBackpackCargo ["UNS_Alice_1",1];
				_vec addBackpackCargo ["UNS_Alice_2",1];
				_vec addBackpackCargo ["UNS_Alice_F3",1];
				_vec addBackpackCargo ["UNS_ARMY_RTO",1];
				_vec addBackpackCargo ["UNS_ARMY_MED",1];
				_vec addBackpackCargo ["UNS_USMC_E1",1];
				_vec addBackpackCargo ["UNS_USMC_MED",1];
				_vec addBackpackCargo ["UNS_USMC_R1",1];
				_vec addBackpackCargo ["UNS_USMC_RTO",1];
//VESTS
				_vec addItemCargo ["UNS_M1956_A1",1];
				_vec addItemCargo ["UNS_M1956_A2",1];
				_vec addItemCargo ["UNS_M1956_A3",1];
				_vec addItemCargo ["UNS_M1956_A4",1];
				_vec addItemCargo ["UNS_M1956_M1",1];
				_vec addItemCargo ["UNS_M1956_M2",1];
				_vec addItemCargo ["UNS_M1956_M3",1];
				_vec addItemCargo ["UNS_M1956_M4",1];
				_vec addItemCargo ["UNS_M1956_M5",1];
				_vec addItemCargo ["UNS_M1956_M6",1];
				_vec addItemCargo ["UNS_M1956_M7",1];
				_vec addItemCargo ["UNS_M1956_M8",1];
				_vec addItemCargo ["UNS_M1956_M9",1];
				_vec addItemCargo ["UNS_M1956_M10",1];
				_vec addItemCargo ["UNS_M1956_M11",1];
//goggles
				_vec addItemCargo ["G_Spectacles",2];
				_vec addItemCargo ["G_Squares",2];
				_vec addItemCargo ["UNS_Scarf_OD",2];
				_vec addItemCargo ["UNS_Scarf_Red",2];
				_vec addItemCargo ["UNS_Band_H",2];
				_vec addItemCargo ["UNS_Towel",2];
				_vec addItemCargo ["UNS_Peace",2];
				_vec addItemCargo ["UNS_scarf_1stCav",2];
				_vec addItemCargo ["UNS_Towel_Long",2];
			};
			 case 4:
			{
//PACKS
				_vec addBackpackCargo ["UNS_Alice_F1",1];
				_vec addBackpackCargo ["UNS_Alice_F2",1];
				_vec addBackpackCargo ["UNS_Alice_FR",1];
				_vec addBackpackCargo ["UNS_Alice_1",1];
				_vec addBackpackCargo ["UNS_Alice_2",1];
				_vec addBackpackCargo ["UNS_Alice_F3",1];
				_vec addBackpackCargo ["UNS_Alice_F4",1];
				_vec addBackpackCargo ["UNS_Alice_F5",1];
				_vec addBackpackCargo ["UNS_ARMY_RTO",1];
				_vec addBackpackCargo ["UNS_ARMY_MED",1];
				_vec addBackpackCargo ["UNS_USMC_E1",1];
				_vec addBackpackCargo ["UNS_USMC_E2",1];
				_vec addBackpackCargo ["UNS_USMC_MED",1];
				_vec addBackpackCargo ["UNS_USMC_R1",1];
				_vec addBackpackCargo ["UNS_USMC_RTO",1];
//VESTS
				_vec addItemCargo ["UNS_M1956_A1",1];
				_vec addItemCargo ["UNS_M1956_A2",1];
				_vec addItemCargo ["UNS_M1956_A3",1];
				_vec addItemCargo ["UNS_M1956_A4",1];
				_vec addItemCargo ["UNS_M1956_A5",1];
				_vec addItemCargo ["UNS_M1956_A6",1];
				_vec addItemCargo ["UNS_M1956_M1",1];
				_vec addItemCargo ["UNS_M1956_M2",1];
				_vec addItemCargo ["UNS_M1956_M3",1];
				_vec addItemCargo ["UNS_M1956_M4",1];
				_vec addItemCargo ["UNS_M1956_M5",1];
				_vec addItemCargo ["UNS_M1956_M6",1];
				_vec addItemCargo ["UNS_M1956_M7",1];
				_vec addItemCargo ["UNS_M1956_M8",1];
				_vec addItemCargo ["UNS_M1956_M9",1];
				_vec addItemCargo ["UNS_M1956_M10",1];
				_vec addItemCargo ["UNS_M1956_M11",1];
				_vec addItemCargo ["UNS_M1956_M12",1];
				_vec addItemCargo ["UNS_M1956_M13",1];
				_vec addItemCargo ["UNS_M1956_M14",1];
				_vec addItemCargo ["UNS_M1956_S1",1];
				_vec addItemCargo ["UNS_M1956_N1",1];
//goggles
				_vec addItemCargo ["G_Spectacles",2];
				_vec addItemCargo ["G_Spectacles_Tinted",2];
				_vec addItemCargo ["G_Squares",2];
				_vec addItemCargo ["UNS_Scarf_OD",2];
				_vec addItemCargo ["UNS_Scarf_Red",2];
				_vec addItemCargo ["UNS_Scarf_Blue",2];
				_vec addItemCargo ["UNS_Band_H",2];
				_vec addItemCargo ["UNS_Band_L",2];
				_vec addItemCargo ["UNS_Towel",2];
				_vec addItemCargo ["UNS_Peace",2];
				_vec addItemCargo ["UNS_Bullets",2];
				_vec addItemCargo ["UNS_scarf_1stCav",2];
				_vec addItemCargo ["UNS_Towel_Long",2];
			};
			 case 5:
			{
//PACKS
				_vec addBackpackCargo ["UNS_Alice_F1",1];
				_vec addBackpackCargo ["UNS_Alice_F2",1];
				_vec addBackpackCargo ["UNS_Alice_FR",1];
				_vec addBackpackCargo ["UNS_Alice_1",1];
				_vec addBackpackCargo ["UNS_Alice_2",1];
				_vec addBackpackCargo ["UNS_Alice_F3",1];
				_vec addBackpackCargo ["UNS_Alice_F4",1];
				_vec addBackpackCargo ["UNS_Alice_F5",1];
				_vec addBackpackCargo ["UNS_Alice_F6",1];
				_vec addBackpackCargo ["UNS_Alice_F7",1];
				_vec addBackpackCargo ["UNS_ARMY_RTO",1];
				_vec addBackpackCargo ["UNS_ARMY_MED",1];
				_vec addBackpackCargo ["UNS_USMC_E1",1];
				_vec addBackpackCargo ["UNS_USMC_E2",1];
				_vec addBackpackCargo ["UNS_USMC_MED",1];
				_vec addBackpackCargo ["UNS_USMC_R1",1];
				_vec addBackpackCargo ["UNS_USMC_R2",1];
				_vec addBackpackCargo ["UNS_USMC_RTO",1];
//VESTS
				_vec addItemCargo ["UNS_M1956_A1",1];
				_vec addItemCargo ["UNS_M1956_A2",1];
				_vec addItemCargo ["UNS_M1956_A3",1];
				_vec addItemCargo ["UNS_M1956_A4",1];
				_vec addItemCargo ["UNS_M1956_A5",1];
				_vec addItemCargo ["UNS_M1956_A6",1];
				_vec addItemCargo ["UNS_M1956_A7",1];
				_vec addItemCargo ["UNS_M1956_A8",1];
				_vec addItemCargo ["UNS_M1956_M1",1];
				_vec addItemCargo ["UNS_M1956_M2",1];
				_vec addItemCargo ["UNS_M1956_M3",1];
				_vec addItemCargo ["UNS_M1956_M4",1];
				_vec addItemCargo ["UNS_M1956_M5",1];
				_vec addItemCargo ["UNS_M1956_M6",1];
				_vec addItemCargo ["UNS_M1956_M7",1];
				_vec addItemCargo ["UNS_M1956_M8",1];
				_vec addItemCargo ["UNS_M1956_M9",1];
				_vec addItemCargo ["UNS_M1956_M10",1];
				_vec addItemCargo ["UNS_M1956_M11",1];
				_vec addItemCargo ["UNS_M1956_M12",1];
				_vec addItemCargo ["UNS_M1956_M13",1];
				_vec addItemCargo ["UNS_M1956_M14",1];
				_vec addItemCargo ["UNS_M1956_M15",1];
				_vec addItemCargo ["UNS_M1956_M16",1];
				_vec addItemCargo ["UNS_M1956_M17",1];
				_vec addItemCargo ["UNS_M1956_S1",1];
				_vec addItemCargo ["UNS_M1956_S2",1];
				_vec addItemCargo ["UNS_M1956_N1",1];
				_vec addItemCargo ["UNS_M1956_N2",1];
	
//goggles
				_vec addItemCargo ["G_Spectacles",2];
				_vec addItemCargo ["G_Spectacles_Tinted",2];
				_vec addItemCargo ["G_Squares",2];
				_vec addItemCargo ["G_Squares_Tinted",2];
				_vec addItemCargo ["UNS_Scarf_OD",2];
				_vec addItemCargo ["UNS_Scarf_Red",2];
				_vec addItemCargo ["UNS_Scarf_Blue",2];
				_vec addItemCargo ["UNS_Band_H",2];
				_vec addItemCargo ["UNS_Band_L",2];
				_vec addItemCargo ["UNS_Towel",2];
				_vec addItemCargo ["UNS_Peace",2];
				_vec addItemCargo ["UNS_Bullets",2];
				_vec addItemCargo ["UNS_Finger",2];
				_vec addItemCargo ["UNS_scarf_1stCav",2];
				_vec addItemCargo ["UNS_Towel_Long",2];
			};
			 case 6:
			{
//PACKS
				_vec addBackpackCargo ["UNS_Alice_F1",1];
				_vec addBackpackCargo ["UNS_Alice_F2",1];
				_vec addBackpackCargo ["UNS_Alice_FR",1];
				_vec addBackpackCargo ["UNS_Alice_1",1];
				_vec addBackpackCargo ["UNS_Alice_2",1];
				_vec addBackpackCargo ["UNS_Alice_F3",1];
				_vec addBackpackCargo ["UNS_Alice_F4",1];
				_vec addBackpackCargo ["UNS_Alice_F5",1];
				_vec addBackpackCargo ["UNS_Alice_F6",1];
				_vec addBackpackCargo ["UNS_Alice_F7",1];
				_vec addBackpackCargo ["UNS_Alice_F8",1];
				_vec addBackpackCargo ["UNS_Alice_F9",1];
				_vec addBackpackCargo ["UNS_ARMY_RTO",1];
				_vec addBackpackCargo ["UNS_ARMY_MED",1];
				_vec addBackpackCargo ["UNS_USMC_E1",1];
				_vec addBackpackCargo ["UNS_USMC_E2",1];
				_vec addBackpackCargo ["UNS_USMC_MED",1];
				_vec addBackpackCargo ["UNS_USMC_R1",1];
				_vec addBackpackCargo ["UNS_USMC_R2",1];
				_vec addBackpackCargo ["UNS_USMC_RTO",1];
				_vec addBackpackCargo ["UNS_TROP_R1",1];
//VESTS
				_vec addItemCargo ["UNS_M1956_A1",1];
				_vec addItemCargo ["UNS_M1956_A2",1];
				_vec addItemCargo ["UNS_M1956_A3",1];
				_vec addItemCargo ["UNS_M1956_A4",1];
				_vec addItemCargo ["UNS_M1956_A5",1];
				_vec addItemCargo ["UNS_M1956_A6",1];
				_vec addItemCargo ["UNS_M1956_A7",1];
				_vec addItemCargo ["UNS_M1956_A8",1];
				_vec addItemCargo ["UNS_M1956_A9",1];
				_vec addItemCargo ["UNS_M1956_A10",1];
				_vec addItemCargo ["UNS_M1956_M1",1];
				_vec addItemCargo ["UNS_M1956_M2",1];
				_vec addItemCargo ["UNS_M1956_M3",1];
				_vec addItemCargo ["UNS_M1956_M4",1];
				_vec addItemCargo ["UNS_M1956_M5",1];
				_vec addItemCargo ["UNS_M1956_M6",1];
				_vec addItemCargo ["UNS_M1956_M7",1];
				_vec addItemCargo ["UNS_M1956_M8",1];
				_vec addItemCargo ["UNS_M1956_M9",1];
				_vec addItemCargo ["UNS_M1956_M10",1];
				_vec addItemCargo ["UNS_M1956_M11",1];
				_vec addItemCargo ["UNS_M1956_M12",1];
				_vec addItemCargo ["UNS_M1956_M13",1];
				_vec addItemCargo ["UNS_M1956_M14",1];
				_vec addItemCargo ["UNS_M1956_M15",1];
				_vec addItemCargo ["UNS_M1956_M16",1];
				_vec addItemCargo ["UNS_M1956_M17",1];
				_vec addItemCargo ["UNS_M1956_M18",1];
				_vec addItemCargo ["UNS_M1956_M19",1];
				_vec addItemCargo ["UNS_M1956_S1",1];
				_vec addItemCargo ["UNS_M1956_S2",1];
				_vec addItemCargo ["UNS_M1956_S3",1];
				_vec addItemCargo ["UNS_M1956_S4",1];
				_vec addItemCargo ["UNS_M1956_N1",1];
				_vec addItemCargo ["UNS_M1956_N2",1];
				_vec addItemCargo ["UNS_M1956_N3",1];
				_vec addItemCargo ["UNS_M1956_N4",1];

				_vec addItemCargo ["UNS_FLAK",1];
//goggles
				_vec addItemCargo ["G_Spectacles",2];
				_vec addItemCargo ["G_Spectacles_Tinted",2];
				_vec addItemCargo ["G_Squares",2];
				_vec addItemCargo ["G_Squares_Tinted",2];
				_vec addItemCargo ["G_Combat",2];
				_vec addItemCargo ["UNS_Scarf_OD",2];
				_vec addItemCargo ["UNS_scarf_1stCav",2];
				_vec addItemCargo ["UNS_Towel_Long",2];
				_vec addItemCargo ["UNS_Scarf_Red",2];
				_vec addItemCargo ["UNS_Scarf_Blue",2];
				_vec addItemCargo ["UNS_Band_H",2];
				_vec addItemCargo ["UNS_Band_L",2];
				_vec addItemCargo ["UNS_Towel",2];
				_vec addItemCargo ["UNS_Peace",2];
				_vec addItemCargo ["UNS_Bullets",2];
				_vec addItemCargo ["UNS_Finger",2];
				_vec addItemCargo ["UNS_Ear",2];
			};
		};
	}; // end of _EGG_fillpackbox
	
	// Pilots
	_EGG_fillammoboxC3 =
	{
		_rank = _this select 0;
		_vec = _this select 1;
		clearWeaponCargo _vec;
		clearbackpackcargo _vec;
		clearMagazineCargo _vec;
		clearItemCargo _vec;
		_vec addMagazineCargo ["UNS_EAM2Braft",5];
		_vec addMagazineCargo ["UNS_sharkchaser",5];
		_vec addMagazineCargo ["uns_BA1568",5];
		_vec addItemCargo ["ItemRadio",5];


		_vec addBackpackCargo ["UNS_BA22_Para",5];
		_vec addItemCargo ["UNS_Pilot_BDU",3];
		_vec addItemCargo ["UNS_JPilot_BDU",3];
		_vec addItemCargo ["UNS_HP_Helmet",3];
		_vec addItemCargo ["UNS_JP_Helmet",3];
		_vec addItemCargo ["UNS_JP_Helmet2",3];
		_vec addItemCargo ["UNS_P_H",5];
		_vec addItemCargo ["UNS_M1956_P1",5];
		_vec addItemCargo ["UNS_JP_Vest",5];
		_vec addItemCargo ["UNS_TC_1",5];
		_vec addItemCargo ["UNS_TC_2",5];
		_vec addItemCargo ["UNS_M1956_T1",5];
	}; // end of _EGG_fillammoboxC3 - Pilots

	// Divers
	_EGG_fillammoboxC4 =
	{
		_rank = _this select 0;
		_vec = _this select 1;
		clearWeaponCargo _vec;
		clearMagazineCargo _vec;
		clearbackpackcargo _vec;
		clearItemCargo _vec;
//		_vec AddWeaponCargo ["uns_speargun",2];
//		_vec addMagazineCargo ["uns_spear_mag",20];
		_vec addMagazineCargo ["uns_v40gren",10];
		_vec addMagazineCargo ["uns_m34gren",10];
		_vec addMagazineCargo ["uns_m14gren",10];
		_vec addMagazineCargo ["uns_m308gren",10];
		_vec addMagazineCargo ["uns_mk3a2gren",10];
		_vec addMagazineCargo ["uns_mk40gren",10];
		_vec addMagazineCargo ["uns_M118_mag_remote",10];
		_vec addMagazineCargo ["DemoCharge_Remote_Mag",10];
		_vec addMagazineCargo ["SatchelCharge_Remote_Mag",10];

		switch (_rank) do
		{
			 case 0:
			{
				_vec addItemCargo ["FirstAidKit",2];
				_vec addItemCargo ["U_B_Wetsuit",1];
				_vec addItemCargo ["V_RebreatherB",1];
				_vec addItemCargo ["G_Diving",1];
			};
			 case 1:
			{
				_vec addItemCargo ["FirstAidKit",2];
				_vec addItemCargo ["Medikit",1];
				_vec addItemCargo ["ToolKit",1];
				_vec addItemCargo ["U_B_Wetsuit",1];
				_vec addItemCargo ["V_RebreatherB",1];
				_vec addItemCargo ["G_Diving",1];
			};
			 case 2:
			{
				_vec addItemCargo ["FirstAidKit",3];
				_vec addItemCargo ["Medikit",1];
				_vec addItemCargo ["ToolKit",1];
				_vec addItemCargo ["U_B_Wetsuit",1];
				_vec addItemCargo ["V_RebreatherB",1];
				_vec addItemCargo ["G_Diving",1];
			};
			 case 3:
			{
				_vec addItemCargo ["FirstAidKit",4];
				_vec addItemCargo ["Medikit",1];
				_vec addItemCargo ["ToolKit",1];
				_vec addItemCargo ["U_B_Wetsuit",1];
				_vec addItemCargo ["V_RebreatherB",1];
				_vec addItemCargo ["G_Diving",1];
			};
			 case 4:
			{
				_vec addItemCargo ["FirstAidKit",6];
				_vec addItemCargo ["Medikit",2];
				_vec addItemCargo ["ToolKit",2];
				_vec addItemCargo ["U_B_Wetsuit",2];
				_vec addItemCargo ["V_RebreatherB",2];
				_vec addItemCargo ["G_Diving",1];
			};
			 case 5:
			{
				_vec addItemCargo ["FirstAidKit",8];
				_vec addItemCargo ["Medikit",2];
				_vec addItemCargo ["ToolKit",2];
				_vec addItemCargo ["U_B_Wetsuit",2];
				_vec addItemCargo ["V_RebreatherB",2];
				_vec addItemCargo ["V_RebreatherIR",2];
				_vec addItemCargo ["G_Diving",1];
			};
			 case 6:
			{
				_vec addItemCargo ["FirstAidKit",1];
				_vec addItemCargo ["Medikit",2];
				_vec addItemCargo ["ToolKit",2];
				_vec addItemCargo ["U_B_Wetsuit",2];
				_vec addItemCargo ["V_RebreatherB",2];
				_vec addItemCargo ["V_RebreatherIR",2];
				_vec addItemCargo ["G_Diving",1];
			};
		};
	}; // _EGG_fillammoboxC4 - Divers
//EGG_EVO_crates = ["uns_US_armoury","uns_PAVN_armoury","uns_AmmoBoxUS_USMC","uns_AmmoBoxCIDG","uns_US_Ordnance","uns_engineerbox_US","uns_resupply_crate_US","uns_AmmoBoxUS_SF"];

//US weapons
	if (!isNil "ammobox1") then {deletevehicle ammobox1;}; ammobox1 = (EGG_EVO_crates Select 0) createVehicleLocal getmarkerpos "ammob1";ammobox1 setpos getmarkerpos "ammob1";[_playerrank,ammobox1] call _EGG_fillammoboxW;
//uniforms, goggles and helmets
	if (!isNil "ammobox2") then {deletevehicle ammobox2;}; ammobox2 = (EGG_EVO_crates Select 2) createVehicleLocal getmarkerpos "ammob2";ammobox2 setpos getmarkerpos "ammob2";[_playerrank,ammobox2] call _EGG_fillammoboxG1;
//NVA weapons
	if (!isNil "ammobox3") then {deletevehicle ammobox3;}; ammobox3 = (EGG_EVO_crates Select 1) createVehicleLocal getmarkerpos "ammob3";ammobox3 setpos getmarkerpos "ammob3";[_playerrank,ammobox3] call _EGG_fillammoboxE;
//backpacks
	if (!isNil "ammobox5") then {deletevehicle ammobox5;}; ammobox5 = (EGG_EVO_crates Select 7) createVehicleLocal getmarkerpos "ammob5";ammobox5 setpos getmarkerpos "ammob5";[_playerrank,ammobox5] call _EGG_fillpackbox;
//pilots
	if (!isNil "ammobox4") then {deletevehicle ammobox4;}; ammobox4 = (EGG_EVO_crates Select 3) createVehicleLocal getmarkerpos "ammob4";ammobox4 setpos getmarkerpos "ammob4";[_playerrank,ammobox4] call _EGG_fillammoboxC3;
//divers
	if (!isNil "ammobox6") then {deletevehicle ammobox6;}; ammobox6 = (EGG_EVO_crates Select 6) createVehicleLocal getmarkerpos "ammob6";ammobox6 setpos getmarkerpos "ammob6";[_playerrank,ammobox6] call _EGG_fillammoboxC4;
//weapon bags
	if (!isNil "ammobox7") then {deletevehicle ammobox7;}; ammobox7 = (EGG_EVO_crates Select 6) createVehicleLocal getmarkerpos "ammob7";ammobox7 setpos getmarkerpos "ammob7";[_playerrank,ammobox7] call _EGG_fillpackbox_W;
	
// Add save/load loadout actions to all ammo boxes if EWDB is OFF (public use)
	if (EWDB_on <1) then
	{
		sleep 1.5;
		{_x addAction [("<t color='#855009'>" + "#Save kit" + "</t>"), "actions\fnc_save_loadout.sqf",0,0, false, true,"test2"];
} forEach nearestObjects [getpos player,["ReammoBox","ReammoBox_F"],10000];
	};	
};

EGG_EVO_Mrew =
{
	_bscore = 0;
	_unit = player;
	if (score _unit <= EGG_EVO_rank1) then{_bscore = 2};
	if (score _unit > EGG_EVO_rank1) then{_bscore = 4};
	if (score _unit > EGG_EVO_rank2) then{_bscore = 6};
	if (score _unit > EGG_EVO_rank3) then{_bscore = 8};
	if (score _unit > EGG_EVO_rank4) then{_bscore = 10};
	if (score _unit > EGG_EVO_rank5) then {_bscore = 12};
	if (score _unit >= EGG_EVO_rank6) then{_bscore = 14};
	EGG_EVO_lunit = player;
	EGG_EVO_lrew  = _bscore;
	publicVariable "EGG_EVO_lrew";
	publicVariable "EGG_EVO_lunit";
	_txtcommon = localize "STR_M04t0_5";//Points
	_txtpasshead = localize "STR_M04t77";//Heal Bonus
	_txtpassbody = format["+%1 %2",_bscore,_txtcommon];
	["#00FF00",_txtpasshead,_txtpassbody] call EGG_EVO_Message;
};

EGG_EVO_Erew =
{
	_zone = _this select 0;
	_unit = player;
	_bscore = 0;
	if (_zone == EGG_EVO_EngZone) then
	{
		if (score _unit <= EGG_EVO_rank1) then {_bscore = 2;};
		if (score _unit > EGG_EVO_rank1) then {_bscore = 4};
		if (score _unit > EGG_EVO_rank2) then {_bscore = 6};
		if (score _unit > EGG_EVO_rank3) then {_bscore = 8};
		if (score _unit > EGG_EVO_rank4) then {_bscore = 10};
		if (score _unit > EGG_EVO_rank5) then {_bscore = 12};
		if (score _unit >= EGG_EVO_rank6) then {_bscore = 14};
		EGG_EVO_lunit = player;
		EGG_EVO_lrew  = _bscore;
		publicVariable "EGG_EVO_lrew";
		publicVariable "EGG_EVO_lunit";
		_txtcommon = localize "STR_M04t0_5";//Points
		_txtpasshead = localize "STR_M04t75";//Repair Bonus
		_txtpassbody = format["+%1 %2",_bscore,_txtcommon];
		["#00FF00",_txtpasshead,_txtpassbody] call EGG_EVO_Message;
	};
};

EGG_EVO_AssignTasks =  // Assigns common main city objectives
{
	_MissionBriefingHUD = "";
	_MissionBriefingShort = "";
	_MissionBriefingLong = "";
	if(isNull EGG_EVO_Objective0) then
	{
		_MissionBriefingLong = localize "STR_M04t57";//Take a break for a while.
		_MissionBriefingHUD = "";
		_MissionBriefingShort = localize "STR_M04t56";//Unassign
		EGG_EVO_Objective0 = player createSimpleTask ["obj0"];
		EGG_EVO_Objective0 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective0 settaskstate "Created";
	};
	if(isNull EGG_EVO_Objective1) then
	{
		_MissionBriefingHUD = localize "STR_M04t58";//ASSAULT
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];// Command has issued an order to launch a full scale assault on %1. The primary objective is to neutralize all enemy in the area. Secondary objectives are to disable their radio tower and capture any high ranking officers you find in the town.
		EGG_EVO_Objective1 = player createSimpleTask ["obj1"];
		EGG_EVO_Objective1 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective1 setSimpleTaskDestination GetMarkerPos "mobj1";
		EGG_EVO_Objective1 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective1};
	};
	if((EGG_EVO_MissionProgress > 0) and (isNull EGG_EVO_Objective2)) then
	{
		EGG_EVO_Objective1 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective2 = player createSimpleTask ["obj2"];
		EGG_EVO_Objective2 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective2 setSimpleTaskDestination GetMarkerPos "mobj2";
		EGG_EVO_Objective2 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective2};
	};
	if((EGG_EVO_MissionProgress > 1) and (isNull EGG_EVO_Objective3)) then
	{
		EGG_EVO_Objective2 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective3 = player createSimpleTask ["obj3"];
		EGG_EVO_Objective3 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective3 setSimpleTaskDestination GetMarkerPos "mobj3";
		EGG_EVO_Objective3 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective3};
	};
	if((EGG_EVO_MissionProgress > 2) and (isNull EGG_EVO_Objective4)) then
	{
		EGG_EVO_Objective3 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective4 = player createSimpleTask ["obj4"];
		EGG_EVO_Objective4 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective4 setSimpleTaskDestination GetMarkerPos "mobj4";
		EGG_EVO_Objective4 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective4};
	};
	if((EGG_EVO_MissionProgress > 3) and (isNull EGG_EVO_Objective5)) then
	{
		EGG_EVO_Objective4 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective5 = player createSimpleTask ["obj5"];
		EGG_EVO_Objective5 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective5 setSimpleTaskDestination GetMarkerPos "mobj5";
		EGG_EVO_Objective5 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective5};
	};
	if((EGG_EVO_MissionProgress > 4) and (isNull EGG_EVO_Objective6)) then
	{
		EGG_EVO_Objective5 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective6 = player createSimpleTask ["obj6"];
		EGG_EVO_Objective6 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective6 setSimpleTaskDestination GetMarkerPos "mobj6";
		EGG_EVO_Objective6 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective6};
	};
	if((EGG_EVO_MissionProgress > 5) and (isNull EGG_EVO_Objective7)) then
	{
		EGG_EVO_Objective6 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective7 = player createSimpleTask ["obj7"];
		EGG_EVO_Objective7 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective7 setSimpleTaskDestination GetMarkerPos "mobj7";
		EGG_EVO_Objective7 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective7};
	};
	if((EGG_EVO_MissionProgress > 6) and (isNull EGG_EVO_Objective8)) then
	{
		EGG_EVO_Objective7 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective8 = player createSimpleTask ["obj8"];
		EGG_EVO_Objective8 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective8 setSimpleTaskDestination GetMarkerPos "mobj8";
		EGG_EVO_Objective8 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective8};
	};
	if((EGG_EVO_MissionProgress > 7) and (isNull EGG_EVO_Objective9)) then
	{
		EGG_EVO_Objective8 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective9 = player createSimpleTask ["obj9"];
		EGG_EVO_Objective9 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective9 setSimpleTaskDestination GetMarkerPos "mobj9";
		EGG_EVO_Objective9 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective9};
	};
	if((EGG_EVO_MissionProgress > 8) and (isNull EGG_EVO_Objective10)) then
	{
		EGG_EVO_Objective9 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective10 = player createSimpleTask ["obj10"];
		EGG_EVO_Objective10 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective10 setSimpleTaskDestination GetMarkerPos "mobj10";
		EGG_EVO_Objective10 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective10};
	};
	if((EGG_EVO_MissionProgress > 9) and (isNull EGG_EVO_Objective11)) then
	{
		EGG_EVO_Objective10 settaskstate "Succeeded";
		_MissionBriefingShort = (EGG_EVO_Townnames select EGG_EVO_MissionProgress);
		_MissionBriefingLong = format[localize "STR_M04t59",_MissionBriefingShort];
		EGG_EVO_Objective11 = player createSimpleTask ["obj11"];
		EGG_EVO_Objective11 setSimpleTaskDescription [_MissionBriefingLong,_MissionBriefingShort,_MissionBriefingHUD];
		EGG_EVO_Objective11 setSimpleTaskDestination GetMarkerPos "mobj11";
		EGG_EVO_Objective11 settaskstate "Created";
		if(not EGG_EVO_Onmission) then {player setCurrentTask EGG_EVO_Objective11};
	};
	if(EGG_EVO_MissionProgress > 10) then
	{
		EGG_EVO_Objective11 settaskstate "Succeeded";
	};

};

EGG_EVO_Message = // Most hint messages are sent here for a common display and record to log
{
	_headcolor = _this select 0;
	_head = _this select 1;
	_body = _this select 2;
	_plaintext = format["%1: %2",_head,_body];
	_parsedtext = parseText format["<t color='%1'>%2</t><br/><br/>%3",_headcolor,_head,_body];
	_msg = [_parsedtext];
	_txt = composeText _msg;
	hint _txt;
	_record = player createDiaryRecord ["diary", [localize "STR_M04t78", _plaintext]];//"Message Log"
};

// Displays required rank when player is ejected
EGG_EVO_RankReq = 
{
	_player = _this select 0;
	_name = name vehicle _player;
	_rank = rank _player;
	_reqrank = _this select 1;
	_nrank = "";

	switch (_reqrank) do
	{
	    case EGG_EVO_rank1:
	    {
			_nrank = "CORPORAL";
	    };
	    case EGG_EVO_rank2:
	    {
			_nrank = "SERGEANT";
	    };
	    case EGG_EVO_rank3:
	    {
			_nrank = "LIEUTENANT";
	    };
	    case  EGG_EVO_rank4:
	    {
			_nrank = "CAPTAIN";
	    };
	    case  EGG_EVO_rank5:
	    {
			_nrank = "MAJOR";
	    };
	    case  EGG_EVO_rank6:
	    {
			_nrank = "COLONEL";
	    };
	};

	_txtpasshead = localize "STR_M04t79";//Higher Rank Required
	_txtreq = localize "STR_M04t80";//Rank Required
	_textcur = localize "STR_M04t81";//Current Rank
	_txtpassbody = format["%1 : %2<br/>%3 : %4",_textcur,_rank,_txtreq,_nrank];
	["#FF0000",_txtpasshead,_txtpassbody] call EGG_EVO_Message;
};
true