Advertisement
HomelessMage

Untitled

Dec 16th, 2023
1,487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 13.72 KB | None | 0 0
  1. // INDEPENDENT
  2. params ["_unit"];
  3. // _unit = _this select 0;
  4.  
  5. // Интендант
  6. [_unit, _unit] call ace_common_fnc_claim;
  7. _unit allowDamage false;
  8.  
  9. // [_unit] call grad_moneymenu_fnc_setStorage;
  10.  
  11.  
  12.  
  13. // independentShop for future Use
  14. [_unit,"russianShop",lootBoxGUER,aHelipadGUER,localize "STR_TAG_militaryShop",localize "STR_TAG_militaryShop",
  15.     // Condition
  16.     {
  17.         side player == independent
  18.     }
  19. ] call grad_lbm_fnc_addInteraction;
  20.    
  21.  
  22. _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;  
  23. [_unit, 0, ["ACE_MainActions"], _saveProgress] call ace_interact_menu_fnc_addActionToObject;
  24.  
  25. _healPlayer = ["HealPlayer",localize "STR_TAG_medicalAssistance","\a3\ui_f\data\igui\cfg\simpletasks\types\Heal_ca.paa",{
  26.     player playAction "Medic";
  27.     [player] call ace_medical_treatment_fnc_fullHealLocal;
  28.     },{
  29.     side player == independent
  30.     },{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;  
  31. [_unit, 0, ["ACE_MainActions"], _healPlayer] call ace_interact_menu_fnc_addActionToObject;
  32.  
  33. _deployToMHQ = ["MHQDeploy",localize "STR_TAG_deployToMHQ","\a3\ui_f\data\igui\cfg\simpletasks\types\car_ca.paa",{
  34.     [teleportItemGUER, player] execVM "scripts\fn_teleportToMHQ.sqf";
  35.     },{
  36.         side player == independent
  37.         },{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
  38. [_unit, 0, ["ACE_MainActions"], _deployToMHQ] call ace_interact_menu_fnc_addActionToObject;
  39.  
  40. /*
  41. // NAPA
  42. _giveRecruitEquipment = ["RecruitEquipment","Получить базовую экипировку","\a3\ui_f\data\igui\cfg\simpletasks\types\rearm_ca.paa",{
  43.     _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"];
  44.     _backpackArray = ["UK3CB_B_Invisible"];
  45.     _headgearArray = ["rhsgref_ssh68_vsr", "rhsgref_ssh68_ttsko_dark", "rhsgref_ssh68_ttsko_digi"];
  46.     _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"];
  47.     _weaponsArray = ["rhs_weap_ak74", "rhs_weap_aks74"];
  48.     _radioItem = "TFAR_anprc148jem";
  49.     _randomUniform = selectRandom _uniformsArray;
  50.     _randomBackpack = selectRandom _backpackArray;
  51.     _randomHeadgear = selectRandom _headgearArray;
  52.     _randomVest = selectRandom _vestsArray;
  53.     _randomWeapon = selectRandom _weaponsArray;
  54.     _weaponMagazines = getArray (configFile >> "CfgWeapons" >> _randomWeapon >> "magazines");
  55.     _weaponAmmo = _weaponMagazines select 0;
  56.     _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",""]];
  57.     player setUnitLoadout _defaultPreset;
  58.     },{side player == independent},{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
  59. [_unit, 0, ["ACE_MainActions"], _giveRecruitEquipment] call ace_interact_menu_fnc_addActionToObject;
  60. */
  61.  
  62. // PMC
  63. _giveRecruitEquipment = ["RecruitEquipment","Получить базовую экипировку","\a3\ui_f\data\igui\cfg\simpletasks\types\rearm_ca.paa",{
  64.     _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"];
  65.     _backpackArray = ["UK3CB_B_Invisible"];
  66.     _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"];
  67.     _vestsArray = ["UK3CB_V_Chestrig_WDL_02", "UK3CB_V_Chestrig_WDL_01"];
  68.     _weaponsArray = ["rhs_weap_ak104", "rhs_weap_ak105"];
  69.     _radioItem = "TFAR_anprc148jem";
  70.     _randomUniform = selectRandom _uniformsArray;
  71.     _randomBackpack = selectRandom _backpackArray;
  72.     _randomHeadgear = selectRandom _headgearArray;
  73.     _randomVest = selectRandom _vestsArray;
  74.     _randomWeapon = selectRandom _weaponsArray;
  75.     _weaponMagazines = getArray (configFile >> "CfgWeapons" >> _randomWeapon >> "magazines");
  76.     _weaponAmmo = _weaponMagazines select 0;
  77.     _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",""]];
  78.     player setUnitLoadout _defaultPreset;
  79.     },{side player == independent},{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
  80. [_unit, 0, ["ACE_MainActions"], _giveRecruitEquipment] call ace_interact_menu_fnc_addActionToObject;
  81.  
  82. _giveCivilianEquipment = ["CivilianEquipment","Получить гражданскую одежду","\a3\ui_f\data\igui\cfg\simpletasks\types\Container_ca.paa",{
  83.     _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"];
  84.     _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"];
  85.     _randomUniform = selectRandom _uniformsArray;
  86.     _randomHeadgear = selectRandom _headgearsArray;
  87.     _radioItem = "TFAR_anprc148jem";
  88.     _civillianPreset = [[],[],[],[_randomUniform,[]],[],[],_randomHeadgear,"",[],["ItemMap","ItemGPS",_radioItem,"ItemCompass","ItemWatch",""]];
  89.     player setUnitLoadout _civillianPreset;
  90.     },{
  91.         side player == independent
  92.         },{},[_unit],[0,0,0], 100] call ace_interact_menu_fnc_createAction;
  93. [_unit, 0, ["ACE_MainActions"], _giveCivilianEquipment] call ace_interact_menu_fnc_addActionToObject;
  94.  
  95.  
  96.  
  97. _uidArrayINDEPENDENT = [
  98.     [
  99.         "76561198040777688",
  100.         "Демьян Терентьев",
  101.         [["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",""]]
  102.     ],
  103.     [
  104.         "76561198954068907",
  105.         "Иван Дубов",
  106.         [["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",""]]
  107.     ],
  108.     [
  109.         "76561198810670428",
  110.         "Николай Язвинский",
  111.         [["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"]]
  112.     ],
  113.     [
  114.         "76561199028171073",
  115.         "Аблахат Кенесбек",
  116.         [["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"]]    
  117.     ]
  118. ];
  119.  
  120.  
  121. _playerUID = getPlayerUID player;
  122. {
  123.     _uid = _x select 0;
  124.     _name = _x select 1;
  125.     _set = _x select 2;
  126.     if (_playerUID != _uid) exitWith {
  127.         // systemChat format ["ты не %1", _name];
  128.     };
  129.     _givePersonalEquipment = ["_uid", format ["Получить личную экипировку: %1", _name],"\a3\ui_f\data\igui\cfg\simpletasks\types\rearm_ca.paa",
  130.         // Action
  131.         {
  132.             params ["_target", "_player", "_params"];
  133.             _params params ["_uid", "_name", "_set"];
  134.             // _playerCash = [_player] call grad_lbm_fnc_getFunds;
  135.             // if (_playerCash < 500) exitWith {
  136.             //  hintSilent "Недостаточно денег!"
  137.             // };
  138.             // [_player, -500] call grad_moneymenu_fnc_addFunds;
  139.             // hintSilent "Вы приобрели личный комплект за 500Р";
  140.             _player setUnitLoadout _set;
  141.         },
  142.         // Condition
  143.         {
  144.             true
  145.         },
  146.         {},
  147.         // Params
  148.         [_uid, _name, _set],
  149.         [0,0,0],
  150.         100
  151.     ] call ace_interact_menu_fnc_createAction;
  152.  
  153.     [_unit, 0, ["ACE_MainActions"], _givePersonalEquipment] call ace_interact_menu_fnc_addActionToObject;
  154. } forEach _uidArrayINDEPENDENT;
  155.  
  156.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement