addVirtualxxCargo Bug?

  • Multiplayer

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • addVirtualxxCargo Bug?

    Ich habe mir unten gezeigter Funktion ein gewhitelistetes Arsenal erstellt.
    Nun sind die geblacklisteten Objekte dort aber trotzdem drin, wenn man eines davon in seinem Inventar hat.
    Die dort nicht gewünschten Gegenstände sind auch in arsenalRestrictedItems gelistet.

    Soll das so sein?
    Für uns ist das nicht gerade optimal, da wir die Dinge schon findbar,
    aber nicht unbegrenzt im Arsenal verfügbar machen möchten.



    Folgende Funktion habe ich mir im Editor auf einen Laptop gelegt:

    Spoiler anzeigen

    Quellcode

    1. /*
    2. *
    3. * Filename: fn_setArsenal.sqf
    4. * Author: [iV] Ghost
    5. * Description: Create a virtual arsenal on an object.
    6. * Executed: Client
    7. *
    8. * Example: [this] call iV_fnc_setArsenal;
    9. *
    10. */
    11. // VARIABLES
    12. params ["_target"];
    13. private _guns = [
    14. "hgun_P07_F", "hgun_P07_khk_F", "hgun_ACPC2_F", "hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_02_F", "hgun_Rook40_F", "hgun_Pistol_01_F", "hgun_esd_01_F", "hgun_esd_01_dummy_F", "hgun_Pistol_heavy_01_green_F", "ACE_VMM3", "ACE_VMH3",
    15. "arifle_Mk20_F", "arifle_Mk20_plain_F", "arifle_Mk20C_F", "arifle_Mk20C_plain_F", "arifle_Mk20_GL_F", "arifle_Mk20_GL_plain_F",
    16. "arifle_MXC_F", "arifle_MX_F", "arifle_MX_GL_F", "arifle_MXM_F", "arifle_MXC_Black_F", "arifle_MX_Black_F", "arifle_MX_GL_Black_F",
    17. "arifle_MXM_Black_F", "arifle_MX_khk_F", "arifle_MX_GL_khk_F", "arifle_MXC_khk_F", "arifle_MXM_khk_F",
    18. "arifle_SDAR_F", "arifle_TRG21_F", "arifle_TRG20_F", "arifle_TRG21_GL_F", "hgun_PDW2000_F", "SMG_01_F", "SMG_02_F",
    19. "SMG_03_TR_black", "SMG_03_TR_camo", "SMG_03_TR_khaki", "SMG_03C_TR_black", "SMG_03C_TR_camo", "SMG_03C_TR_khaki",
    20. "SMG_03_black", "SMG_03_camo", "SMG_03_khaki", "SMG_03C_black", "SMG_03C_camo", "SMG_03C_khaki",
    21. "arifle_AK12_F", "arifle_AK12_GL_F", "arifle_AKM_F", "arifle_AKS_F", "arifle_AK12_lush_F", "arifle_AK12_arid_F",
    22. "arifle_AK12_GL_lush_F", "arifle_AK12_GL_arid_F", "arifle_AK12U_F", "arifle_AK12U_lush_F", "arifle_AK12U_arid_F",
    23. "arifle_ARX_blk_F", "arifle_CTAR_blk_F", "arifle_CTAR_GL_blk_F", "arifle_CTARS_blk_F",
    24. "arifle_SPAR_01_blk_F", "arifle_SPAR_01_khk_F", "arifle_SPAR_01_snd_F", "arifle_SPAR_01_GL_blk_F", "arifle_SPAR_01_GL_khk_F", "arifle_SPAR_01_GL_snd_F",
    25. "SMG_05_F", "arifle_RPK12_F", "arifle_RPK12_lush_F", "arifle_RPK12_arid_F",
    26. "arifle_MSBS65_F", "arifle_MSBS65_Mark_F", "arifle_MSBS65_GL_F", "arifle_MSBS65_UBS_F",
    27. "arifle_MSBS65_black_F", "arifle_MSBS65_Mark_black_F", "arifle_MSBS65_GL_black_F", "arifle_MSBS65_UBS_black_F", "arifle_MSBS65_sand_F", "arifle_MSBS65_Mark_sand_F",
    28. "arifle_MSBS65_GL_sand_F", "arifle_MSBS65_UBS_sand_F", "arifle_MSBS65_camo_F", "arifle_MSBS65_Mark_camo_F", "arifle_MSBS65_GL_camo_F", "arifle_MSBS65_UBS_camo_F",
    29. "sgun_HunterShotgun_01_F", "sgun_HunterShotgun_01_sawedoff_F", "LMG_Mk200_F", "LMG_Zafir_F", "LMG_03_F", "LMG_03_Vehicle_F", "LMG_Mk200_black_F", "sma_minimi_mk3_762tlb", "sma_minimi_mk3_762tlb_des",
    30. "sma_minimi_mk3_762tlb_wdl", "sma_minimi_mk3_762tsb", "sma_minimi_mk3_762tsb_des", "sma_minimi_mk3_762tsb_wdl"
    31. ];
    32. private _launchers = [
    33. "launch_NLAW_F", "launch_RPG32_F", "launch_B_Titan_F", "launch_I_Titan_F", "launch_RPG32_ghex_F", "launch_RPG7_F", "launch_B_Titan_tna_F", "launch_MRAWS_olive_F",
    34. "launch_MRAWS_olive_rail_F", "launch_MRAWS_green_F", "launch_MRAWS_green_rail_F", "launch_MRAWS_sand_F", "launch_MRAWS_sand_rail_F", "launch_O_Vorona_brown_F",
    35. "launch_O_Vorona_green_F", "launch_RPG32_green_F", "launch_I_Titan_eaf_F", "launch_B_Titan_olive_F", "ace_csw_m3CarryTripod", "ace_csw_m3CarryTripodLow"
    36. ];
    37. private _mags = [
    38. "30Rnd_65x39_caseless_black_mag_Tracer", "ACE_30Rnd_65x39_caseless_mag_Tracer_Dim", "ACE_30Rnd_65x39_caseless_green_mag_Tracer_Dim", "ACE_30Rnd_65x47_Scenar_mag",
    39. "ACE_30Rnd_65_Creedmor_mag", "100Rnd_65x39_caseless_mag", "100Rnd_65x39_caseless_khaki_mag", "100Rnd_65x39_caseless_black_mag", "100Rnd_65x39_caseless_mag_Tracer",
    40. "100Rnd_65x39_caseless_khaki_mag_tracer", "100Rnd_65x39_caseless_black_mag_tracer", "ACE_100Rnd_65x39_caseless_mag_Tracer_Dim", "20Rnd_556x45_UW_mag", "30Rnd_45ACP_Mag_SMG_01",
    41. "30Rnd_45ACP_Mag_SMG_01_Tracer_Green", "30Rnd_45ACP_Mag_SMG_01_Tracer_Red", "30Rnd_45ACP_Mag_SMG_01_Tracer_Yellow", "30Rnd_9x21_Mag_SMG_02", "30Rnd_9x21_Mag_SMG_02_Tracer_Red",
    42. "30Rnd_9x21_Mag_SMG_02_Tracer_Yellow", "30Rnd_9x21_Mag_SMG_02_Tracer_Green", "SMA_30Rnd_762x35_BLK_EPR", "SMA_30Rnd_762x35_SS", "50Rnd_570x28_SMG_03", "30Rnd_762x39_AK12_Mag_F"
    43. ];
    44. private _items = [
    45. "ACE_DefusalKit", "ACE_DeadManSwitch", "ACE_Cellphone", "ACE_Flashlight_MX991", "ACE_Flashlight_KSF1", "ACE_Flashlight_XL50", "ACE_EarPlugs", "ACE_Kestrel4500", "ACE_fieldDressing",
    46. "ACE_packingBandage", "ACE_elasticBandage", "ACE_tourniquet", "ACE_splint", "ACE_morphine", "ACE_adenosine", "ACE_epinephrine", "ACE_plasmaIV", "ACE_plasmaIV_500", "ACE_plasmaIV_250",
    47. "ACE_bloodIV", "ACE_bloodIV_500", "ACE_bloodIV_250", "ACE_salineIV", "ACE_salineIV_500", "ACE_salineIV_250", "ACE_quikclot", "ACE_bodyBag", "ACE_RangeTable_82mm",
    48. "ACE_ATragMX", "ACE_RangeCard",
    49. "ItemWatch", "ItemCompass", "ItemGPS", "ItemMap", "Binocular", "Rangefinder", "NVGoggles", "NVGoggles_OPFOR", "NVGoggles_INDEP", "Laserdesignator", "Laserdesignator_03", "ToolKit",
    50. "herl_dri_watera", "herl_dri_Canteen", "herl_eat_apple", "herl_eat_bmr", "herl_eat_smr", "herl_ma_wire", "herl_mb_waterpur"
    51. ];
    52. private _headgear = [
    53. "H_HelmetB_TI_tna_F", "H_HelmetB_tna_F",
    54. "H_HelmetB_Enh_tna_F", "H_HelmetB_Light_tna_F", "H_MilCap_tna_F", "H_Booniehat_tna_F", "H_Beret_gen_F", "H_Booniehat_wdl", "H_MilCap_grn", "H_MilCap_taiga", "H_MilCap_wdl", "H_HelmetB_plain_wdl", "H_HelmetB_light_wdl", "H_HelmetSpecB_wdl",
    55. "H_EarProtectors_black_F", "H_HeadSet_yellow_F", "H_HeadSet_white_F", "H_HeadSet_orange_F", "H_HeadSet_red_F",
    56. "H_HeadSet_black_F", "H_PASGT_basic_blue_F", "H_PASGT_basic_white_F", "H_PASGT_basic_olive_F", "H_PASGT_basic_black_F",
    57. "H_PASGT_neckprot_blue_press_F", "H_Cap_White_IDAP_F", "H_Cap_Orange_IDAP_F", "H_Cap_Black_IDAP_F", "H_WirelessEarpiece_F", "H_HeadBandage_clean_F"
    58. ];
    59. private _goggles = [
    60. "G_Spectacles", "G_Spectacles_Tinted",
    61. "G_Combat", "G_Lowprofile", "G_Shades_Black", "G_Shades_Green", "G_Shades_Red", "G_Squares", "G_Squares_Tinted", "G_Sport_BlackWhite", "G_Sport_Blackyellow", "G_Sport_Greenblack",
    62. "G_Sport_Checkered", "G_Sport_Red", "G_Tactical_Black", "G_Aviator", "G_Diving", "G_B_Diving", "G_Balaclava_blk", "G_Balaclava_combat", "G_Balaclava_lowprofile", "G_Bandanna_blk",
    63. "G_Bandanna_oli", "G_Bandanna_khk", "G_Bandanna_tan", "G_Bandanna_beast", "G_Bandanna_shades", "G_Bandanna_sport", "G_Sport_Blackred",
    64. "G_Tactical_Clear", "G_Balaclava_TI_blk_F", "G_Balaclava_TI_tna_F", "G_Balaclava_TI_G_blk_F", "G_Balaclava_TI_G_tna_F", "G_Combat_Goggles_tna_F", "G_Respirator_white_F"
    65. ];
    66. private _uniforms = [
    67. "U_B_CombatUniform_mcam", "U_B_CombatUniform_mcam_tshirt", "U_B_CombatUniform_mcam_vest", "U_B_GhillieSuit", "U_B_HeliPilotCoveralls", "U_B_Wetsuit",
    68. "U_B_CombatUniform_mcam_worn", "U_B_PilotCoveralls", "U_B_FullGhillie_lsh", "U_B_FullGhillie_sard", "U_B_FullGhillie_ard", "U_B_T_Soldier_F", "U_B_T_Soldier_AR_F",
    69. "U_B_T_Soldier_SL_F", "U_B_T_Sniper_F", "U_B_T_FullGhillie_tna_F", "U_B_CTRG_Soldier_F", "U_B_CTRG_Soldier_2_F", "U_B_CTRG_Soldier_3_F", "U_B_GEN_Soldier_F",
    70. "U_B_GEN_Commander_F", "U_B_CTRG_Soldier_urb_1_F", "U_B_CTRG_Soldier_urb_2_F", "U_B_CTRG_Soldier_urb_3_F"
    71. ];
    72. private _vests = [
    73. "V_Rangemaster_belt", "V_BandollierB_khk", "V_BandollierB_cbr", "V_BandollierB_rgr", "V_BandollierB_blk", "V_BandollierB_oli", "V_PlateCarrier1_rgr",
    74. "V_PlateCarrier2_rgr", "V_PlateCarrier2_blk", "V_PlateCarrierGL_rgr", "V_PlateCarrierGL_blk", "V_PlateCarrierGL_mtp", "V_PlateCarrier1_blk", "V_PlateCarrierSpec_rgr",
    75. "V_PlateCarrierSpec_blk", "V_PlateCarrierSpec_mtp", "V_Chestrig_khk", "V_Chestrig_rgr", "V_Chestrig_blk", "V_Chestrig_oli", "V_TacVest_khk", "V_TacVest_brn", "V_TacVest_oli", "V_TacVest_blk", "V_TacVest_camo", "V_TacVest_blk_POLICE", "V_TacVestIR_blk", "V_HarnessO_brn", "V_HarnessOGL_brn", "V_HarnessO_gry", "V_HarnessOGL_gry", "V_PlateCarrierIAGL_oli", "V_RebreatherB", "V_PlateCarrier_Kerry", "V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG", "V_I_G_resistanceLeader_F", "V_TacChestrig_grn_F", "V_TacChestrig_oli_F", "V_TacChestrig_cbr_F", "V_PlateCarrier1_tna_F", "V_PlateCarrier2_tna_F", "V_PlateCarrierSpec_tna_F", "V_PlateCarrierGL_tna_F"
    76. ];
    77. private _backpacks = [
    78. "B_AssaultPack_khk", "B_AssaultPack_rgr", "B_AssaultPack_sgg", "B_AssaultPack_blk", "B_AssaultPack_cbr", "B_AssaultPack_mcamo", "B_AssaultPack_Kerry",
    79. "B_Kitbag_rgr", "B_Kitbag_mcamo", "B_Kitbag_sgg", "B_Kitbag_cbr", "B_Kitbag_tan", "B_AssaultPack_wdl_F", "B_AssaultPack_eaf_F",
    80. "B_TacticalPack_rgr", "B_TacticalPack_mcamo", "B_TacticalPack_blk", "B_TacticalPack_oli", "B_FieldPack_khk", "B_FieldPack_cbr", "B_FieldPack_blk", "B_FieldPack_oli",
    81. "B_Carryall_oucamo", "B_Carryall_mcamo", "B_Carryall_khk", "B_Carryall_cbr", "B_Carryall_oli", "B_HMG_01_support_F", "B_HMG_01_support_high_F", "B_HMG_01_weapon_F",
    82. "B_HMG_01_A_weapon_F", "B_GMG_01_weapon_F", "B_GMG_01_A_weapon_F", "B_HMG_01_high_weapon_F", "B_GMG_01_high_weapon_F", "B_Mortar_01_support_F", "B_Mortar_01_weapon_F", "B_AA_01_weapon_F", "B_AT_01_weapon_F"
    83. ];
    84. // CREATE VIRTUAL ARSENAL
    85. [_target, _backpacks, true, true] call BIS_fnc_addVirtualBackpackCargo;
    86. [_target, _headgear + _goggles + _uniforms + _vests + _items, true, true] call BIS_fnc_addVirtualItemCargo;
    87. [_target, _mags, true, true] call BIS_fnc_addVirtualMagazineCargo;
    88. [_target, _guns + _launchers, true, true] call BIS_fnc_addVirtualWeaponCargo;
    Alles anzeigen


  • Nein, leider kann man sich auch welche nehmen.
    Deshalb ja die Vermutung, dass es sich hierbei um ein ungewolltes "Feature" handelt.

    Und ja, wir nutzen ACE3, aber nicht das ACE-Arsenal.
    Soweit reicht uns das BI-Arsenal gut aus, wenn da nicht diese kleinen Probleme wären.

    Ich habe auch von deinem Vorschlag im Feedbacktracker gelesen, einen ArsenalPreOpen EH einzubauen.
    Finde die Idee ganz gut. Schön wäre halt, wenn man vor dem Öffnen des Arsenals, bestimmte Dinge abfragen könnte.
    Wir spielen mit einem Reputationssystem und würden ab bestimmten Werten den Inhalt, bzw. die Zugänglichkeit beschränken.