Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // INDEPENDENT
- params ["_unit"];
- // _unit = _this select 0;
- // Интендант
- [_unit, _unit] call ace_common_fnc_claim;
- _unit allowDamage false;
- // [_unit] call grad_moneymenu_fnc_setStorage;
- // independentShop for future Use
- [_unit,"russianShop",lootBoxGUER,aHelipadGUER,localize "STR_TAG_militaryShop",localize "STR_TAG_militaryShop",
- // Condition
- {
- side player == independent
- }
- ] call grad_lbm_fnc_addInteraction;
- _saveProgress = ["SaveProgress",localize "STR_TAG_saveProgress","\a3\Ui_f\data\GUI\Rsc\RscDisplayArcadeMap\icon_saveas_ca.paa",{[true, 30, gradTriggerGUER] call grad_persistence_fnc_saveMission},{side player == independent},{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
- [_unit, 0, ["ACE_MainActions"], _saveProgress] call ace_interact_menu_fnc_addActionToObject;
- _healPlayer = ["HealPlayer",localize "STR_TAG_medicalAssistance","\a3\ui_f\data\igui\cfg\simpletasks\types\Heal_ca.paa",{
- player playAction "Medic";
- [player] call ace_medical_treatment_fnc_fullHealLocal;
- },{
- side player == independent
- },{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
- [_unit, 0, ["ACE_MainActions"], _healPlayer] call ace_interact_menu_fnc_addActionToObject;
- _deployToMHQ = ["MHQDeploy",localize "STR_TAG_deployToMHQ","\a3\ui_f\data\igui\cfg\simpletasks\types\car_ca.paa",{
- [teleportItemGUER, player] execVM "scripts\fn_teleportToMHQ.sqf";
- },{
- side player == independent
- },{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
- [_unit, 0, ["ACE_MainActions"], _deployToMHQ] call ace_interact_menu_fnc_addActionToObject;
- /*
- // NAPA
- _giveRecruitEquipment = ["RecruitEquipment","Получить базовую экипировку","\a3\ui_f\data\igui\cfg\simpletasks\types\rearm_ca.paa",{
- _uniformsArray = ["UK3CB_NAP_B_U_CombatUniform_FLK", "UK3CB_NAP_B_U_CombatUniform_WDL", "UK3CB_NAP_B_U_Officer_Uniform_FLK_BLK", "UK3CB_NAP_B_U_Officer_Uniform_FLK_GRN", "UK3CB_NAP_B_U_Officer_Uniform_GRN_BLK", "UK3CB_NAP_B_U_Officer_Uniform_GRN", "UK3CB_NAP_B_U_Officer_Uniform_WDL_BLK", "UK3CB_NAP_B_U_Officer_Uniform_WDL_GRN"];
- _backpackArray = ["UK3CB_B_Invisible"];
- _headgearArray = ["rhsgref_ssh68_vsr", "rhsgref_ssh68_ttsko_dark", "rhsgref_ssh68_ttsko_digi"];
- _vestsArray = ["UK3CB_MD99_VEST_Net_Rifleman_KHK", "UK3CB_MD99_VEST_Net_Rifleman_Radio_KHK", "UK3CB_MD99_VEST_Rifleman_KHK", "UK3CB_MD99_VEST_Rifleman_Radio_KHK", "UK3CB_MD99_VEST_Net_Rifleman_OLI", "UK3CB_MD99_VEST_Net_Rifleman_Radio_OLI", "UK3CB_MD99_VEST_Rifleman_OLI", "UK3CB_MD99_VEST_Rifleman_Radio_OLI"];
- _weaponsArray = ["rhs_weap_ak74", "rhs_weap_aks74"];
- _radioItem = "TFAR_anprc148jem";
- _randomUniform = selectRandom _uniformsArray;
- _randomBackpack = selectRandom _backpackArray;
- _randomHeadgear = selectRandom _headgearArray;
- _randomVest = selectRandom _vestsArray;
- _randomWeapon = selectRandom _weaponsArray;
- _weaponMagazines = getArray (configFile >> "CfgWeapons" >> _randomWeapon >> "magazines");
- _weaponAmmo = _weaponMagazines select 0;
- _defaultPreset = [[_randomWeapon,"rhs_acc_dtk1983","","",[_weaponAmmo,30],[],""],["","","","","",[],""],[],[_randomUniform,[["ACE_EarPlugs",1]]],[_randomVest,[["rhs_mag_f1",1,1],["rhs_mag_rdg2_white",3,1],[_weaponAmmo,20,35]]],[_randomBackpack,[["ACE_splint",4],["ACE_bloodIV",5],["ACE_bloodIV_250",5],["ACE_bloodIV_500",5],["ACE_EntrenchingTool",1],["ACE_morphine",10],["ACE_tourniquet",8],["ACE_fieldDressing",15],["ACE_epinephrine",5],["ToolKit",1],["ACE_DefusalKit",1],["ACE_packingBandage",15],["ACE_elasticBandage",15],["ACE_surgicalKit",1]]],_randomHeadgear,"",["Binocular","","","",[],[],""],["ItemMap","ItemGPS",_radioItem,"ItemCompass","TFAR_microdagr",""]];
- player setUnitLoadout _defaultPreset;
- },{side player == independent},{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
- [_unit, 0, ["ACE_MainActions"], _giveRecruitEquipment] call ace_interact_menu_fnc_addActionToObject;
- */
- // PMC
- _giveRecruitEquipment = ["RecruitEquipment","Получить базовую экипировку","\a3\ui_f\data\igui\cfg\simpletasks\types\rearm_ca.paa",{
- _uniformsArray = ["UK3CB_LNM_B_U_CombatSmock_25", "UK3CB_LNM_B_U_CombatSmock_26", "UK3CB_LNM_B_U_CombatSmock_19", "UK3CB_LNM_B_U_CombatSmock_30", "UK3CB_LNM_B_U_CombatSmock_31", "UK3CB_LNM_B_U_CombatSmock_20", "UK3CB_LNM_B_U_CombatSmock_35", "UK3CB_LNM_B_U_CombatSmock_36", "UK3CB_LNM_B_U_CombatSmock_21", "UK3CB_LSM_B_U_CombatSmock_31"];
- _backpackArray = ["UK3CB_B_Invisible"];
- _headgearArray = ["UK3CB_H_Bandanna_WDL_01", "UK3CB_H_Bandanna_WDL_02", "UK3CB_H_Bandanna_WDL_03", "UK3CB_H_BoonieHat_WDL_01", "UK3CB_LNM_B_H_BoonieHat_WDL_01", "UK3CB_H_BoonieHat_WDL_02", "UK3CB_LNM_B_H_BoonieHat_WDL_02", "UK3CB_H_BoonieHat_WDL_03", "UK3CB_LNM_B_H_BoonieHat_WDL_03", "UK3CB_LSM_B_H_BoonieHat_WDL", "UK3CB_CW_US_B_LATE_H_BoonieHat_WDL_01", "UK3CB_CW_US_B_LATE_H_BoonieHat_WDL_02", "UK3CB_ANA_B_H_BoonieHat_WDL", "UK3CB_TKA_B_H_BoonieHat_WDL", "UK3CB_H_Cap_WDL_01", "UK3CB_H_Cap_WDL_02", "UK3CB_H_Cap_WDL_03", "UK3CB_H_MilCap_WDL_01", "UK3CB_H_MilCap_WDL_02", "UK3CB_H_MilCap_WDL_03", "UK3CB_ANA_B_H_Patrolcap_wdl", "UK3CB_TKA_B_H_Patrolcap_WDL", "UK3CB_CW_US_B_LATE_H_Patrol_Cap_WDL_01", "rhs_fieldcap_m88_woodland", "rhs_fieldcap_m88_woodland_back", "rhssaf_booniehat_woodland"];
- _vestsArray = ["UK3CB_V_Chestrig_WDL_02", "UK3CB_V_Chestrig_WDL_01"];
- _weaponsArray = ["rhs_weap_ak104", "rhs_weap_ak105"];
- _radioItem = "TFAR_anprc148jem";
- _randomUniform = selectRandom _uniformsArray;
- _randomBackpack = selectRandom _backpackArray;
- _randomHeadgear = selectRandom _headgearArray;
- _randomVest = selectRandom _vestsArray;
- _randomWeapon = selectRandom _weaponsArray;
- _weaponMagazines = getArray (configFile >> "CfgWeapons" >> _randomWeapon >> "magazines");
- _weaponAmmo = _weaponMagazines select 0;
- _defaultPreset = [[_randomWeapon,"rhs_acc_ak5","","",[_weaponAmmo,30],[],""],["","","","","",[],""],[],[_randomUniform,[["ACE_EarPlugs",1]]],[_randomVest,[["rhs_mag_f1",1,1],["rhs_mag_rdg2_white",3,1],[_weaponAmmo,20,35]]],[_randomBackpack,[["ACE_splint",4],["ACE_bloodIV",5],["ACE_bloodIV_250",5],["ACE_bloodIV_500",5],["ACE_EntrenchingTool",1],["ACE_morphine",10],["ACE_tourniquet",8],["ACE_fieldDressing",15],["ACE_epinephrine",5],["ToolKit",1],["ACE_DefusalKit",1],["ACE_packingBandage",15],["ACE_elasticBandage",15],["ACE_surgicalKit",1]]],_randomHeadgear,"",["Binocular","","","",[],[],""],["ItemMap","ItemGPS",_radioItem,"ItemCompass","TFAR_microdagr",""]];
- player setUnitLoadout _defaultPreset;
- },{side player == independent},{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
- [_unit, 0, ["ACE_MainActions"], _giveRecruitEquipment] call ace_interact_menu_fnc_addActionToObject;
- _giveCivilianEquipment = ["CivilianEquipment","Получить гражданскую одежду","\a3\ui_f\data\igui\cfg\simpletasks\types\Container_ca.paa",{
- _uniformsArray = ["UK3CB_CHC_C_U_HIKER_03", "UK3CB_CHC_C_U_HIKER_04", "UK3CB_CHC_C_U_HIKER_02", "UK3CB_CHC_C_U_HIKER_01", "UK3CB_CHC_C_U_CIT_05", "UK3CB_CHC_C_U_CIT_01", "UK3CB_CHC_C_U_CIT_04", "UK3CB_CHC_C_U_CIT_02", "UK3CB_CHC_C_U_CIT_03", "UK3CB_CHC_C_U_ACTIVIST_03", "UK3CB_CHC_C_U_ACTIVIST_01", "UK3CB_CHC_C_U_ACTIVIST_04", "UK3CB_CHC_C_U_ACTIVIST_02", "UK3CB_CHC_C_U_CAN_01", "UK3CB_CHC_C_U_COACH_04", "UK3CB_CHC_C_U_COACH_01", "UK3CB_CHC_C_U_COACH_03", "UK3CB_CHC_C_U_COACH_05", "UK3CB_CHC_C_U_COACH_02", "UK3CB_CHC_C_U_WORK_03", "UK3CB_CHC_C_U_WORK_04", "UK3CB_NAP_B_U_WORK_01", "UK3CB_CHC_C_U_WORK_02", "UK3CB_CHC_C_U_WORK_01", "UK3CB_CHC_C_U_PROF_04", "UK3CB_CHC_C_U_PROF_03", "UK3CB_CHC_C_U_PROF_01", "UK3CB_CHC_C_U_PROF_02", "UK3CB_ADC_C_U_Pilot_02", "UK3CB_ADC_C_Hunter_U_07", "UK3CB_ADC_C_Hunter_U_09", "UK3CB_ADC_C_Hunter_U_08", "UK3CB_ADC_C_Hunter_U_06", "UK3CB_CHC_C_U_Overall_01", "UK3CB_CHC_C_U_Overall_02", "UK3CB_CHC_C_U_Overall_05", "UK3CB_CHC_C_U_Overall_04", "UK3CB_CHC_C_U_Overall_03", "UK3CB_CHC_C_U_Pilot_03", "UK3CB_CHC_C_U_Pilot_01", "UK3CB_CHC_C_U_Pilot_02", "UK3CB_CHC_C_U_VILL_01", "UK3CB_CHC_C_U_VILL_03", "UK3CB_CHC_C_U_VILL_04", "UK3CB_CHC_C_U_VILL_02", "UK3CB_CHC_C_U_WOOD_01", "UK3CB_CHC_C_U_WOOD_02", "UK3CB_ADC_C_Shorts_U_02", "UK3CB_ADC_C_Shorts_U_03", "UK3CB_ADC_C_Shorts_U_06", "UK3CB_ADC_C_Shorts_U_04", "UK3CB_ADC_C_Shorts_U_01", "UK3CB_ADC_C_Shorts_U_05"];
- _headgearsArray = ["H_Cap_tan", "H_Cap_red", "H_Cap_surfer", "H_Cap_blu", "H_StrawHat", "H_StrawHat_dark", "UK3CB_H_Woolhat_BLK", "UK3CB_H_Beanie_02_BLK", "UK3CB_H_Woolhat_BLU", "UK3CB_H_Beanie_02_BRN", "UK3CB_H_Woolhat_CBR", "UK3CB_H_Woolhat_GRN", "UK3CB_H_Beanie_02_GRY", "UK3CB_H_Woolhat_KHK", "UK3CB_CHC_C_H_Can_Cap", "UK3CB_H_Profiteer_Cap_01", "UK3CB_H_Safari_Hat_Brown", "UK3CB_H_Ushanka_Cap_01", "UK3CB_H_Villager_Cap_01", "UK3CB_H_WideBrim_Hat", "UK3CB_H_Worker_Cap_01", "rhs_ushanka"];
- _randomUniform = selectRandom _uniformsArray;
- _randomHeadgear = selectRandom _headgearsArray;
- _radioItem = "TFAR_anprc148jem";
- _civillianPreset = [[],[],[],[_randomUniform,[]],[],[],_randomHeadgear,"",[],["ItemMap","ItemGPS",_radioItem,"ItemCompass","ItemWatch",""]];
- player setUnitLoadout _civillianPreset;
- },{
- side player == independent
- },{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
- [_unit, 0, ["ACE_MainActions"], _giveCivilianEquipment] call ace_interact_menu_fnc_addActionToObject;
- _uidArrayINDEPENDENT = [
- [
- "76561198040777688",
- "Демьян Терентьев",
- [["rhs_weap_ak103_zenitco01_b33_grip1","rhs_acc_pbs1","rhs_acc_2dpZenit_ris","rhsusf_acc_ACOG_RMR",["rhs_30Rnd_762x39mm_89",30],[],"rhsusf_acc_grip1"],[],[],["UK3CB_CW_US_B_LATE_U_CombatUniform_Ghillie_01_WDL",[["ACE_EarPlugs",1],["ACE_epinephrine",5],["ACE_morphine",5],["ACE_elasticBandage",15],["ACE_tourniquet",4],["ACE_splint",4]]],["rhssaf_vest_md98_woodland",[["rhs_mag_f1",1,1],["rhs_30Rnd_762x39mm_89",1,30]]],["UK3CB_B_Invisible",[["ACE_bloodIV_500",5],["rhs_30Rnd_762x39mm_89",14,30]]],"rhs_6b48","UK3CB_G_Bandanna_sport_flora_alt",["rhs_pdu4","","","",[],[],""],["ItemMap","ItemGPS","TFAR_anprc148jem","ItemCompass","TFAR_microdagr",""]]
- ],
- [
- "76561198954068907",
- "Иван Дубов",
- [["rhs_weap_ak74m_zenitco01_grip1","rhs_acc_dtk4short","acc_pointer_IR","rhs_acc_ekp1",["rhs_30Rnd_545x39_7N22_AK",30],[],"rhs_acc_grip_ffg2"],[],["rhs_weap_pya","","","",["rhs_mag_9x19_17",17],[],""],["UK3CB_LSM_B_U_CombatSmock_33",[["rhs_mag_9x19_7n31_17",3,17],["rhs_grenade_khattabka_vog25_mag",3,1]]],["rhs_6b13_Flora_crewofficer",[["ACE_personalAidKit",1],["ACE_tourniquet",4],["rhs_30Rnd_545x39_7N22_AK",2,30],["rhs_grenade_khattabka_vog25_mag",1,1]]],["UK3CB_B_Invisible",[["ACE_bloodIV",5],["ACE_fieldDressing",20],["ACE_surgicalKit",1],["ACE_splint",4],["ToolKit",1],["ACE_EntrenchingTool",1],["ACE_Clacker",1],["UK3CB_ANA_B_H_Beret_GRN",1],["rhs_ec400_mag",6,1]]],"UK3CB_ANA_B_H_6b27m_WDL","UK3CB_G_Balaclava2_BLK",["rhs_pdu4","","","",[],[],""],["ItemMap","ItemGPS","","ItemCompass","ItemWatch",""]]
- ],
- [
- "76561198810670428",
- "Николай Язвинский",
- [["rhs_weap_ak104_zenitco01_b33_grip1","rhs_acc_dtk4screws","","rhsusf_acc_ACOG_USMC",["rhs_30Rnd_762x39mm_polymer",30],[],"rhsusf_acc_grip1"],["rhs_weap_rpg26","","","",[],[],""],["rhsusf_weap_m1911a1","","","",["rhsusf_mag_7x45acp_MHP",7],[],""],["UK3CB_LSM_B_U_CombatSmock_31",[["ACE_elasticBandage",20],["ACE_splint",4],["ACE_morphine",5],["ACE_epinephrine",5]]],["rhs_6b13_Flora_6sh92",[["30Rnd_762x39_AK12_Mag_F",10,30]]],["UK3CB_LSM_B_B_Sidor_WDL_RIF",[["ACE_SpraypaintBlack",1],["ACE_microDAGR",1],["ACE_Kestrel4500",1],["ACE_Flashlight_MX991",1],["ACE_RangeCard",1],["ACE_Cellphone",1],["ACE_EntrenchingTool",1],["rhs_mag_f1",5,1],["rhs_mag_rdg2_white",5,1],["rhsusf_mag_7x45acp_MHP",5,7],[["rhs_weap_rpg26","","","",[],[],""],2]]],"UK3CB_ANA_B_H_6b27m_WDL","UK3CB_G_Balaclava",["rhs_pdu4","","","",[],[],""],["ItemMap","ItemGPS","TFAR_anprc148jem","ItemCompass","TFAR_microdagr","rhsusf_ANPVS_14"]]
- ],
- [
- "76561199028171073",
- "Аблахат Кенесбек",
- [["rhs_weap_pkp","","","rhs_acc_ekp8_02",["rhs_100Rnd_762x54mmR",99],[],""],["rhs_weap_rpg26","","","",[],[],""],["rhsusf_weap_MP7A2_folded","","","",["rhsusf_mag_40Rnd_46x30_FMJ",40],[],""],["UK3CB_LSM_B_U_CombatSmock_31",[["ACE_elasticBandage",20],["ACE_splint",4],["ACE_morphine",5],["ACE_epinephrine",5],["ACE_EarPlugs",1]]],["rhs_6b13_Flora_6sh92",[]],["UK3CB_LSM_B_B_Sidor_WDL_RIF",[["ACE_SpraypaintBlack",1],["ACE_Kestrel4500",1],["ACE_Flashlight_MX991",1],["ACE_RangeCard",1],["ACE_Cellphone",1],["ACE_EntrenchingTool",1],["ACE_microDAGR",1],["rhs_mag_f1",5,1],["rhs_mag_rdg2_white",5,1],["150Rnd_762x54_Box",3,150],["rhsusf_mag_40Rnd_46x30_AP",2,40]]],"UK3CB_ANA_B_H_6b27m_WDL","UK3CB_G_Bandanna_aviator_green_check",["rhs_pdu4","","","",[],[],""],["ItemMap","ItemGPS","TFAR_anprc148jem","ItemCompass","TFAR_microdagr","rhsusf_ANPVS_14"]]
- ]
- ];
- _playerUID = getPlayerUID player;
- {
- _uid = _x select 0;
- _name = _x select 1;
- _set = _x select 2;
- if (_playerUID != _uid) exitWith {
- // systemChat format ["ты не %1", _name];
- };
- _givePersonalEquipment = ["_uid", format ["Получить личную экипировку: %1", _name],"\a3\ui_f\data\igui\cfg\simpletasks\types\rearm_ca.paa",
- // Action
- {
- params ["_target", "_player", "_params"];
- _params params ["_uid", "_name", "_set"];
- // _playerCash = [_player] call grad_lbm_fnc_getFunds;
- // if (_playerCash < 500) exitWith {
- // hintSilent "Недостаточно денег!"
- // };
- // [_player, -500] call grad_moneymenu_fnc_addFunds;
- // hintSilent "Вы приобрели личный комплект за 500Р";
- _player setUnitLoadout _set;
- },
- // Condition
- {
- true
- },
- {},
- // Params
- [_uid, _name, _set],
- [0,0,0],
- 100
- ] call ace_interact_menu_fnc_createAction;
- [_unit, 0, ["ACE_MainActions"], _givePersonalEquipment] call ace_interact_menu_fnc_addActionToObject;
- } forEach _uidArrayINDEPENDENT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement