Skip to content

Commit

Permalink
Move weapon arsenal whitelists to init_logistics
Browse files Browse the repository at this point in the history
  • Loading branch information
pool011 committed Oct 15, 2023
1 parent 531984e commit 7668fb7
Show file tree
Hide file tree
Showing 2 changed files with 215 additions and 209 deletions.
211 changes: 210 additions & 1 deletion cScripts/functions/init/fn_init_logistics.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ private _dataArray = [
["ACE_1Rnd_82mm_Mo_HE_LaserGuided", 0],
["ACE_1Rnd_82mm_Mo_Smoke", 0]
]],

// Roles
["arsenal_role_officer", [
["ACE_microDAGR", 0],
["ACE_HuntIR_monitor", 0],
Expand Down Expand Up @@ -1527,7 +1527,216 @@ private _dataArray = [
["USP_TACTICAL_PACK_MCB_CCT7", 0],
["USP_TACTICAL_PACK_MCB_CCT8", 0],
["UK3CB_US_B_B_RIF_OCP_Radio", 0]
]],
// Weapons
["arsenal_weap_underbarrel", [
"rhs_weap_m4a1_m320",
"rhs_weap_mk18_m320",
"rhs_weap_M320",
"rhs_weap_m4a1_carryhandle",
"rhs_weap_m4a1_carryhandle_mstock",
"rhs_weap_m4a1",
"rhs_weap_m4a1_mstock",
"rhs_weap_m4a1_d",
"rhs_weap_m4a1_d_mstock",
"rhs_weap_m4a1_wd",
"rhs_weap_m4a1_wd_mstock",

"rhs_weap_m4a1_blockII",
"rhs_weap_m4a1_blockII_KAC",
"rhs_weap_m4a1_blockII_bk",
"rhs_weap_m4a1_blockII_KAC_bk",
"rhs_weap_m4a1_blockII_d",
"rhs_weap_m4a1_blockII_KAC_d",
"rhs_weap_m4a1_blockII_wd",
"rhs_weap_m4a1_blockII_KAC_wd",

"rhs_weap_mk18",
"rhs_weap_mk18_bk",
"rhs_weap_mk18_KAC_bk",
"rhs_weap_mk18_d",
"rhs_weap_mk18_KAC_d",
"rhs_weap_mk18_KAC",
"rhs_weap_mk18_wd",
"rhs_weap_mk18_KAC_wd",

//Attachments
"rhsusf_acc_sf3p556",
"rhsusf_acc_eotech",
"rhsusf_acc_g33_t1",
"rhsusf_acc_g33_xps3",
"rhsusf_acc_g33_xps3_tan",
"rhsusf_acc_elcan",
"rhsusf_acc_acog",
"rhsusf_acc_acog2",
"rhsusf_acc_acog3",
"rhsusf_acc_eotech_552",
"rhsusf_acc_eotech_552_d",
"rhsusf_acc_eotech_552_wd",
"rhsusf_acc_compm4",
"rhsusf_acc_su230",
"rhsusf_acc_su230_c",
"rhsusf_acc_su230_mrds",
"rhsusf_acc_su230_mrds_c",
"rhsusf_acc_t1_high",
"rhsusf_acc_acog_rmr",
"rhsusf_acc_acog_d",
"rhsusf_acc_acog_wd",
"rhsusf_acc_grip2",
"rhsusf_acc_grip2_tan",
"rhsusf_acc_grip2_wd",
"rhsusf_acc_grip1",
"rhsusf_acc_kac_grip",
"rhsusf_acc_rvg_blk",
"rhsusf_acc_rvg_de",
"rhsusf_acc_tdstubby_blk",
"rhsusf_acc_tdstubby_tan",
"rhsusf_acc_grip3",
"rhsusf_acc_grip3_tan",
"rhsusf_acc_eotech_xps3"
]],
["arsenal_weap_m4", [
"rhs_weap_m4a1_carryhandle",
"rhs_weap_m4a1_carryhandle_mstock",
"rhs_weap_m4a1",
"rhs_weap_m4a1_mstock",
"rhs_weap_m4a1_d",
"rhs_weap_m4a1_d_mstock",
"rhs_weap_m4a1_wd",
"rhs_weap_m4a1_wd_mstock",

"rhs_weap_m4a1_blockII",
"rhs_weap_m4a1_blockII_KAC",
"rhs_weap_m4a1_blockII_bk",
"rhs_weap_m4a1_blockII_KAC_bk",
"rhs_weap_m4a1_blockII_d",
"rhs_weap_m4a1_blockII_KAC_d",
"rhs_weap_m4a1_blockII_wd",
"rhs_weap_m4a1_blockII_KAC_wd",

"rhs_weap_mk18",
"rhs_weap_mk18_bk",
"rhs_weap_mk18_KAC_bk",
"rhs_weap_mk18_d",
"rhs_weap_mk18_KAC_d",
"rhs_weap_mk18_KAC",
"rhs_weap_mk18_wd",
"rhs_weap_mk18_KAC_wd",

//Attachments
"rhsusf_acc_sf3p556",
"rhsusf_acc_eotech",
"rhsusf_acc_g33_t1",
"rhsusf_acc_g33_xps3",
"rhsusf_acc_g33_xps3_tan",
"rhsusf_acc_elcan",
"rhsusf_acc_acog",
"rhsusf_acc_acog2",
"rhsusf_acc_acog3",
"rhsusf_acc_eotech_552",
"rhsusf_acc_eotech_552_d",
"rhsusf_acc_eotech_552_wd",
"rhsusf_acc_compm4",
"rhsusf_acc_su230",
"rhsusf_acc_su230_c",
"rhsusf_acc_su230_mrds",
"rhsusf_acc_su230_mrds_c",
"rhsusf_acc_t1_high",
"rhsusf_acc_acog_rmr",
"rhsusf_acc_acog_d",
"rhsusf_acc_acog_wd",
"rhsusf_acc_grip2",
"rhsusf_acc_grip2_tan",
"rhsusf_acc_grip2_wd",
"rhsusf_acc_grip1",
"rhsusf_acc_kac_grip",
"rhsusf_acc_rvg_blk",
"rhsusf_acc_rvg_de",
"rhsusf_acc_tdstubby_blk",
"rhsusf_acc_tdstubby_tan",
"rhsusf_acc_grip3",
"rhsusf_acc_grip3_tan",
"rhsusf_acc_eotech_xps3"
]],
["arsenal_weap_sr25", [
"rhs_weap_sr25_ec",
"rhs_weap_sr25_ec_d",
"rhs_weap_sr25_ec_wd",

//Magazines
"rhsusf_20Rnd_762x51_SR25_m118_special_Mag",

//Attachments
"rhsusf_acc_harris_bipod",
"rhsusf_acc_m8541_d",
"rhsusf_acc_m8541_mrds",
"rhsusf_acc_elcan_ard",
"rhsusf_acc_su230a",
"rhsusf_acc_su230a_c",
"rhsusf_acc_su230a_mrds",
"rhsusf_acc_su230a_mrds_c",
"rhsusf_acc_m8541_wd",
"rhsusf_acc_acog_mdo"
]],
["arsenal_weap_m240", [
"rhs_weap_m240B",
"rhs_weap_m240G",

// Attachments
"rhsusf_acc_eotech",
"rhsusf_acc_g33_t1",
"rhsusf_acc_g33_xps3",
"rhsusf_acc_g33_xps3_tan",
"rhsusf_acc_eotech_552",
"rhsusf_acc_eotech_552_d",
"rhsusf_acc_eotech_552_wd",
"rhsusf_acc_compm4",
"rhsusf_acc_t1_high",
"rhsusf_acc_elcan_ard",
"rhsusf_acc_anpeq16a",
"rhsusf_acc_su230a",
"rhsusf_acc_su230a_c",
"rhsusf_acc_su230a_mrds",
"rhsusf_acc_su230a_mrds_c",
"rhsusf_acc_acog_mdo"
]],
["arsenal_weap_m249", [
"rhs_weap_m249_pip",
"rhs_weap_m249_light_L",
"rhs_weap_m249_pip_L_para",
"rhs_weap_m249_pip_L",
"rhs_weap_m249_pip_ris",
"rhs_weap_m249_light_S",
"rhs_weap_m249_pip_S_para",
"rhs_weap_m249_pip_S",

// Attachements
"rhsusf_acc_eotech",
"rhsusf_acc_g33_t1",
"rhsusf_acc_g33_xps3",
"rhsusf_acc_g33_xps3_tan",
"rhsusf_acc_elcan",
"rhsusf_acc_acog",
"rhsusf_acc_acog2",
"rhsusf_acc_acog3",
"rhsusf_acc_eotech_552",
"rhsusf_acc_eotech_552_d",
"rhsusf_acc_eotech_552_wd",
"rhsusf_acc_compm4",
"rhsusf_acc_su230",
"rhsusf_acc_su230_c",
"rhsusf_acc_su230_mrds",
"rhsusf_acc_su230_mrds_c",
"rhsusf_acc_t1_high",
"rhsusf_acc_acog_rmr",
"rhsusf_acc_acog_d",
"rhsusf_acc_acog_wd",
"rhsusf_acc_kac_grip_saw_bipod",
"rhsusf_acc_grip4",
"rhsusf_acc_grip4_bipod",
"rhsusf_acc_saw_lw_bipod"
]]

];

private _return = createHashMapFromArray _dataArray;
Expand Down
Loading

0 comments on commit 7668fb7

Please sign in to comment.