Jump to content
Sign in to follow this  
Vectif

Chernarus Lootspawn

Recommended Posts

I'm trying to work on some sort of Wasteland/DayZ mission for Chernarus.
So far everything works perfect and I'm using Na-Palm's lootspawn script, but I'm having this one issue; I can't get it to work alongside with the "Nato SF and Russian Spetsnaz Weapons" by massi. (http://www.armaholic.com/page.php?id=21912)
I can not figure out what the issue is, but here is the entire script;

LSlootLists.sqf

// Lootspawner junction lists for classes to spawn-/lootable items

// Author: Na_Palm (BIS forums)
//-------------------------------------------------------------------------------------
//here place Weapons an usable items (ex.: Binocular, ...)
//used with addWeaponCargoGlobal
//"lootWeapon_list" array of [class, [weaponlist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// weaponlist : list of weapon class names
lootWeapon_list = [
[ 0, [ // CIVIL
"hgun_mas_grach_F",
"hgun_mas_mak_F",
"LMG_mas_rpk_F",
"arifle_mas_aks74u",
"srifle_mas_svd",
"arifle_mas_bizon",
"arifle_mas_aks74",
"arifle_mas_ak_74m",
"arifle_mas_ak74",
"hgun_mas_mp7_F",
"arifle_mas_mp5",
"srifle_mas_m24",
"arifle_mas_m1014",
"arifle_mas_lee_l",
"arifle_mas_lee",
"arifle_mas_mp40_o",
"arifle_mas_mp40",
"arifle_mas_fal",
"arifle_mas_g3",
"arifle_mas_mk16_l",
"arifle_mas_m16",
"arifle_mas_hk416",
"arifle_MK20C_F",
"arifle_MK20_F",
"arifle_TRG20_F",
"arifle_TRG21_F",
"Binocular", //counts as weapon
"hgun_ACPC2_F",
"hgun_P07_F",
"hgun_PDW2000_F",
"hgun_Rook40_F",
"SMG_01_F",
"SMG_02_F",
"srifle_EBR_F"
//"arifle_SDAR_F",
]],[ 1, [ // MILITARY
"hgun_mas_m9_F",
"arifle_mas_asval",
"srifle_mas_vss",
"arifle_mas_saiga",
"arifle_mas_akm",
"arifle_mas_akms",
"arifle_mas_ak12_sf",
"LMG_mas_M60_F"
"LMG_mas_Mk48_F", 
"LMG_mas_M249_F",
"hgun_mas_mp7p_F",
"LMG_mas_Mk200_F",
"hgun_mas_mp7p_F",
"srifle_mas_lrr",
"srifle_mas_mk17s",
"srifle_mas_sr25",
"arifle_mas_aa12"
"arifle_mas_m14",
"arifle_mas_arx",
"arifle_mas_mk17",
"arifle_mas_mk16",
"arifle_mas_g36c",
"arifle_mas_l119",
"arifle_mas_m4",
"arifle_mas_hk417_m203c",
"arifle_mas_hk417c",
"arifle_mas_m27",
"arifle_Katiba_C_F",
"arifle_Katiba_F",
"arifle_Mk20C_F",
"arifle_Mk20_F",
"arifle_MXC_F",
"arifle_MXM_F",
"arifle_MX_F",
"arifle_MX_SW_F",
"arifle_SDAR_F",
"arifle_TRG20_F",
"arifle_TRG21_F",
"arifle_TRG21_GL_F",
"Binocular", //counts as weapon
"hgun_ACPC2_snds_F",
"hgun_P07_snds_F",
"hgun_PDW2000_F",
"hgun_Rook40_snds_F",
"Laserdesignator", //counts as weapon
"LMG_Mk200_F",
"LMG_Zafir_F",
"Rangefinder", //counts as weapon
]],[ 2, [ // INDUSTRIAL
"Binocular", //counts as weapon
]],[ 3, [ // RESEARCH
"hgun_mas_sa61_F",
"srifle_mas_ksvk",
"srifle_mas_m107",
"Laserdesignator", //counts as weapon
"Rangefinder", //counts as weapon
]]];
 
//-------------------------------------------------------------------------------------
//here place magazines, weaponattachments and bodyitems(ex.: ItemGPS, ItemMap, Medikit, FirstAidKit, Binoculars, ...)
//used with addMagazineCargoGlobal
//"lootMagazine_list" array of [class, [magazinelist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// magazinelist: list of magazine class names
lootMagazine_list = [
[ 0, [ // CIVIL
"30Rnd_mas_556x45sd_Stanag",
"optic_mas_PSO_nv_day",
"optic_mas_PSO_day",
"optic_mas_goshawk",
"muzzle_mas_snds_SMc",
"muzzle_mas_snds_LM",
"muzzle_mas_snds_L",
"13Rnd_mas_9x21_Mag",
"17Rnd_mas_9x21_Mag",
"8Rnd_mas_9x18_Mag",
"20Rnd_mas_765x17_Mag",
"100Rnd_mas_545x39_mag",
"30Rnd_mas_545x39_mag",
"10Rnd_mas_762x54_mag",
"10Rnd_mas_762x54_T_mag",
"64Rnd_mas_9x18_mag",
"30Rnd_mas_545x39_mag",
"40Rnd_mas_46x30_Mag",
"5Rnd_mas_762x51_Stanag",
"7Rnd_mas_12Gauge_Pellets",
"7Rnd_mas_12Gauge_Slug",
"5Rnd_mas_762x51_Stanag",
"30Rnd_9x21_Mag",
"30Rnd_mas_9x21_Stanag",
"30Rnd_mas_556x45_Stanag",
"16Rnd_9x21_Mag",
"20Rnd_556x45_UW_mag",
"20Rnd_762x51_Mag",
"30Rnd_45ACP_Mag_SMG_01",
"30Rnd_556x45_Stanag",
"30Rnd_9x21_Mag",
"9Rnd_45ACP_Mag",
"Chemlight_blue",
"Chemlight_green",
"Chemlight_red",
"Chemlight_yellow",
"HandGrenade",
"HandGrenade_Stone"
]],[ 1, [ // MILITARY
"20Rnd_mas_9x39sd_mag", 
"5Rnd_mas_127x108_mag",
"30Rnd_mas_9x39_mag",
"20Rnd_mas_9x39_mag",
"10Rnd_mas_12Gauge_Slug",
"10Rnd_mas_12Gauge_Pellets",
"30Rnd_mas_762x39_mag",
"30Rnd_mas_545x39_mag",
"30Rnd_mas_545x39_T_mag",
"150Rnd_762x51_Box_Tracer",
"100Rnd_mas_762x51_Stanag",
"200Rnd_mas_556x45_Stanag",
"10Rnd_mas_338_Stanag",
"20Rnd_mas_12Gauge_Demo",
"20Rnd_mas_12Gauge_Pellets",
"20Rnd_mas_12Gauge_Slug",
"20Rnd_762x51_Mag",
"20Rnd_mas_762x51_Stanag",
"30Rnd_mas_556x45_Stanag",
"150Rnd_mas_556x45_Stanag",
"30Rnd_556x45_Stanag_Tracer_Red",
"100Rnd_65x39_caseless_mag",
"100Rnd_65x39_caseless_mag_Tracer",
"150Rnd_762x51_Box",
"150Rnd_762x51_Box_Tracer",
"16Rnd_9x21_Mag",
"1Rnd_HE_Grenade_shell",
"1Rnd_SmokeBlue_Grenade_shell",
"1Rnd_SmokeGreen_Grenade_shell",
"1Rnd_SmokeOrange_Grenade_shell",
"1Rnd_SmokePurple_Grenade_shell",
"1Rnd_SmokeRed_Grenade_shell",
"1Rnd_SmokeYellow_Grenade_shell",
"1Rnd_Smoke_Grenade_shell",
"200Rnd_65x39_cased_Box",
"200Rnd_65x39_cased_Box_Tracer",
"20Rnd_556x45_UW_mag",
"20Rnd_762x51_Mag",
"30Rnd_45ACP_Mag_SMG_01",
"30Rnd_556x45_Stanag",
"30Rnd_556x45_Stanag_Tracer_Green",
"30Rnd_556x45_Stanag_Tracer_Red",
"30Rnd_556x45_Stanag_Tracer_Yellow",
"30Rnd_65x39_caseless_green",
"30Rnd_65x39_caseless_green_mag_Tracer",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag_Tracer",
"30Rnd_9x21_Mag",
"3Rnd_HE_Grenade_shell",
"3Rnd_SmokeBlue_Grenade_shell",
"3Rnd_SmokeGreen_Grenade_shell",
"3Rnd_SmokeOrange_Grenade_shell",
"3Rnd_SmokePurple_Grenade_shell",
"3Rnd_SmokeRed_Grenade_shell",
"3Rnd_SmokeYellow_Grenade_shell",
"3Rnd_Smoke_Grenade_shell",
"5Rnd_127x108_Mag",
"7Rnd_408_Mag",
"9Rnd_45ACP_Mag",
"APERSBoundingMine_Range_Mag",
"APERSMine_Range_Mag",
"APERSTripMine_Wire_Mag",
"ATMine_Range_Mag",
"Chemlight_blue",
"Chemlight_green",
"Chemlight_red",
"Chemlight_yellow",
"ClaymoreDirectionalMine_Remote_Mag",
"HandGrenade",
"MiniGrenade",
"NLAW_F",
"RPG32_F",
"RPG32_HE_F",
"SatchelCharge_Remote_Mag",
"SLAMDirectionalMine_Wire_Mag",
"Titan_AA",
"Titan_AP",
"Titan_AT"
]],[ 2, [ // INDUSTRIAL
"5Rnd_mas_127x99_dem_Stanag",
"5Rnd_mas_127x99_Stanag",
"20Rnd_556x45_UW_mag",
"30Rnd_45ACP_Mag_SMG_01",
"30Rnd_556x45_Stanag",
"30Rnd_556x45_Stanag_Tracer_Green",
"30Rnd_556x45_Stanag_Tracer_Red",
"30Rnd_556x45_Stanag_Tracer_Yellow",
"30Rnd_65x39_caseless_green",
"30Rnd_65x39_caseless_green_mag_Tracer",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag_Tracer",
"30Rnd_9x21_Mag",
"Chemlight_blue",
"Chemlight_green",
"Chemlight_red",
"Chemlight_yellow"
]],[ 3, [ // RESEARCH
"5Rnd_127x108_Mag",
"7Rnd_408_Mag",
"NLAW_F",
"RPG32_F",
"RPG32_HE_F",
"Titan_AA",
"Titan_AP",
"Titan_AT"
]]];
 
//-------------------------------------------------------------------------------------
//here place hats, glasses, clothes, uniforms, vests
//used with addItemCargoGlobal
//"lootItem_list" array of [class, [itemlist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// itemlist : list of item class names
lootItem_list = [
[ 0, [ // CIVIL
"G_mas_wpn_wrap_gog_f",
"G_mas_wpn_wrap_gog_b",
"G_mas_wpn_wrap_b",
"G_mas_wpn_wrap",
"G_mas_wpn_mask",
"G_mas_wpn_mask_b",
"acc_flashlight",
"FirstAidKit",
"H_Bandanna_gry",
"H_Beret_red",
"H_Booniehat_dirty",
"H_Cap_blu",
"H_Cap_grn",
"H_Cap_red",
"H_Hat_brown",
"H_Hat_checker",
"H_Hat_grey",
"I_UavTerminal",
"muzzle_snds_acp",
"muzzle_snds_L",
"optic_Aco",
"optic_ACO_grn",
"optic_aco_smg",
"optic_Holosight",
"optic_Holosight_smg",
"U_C_Commoner1_1",
"U_C_Poloshirt_redwhite",
"V_BandollierB_blk",
"V_BandollierB_oli",
"V_TacVestCamo_khk",
"V_TacVestIR_blk",
"V_TacVest_blk",
"V_TacVest_blk_POLICE",
"V_TacVest_brn",
"V_TacVest_camo",
"V_TacVest_khk",
"V_TacVest_oli",
"ItemMap",
"ItemRadio",
"ItemCompass",
"ItemWatch"
]],[ 1, [ // MILITARY
"G_mas_wpn_shemag_r",
"G_mas_wpn_shemag_w", 
"G_mas_wpn_shemag_gog", 
"G_mas_wpn_shemag_mask",
 "G_mas_wpn_gasmask",
 "G_mas_wpn_bala_mask", 
"G_mas_wpn_bala_mask_b", 
"G_mas_wpn_bala_mask_t", 
"G_mas_wpn_shemag",
"G_mas_wpn_bala_t", 
"G_mas_wpn_bala_gog", 
"G_mas_wpn_bala_gog_b", 
"G_mas_wpn_bala_gog_t",
"G_mas_wpn_bala_b",
"G_mas_wpn_bala",
"acc_flashlight",
"acc_pointer_IR",
"B_UavTerminal",
"FirstAidKit",
"H_HelmetB_camo",
"H_HelmetB_paint",
"H_HelmetIA_net",
"H_HelmetSpecB_blk",
"H_PilotHelmetFighter_I",
"ItemGPS",
"I_UavTerminal",
"Medikit",
"muzzle_snds_acp",
"muzzle_snds_B",
"muzzle_snds_H",
"muzzle_snds_H_MG",
"muzzle_snds_L",
"muzzle_snds_M",
"NVGoggles",
"NVGoggles_INDEP",
"NVGoggles_OPFOR",
"optic_Aco",
"optic_ACO_grn",
"optic_aco_smg",
"optic_Arco",
"optic_Hamr",
"optic_Holosight",
"optic_Holosight_smg",
"optic_Nightstalker",
"optic_NVS",
"optic_SOS",
"O_UavTerminal",
"ToolKit",
"U_B_CombatUniform_mcam",
"U_B_GhillieSuit",
"U_I_CombatUniform",
"U_I_GhillieSuit",
"U_O_CombatUniform_ocamo",
"U_O_GhillieSuit",
"V_Chestrig_blk",
"V_HarnessOGL_brn",
"V_HarnessOSpec_brn",
"V_HarnessO_brn",
"V_PlateCarrier1_blk",
"V_PlateCarrier2_rgr",
"V_PlateCarrier3_rgr",
"V_PlateCarrierGL_rgr",
"V_PlateCarrierIA1_dgtl",
"V_PlateCarrierIA2_dgtl",
"V_PlateCarrierIAGL_dgtl",
"V_PlateCarrierSpec_rgr",
"V_RebreatherB",
"V_RebreatherIA",
"V_RebreatherIR"
]],[ 2, [ // INDUSTRIAL
"FirstAidKit",
"ItemCompass",
"ItemMap",
"ItemWatch",
"ToolKit",
"U_B_Wetsuit",
"U_I_Wetsuit",
"U_O_Wetsuit",
"V_RebreatherB",
"V_RebreatherIA",
"V_RebreatherIR"
]],[ 3, [ // RESEARCH
"B_UavTerminal",
"FirstAidKit",
"ItemGPS",
"I_UavTerminal",
"Medikit",
"NVGoggles",
"NVGoggles_INDEP",
"NVGoggles_OPFOR",
"optic_Nightstalker",
"optic_NVS",
"optic_SOS",
"O_UavTerminal"
]]];
 
//-------------------------------------------------------------------------------------
//here place backpacks, parachutes and packed drones/stationary
//used with addBackpackCargoGlobal
//"lootBackpack_list" array of [class, [backpacklist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// backpacklist: list of backpack class names
lootBackpack_list = [
[ 0, [ // CIVIL
"B_AssaultPack_blk", // 34 Mags
"B_AssaultPack_cbr",
"B_AssaultPack_dgtl",
"B_AssaultPack_khk",
"B_AssaultPack_mcamo",
"B_AssaultPack_ocamo",
"B_AssaultPack_rgr",
"B_AssaultPack_sgg",
"B_BergenC_red", // 50 Mags
"B_Bergen_mcamo", // 54 Mags
"B_HuntingBackpack", // 32 Mags
"B_OutdoorPack_blu", // 17 Mags
"B_UAV_01_backpack_F",
"I_UAV_01_backpack_F",
"O_UAV_01_backpack_F"
]],[ 1, [ // MILITARY
"B_BergenG", // 64 Mags
"B_Carryall_cbr", // 60 Mags
"B_FieldPack_blk", // 35 Mags
"B_FieldPack_ocamo",
"B_FieldPack_oli",
"B_FieldPack_oucamo",
"B_GMG_01_high_weapon_F",
"B_GMG_01_weapon_F",
"B_HMG_01_support_F",
"B_HMG_01_support_high_F",
"B_HMG_01_weapon_F",
"B_Mortar_01_support_F",
"B_Mortar_01_weapon_F",
"B_TacticalPack_blk", // 42 Mags
"B_TacticalPack_mcamo",
"B_TacticalPack_ocamo",
"B_TacticalPack_oli",
"B_TacticalPack_rgr",
"B_UAV_01_backpack_F",
"I_UAV_01_backpack_F",
"O_UAV_01_backpack_F"
]],[ 2, [ // INDUSTRIAL
"B_Carryall_cbr", // 60 Mags
"B_TacticalPack_oli",
"B_TacticalPack_rgr",
"B_UAV_01_backpack_F",
"I_UAV_01_backpack_F",
"O_UAV_01_backpack_F"
]],[ 3, [ // RESEARCH
"B_GMG_01_high_weapon_F",
"B_GMG_01_weapon_F",
"B_HMG_01_support_F",
"B_HMG_01_support_high_F",
"B_HMG_01_weapon_F",
"B_Mortar_01_support_F",
"B_Mortar_01_weapon_F"
]]];
 
//-------------------------------------------------------------------------------------
//here place any other objects(ex.: Land_Basket_F, Box_East_Wps_F, Land_Can_V3_F, ...)
//used with createVehicle directly
//"lootworldObject_list" array of [class, [objectlist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// objectlist : list of worldobject class names
lootworldObject_list = [
[ 0, [ // CIVIL
"Box_East_Wps_F",
"Box_NATO_Wps_F",
"Land_Basket_F", // food
"Land_CanisterPlastic_F", // water
"Land_CanisterFuel_F" // Jerrycan
]],[ 1, [ // MILITARY
"Box_East_Wps_F",
"Box_NATO_Wps_F",
"Land_CanisterFuel_F", // jerrycan
"Land_Can_V3_F", // energydrink
"Land_Suitcase_F" // repairkit
]],[ 2, [ // INDUSTRIAL
//"Box_IND_Support_F", //support boxes don't erease inventory
"Box_IND_Grenades_F",
"Box_IND_Ammo_F",
"Box_NATO_Ammo_F",
"Land_CanisterFuel_F", // jerrycan
"Land_CanisterOil_F", // syphon hose
"Land_Suitcase_F" // repairkit
]],[ 3, [ // RESEARCH
"Box_East_Ammo_F",
"Box_IND_Ammo_F",
"Box_NATO_Ammo_F",
"Land_Can_V3_F", // energydrink
"Land_Suitcase_F" // repairkit
]]];



I can not seem  to find the error, but whenever I add any of massi's guns it stops working completely.
How can I work around this or what error am I having?
Thanks you very much.

Share this post


Link to post
Share on other sites

In the lootWeapon_list the arrays of weapons end with commas. 

lootWeapon_list = [
[ 0, ["hgun_mas_grach_F","hgun_mas_mak_F", ... , "srifle_EBR_f"]],
[ 1, [ ... "Laserdesignator","LMG_Mk200_F","LMG_Zafir_F","Rangefinder",]],
[ 2, ["Binocular",]],
[ 3, ["hgun_mas_sa61_F","srifle_mas_ksvk","srifle_mas_m107","Laserdesignator","Rangefinder",]]
]; 

Note how after both Rangerfinder strings and the Binocular string, there is a comma without another array element after it.

Most likely terminating for that.

  • Like 1

Share this post


Link to post
Share on other sites

In the lootWeapon_list the arrays of weapons end with commas. 

lootWeapon_list = [
[ 0, ["hgun_mas_grach_F","hgun_mas_mak_F", ... , "srifle_EBR_f"]],
[ 1, [ ... "Laserdesignator","LMG_Mk200_F","LMG_Zafir_F","Rangefinder",]],
[ 2, ["Binocular",]],
[ 3, ["hgun_mas_sa61_F","srifle_mas_ksvk","srifle_mas_m107","Laserdesignator","Rangefinder",]]
]; 

Note how after both Rangerfinder strings and the Binocular string, there is a comma without another array element after it.

Most likely terminating for that.

I see! Thanks you very much!

I'll try it out.

Share this post


Link to post
Share on other sites

No, it doesn't seem to work. Nothing spawns at all still.

Share this post


Link to post
Share on other sites

Hmmm. Are you running Arma 3 with the -showScriptErrors flag?

Edit: Also noticed that in the Military array, you are missing commas to separate array elements after "LMG_mas_M60_F" and "arifle_mas_aa12".

Sent from my SGP561 using Tapatalk

  • Like 1

Share this post


Link to post
Share on other sites

Hmmm. Are you running Arma 3 with the -showScriptErrors flag?

Edit: Also noticed that in the Military array, you are missing commas to separate array elements after "LMG_mas_M60_F" and "arifle_mas_aa12".

Sent from my SGP561 using Tapatalk

I don't know what the -showScriptErrors flag is.

Thank you very much with the corrections aswell, I'll be trying it out on a second.

Share this post


Link to post
Share on other sites

Okay. It seems to be working great so far. Thanks you a lot.
Incase anyone else happens to want it or to need the list, here it is (it doesn't have the ALL the items but has most iconic ones and the ones that were of my prefference)

LSlootLists.sqf

//-------------------------------------------------------------------------------------
//here place Weapons an usable items (ex.: Binocular, ...)
//used with addWeaponCargoGlobal
//"lootWeapon_list" array of [class, [weaponlist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// weaponlist : list of weapon class names
lootWeapon_list = [
[ 0, [ // CIVIL
"hgun_mas_grach_F",
"hgun_mas_mak_F",
"LMG_mas_rpk_F",
"arifle_mas_aks74u",
"srifle_mas_svd",
"arifle_mas_bizon",
"arifle_mas_aks74",
"arifle_mas_ak_74m",
"arifle_mas_ak74",
"hgun_mas_mp7_F",
"arifle_mas_mp5",
"srifle_mas_m24",
"arifle_mas_m1014",
"arifle_mas_lee_l",
"arifle_mas_lee",
"arifle_mas_mp40_o",
"arifle_mas_mp40",
"arifle_mas_fal",
"arifle_mas_g3",
"arifle_mas_mk16_l",
"arifle_mas_m16",
"arifle_mas_hk416",
"arifle_MK20C_F",
"arifle_MK20_F",
"arifle_TRG20_F",
"arifle_TRG21_F",
"Binocular", //counts as weapon
"hgun_ACPC2_F",
"hgun_P07_F",
"hgun_PDW2000_F",
"hgun_Rook40_F",
"SMG_01_F",
"SMG_02_F",
"srifle_EBR_F"
//"arifle_SDAR_F"
]],[ 1, [ // MILITARY
"hgun_mas_m9_F",
"arifle_mas_asval",
"srifle_mas_vss",
"arifle_mas_saiga",
"arifle_mas_akm",
"arifle_mas_akms",
"arifle_mas_ak12_sf",
"LMG_mas_M60_F",
"LMG_mas_Mk48_F", 
"LMG_mas_M249_F",
"hgun_mas_mp7p_F",
"LMG_mas_Mk200_F",
"hgun_mas_mp7p_F",
"srifle_mas_lrr",
"srifle_mas_mk17s",
"srifle_mas_sr25",
"arifle_mas_aa12",
"arifle_mas_m14",
"arifle_mas_arx",
"arifle_mas_mk17",
"arifle_mas_mk16",
"arifle_mas_g36c",
"arifle_mas_l119",
"arifle_mas_m4",
"arifle_mas_hk417_m203c",
"arifle_mas_hk417c",
"arifle_mas_m27",
"arifle_Katiba_C_F",
"arifle_Katiba_F",
"arifle_Mk20C_F",
"arifle_Mk20_F",
"arifle_MXC_F",
"arifle_MXM_F",
"arifle_MX_F",
"arifle_MX_SW_F",
"arifle_SDAR_F",
"arifle_TRG20_F",
"arifle_TRG21_F",
"arifle_TRG21_GL_F",
"Binocular", //counts as weapon
"hgun_ACPC2_snds_F",
"hgun_P07_snds_F",
"hgun_PDW2000_F",
"hgun_Rook40_snds_F",
"Laserdesignator", //counts as weapon
"LMG_Mk200_F",
"LMG_Zafir_F",
"Rangefinder" //counts as weapon
]],[ 2, [ // INDUSTRIAL
"Binocular" //counts as weapon
]],[ 3, [ // RESEARCH
"hgun_mas_sa61_F",
"srifle_mas_ksvk",
"srifle_mas_m107",
"Laserdesignator", //counts as weapon
"Rangefinder" //counts as weapon
]]];
 
//-------------------------------------------------------------------------------------
//here place magazines, weaponattachments and bodyitems(ex.: ItemGPS, ItemMap, Medikit, FirstAidKit, Binoculars, ...)
//used with addMagazineCargoGlobal
//"lootMagazine_list" array of [class, [magazinelist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// magazinelist: list of magazine class names
lootMagazine_list = [
[ 0, [ // CIVIL
"30Rnd_mas_556x45sd_Stanag",
"optic_mas_PSO_nv_day",
"optic_mas_PSO_day",
"optic_mas_goshawk",
"muzzle_mas_snds_SMc",
"muzzle_mas_snds_LM",
"muzzle_mas_snds_L",
"13Rnd_mas_9x21_Mag",
"17Rnd_mas_9x21_Mag",
"8Rnd_mas_9x18_Mag",
"20Rnd_mas_765x17_Mag",
"100Rnd_mas_545x39_mag",
"30Rnd_mas_545x39_mag",
"10Rnd_mas_762x54_mag",
"10Rnd_mas_762x54_T_mag",
"64Rnd_mas_9x18_mag",
"30Rnd_mas_545x39_mag",
"40Rnd_mas_46x30_Mag",
"5Rnd_mas_762x51_Stanag",
"7Rnd_mas_12Gauge_Pellets",
"7Rnd_mas_12Gauge_Slug",
"5Rnd_mas_762x51_Stanag",
"30Rnd_9x21_Mag",
"30Rnd_mas_9x21_Stanag",
"30Rnd_mas_556x45_Stanag",
"16Rnd_9x21_Mag",
"20Rnd_556x45_UW_mag",
"20Rnd_762x51_Mag",
"30Rnd_45ACP_Mag_SMG_01",
"30Rnd_556x45_Stanag",
"30Rnd_9x21_Mag",
"9Rnd_45ACP_Mag",
"Chemlight_blue",
"Chemlight_green",
"Chemlight_red",
"Chemlight_yellow",
"HandGrenade",
"HandGrenade_Stone"
]],[ 1, [ // MILITARY
"20Rnd_mas_9x39sd_mag", 
"5Rnd_mas_127x108_mag",
"30Rnd_mas_9x39_mag",
"20Rnd_mas_9x39_mag",
"10Rnd_mas_12Gauge_Slug",
"10Rnd_mas_12Gauge_Pellets",
"30Rnd_mas_762x39_mag",
"30Rnd_mas_545x39_mag",
"30Rnd_mas_545x39_T_mag",
"150Rnd_762x51_Box_Tracer",
"100Rnd_mas_762x51_Stanag",
"200Rnd_mas_556x45_Stanag",
"10Rnd_mas_338_Stanag",
"20Rnd_mas_12Gauge_Demo",
"20Rnd_mas_12Gauge_Pellets",
"20Rnd_mas_12Gauge_Slug",
"20Rnd_762x51_Mag",
"20Rnd_mas_762x51_Stanag",
"30Rnd_mas_556x45_Stanag",
"150Rnd_mas_556x45_Stanag",
"30Rnd_556x45_Stanag_Tracer_Red",
"100Rnd_65x39_caseless_mag",
"100Rnd_65x39_caseless_mag_Tracer",
"150Rnd_762x51_Box",
"150Rnd_762x51_Box_Tracer",
"16Rnd_9x21_Mag",
"1Rnd_HE_Grenade_shell",
"1Rnd_SmokeBlue_Grenade_shell",
"1Rnd_SmokeGreen_Grenade_shell",
"1Rnd_SmokeOrange_Grenade_shell",
"1Rnd_SmokePurple_Grenade_shell",
"1Rnd_SmokeRed_Grenade_shell",
"1Rnd_SmokeYellow_Grenade_shell",
"1Rnd_Smoke_Grenade_shell",
"200Rnd_65x39_cased_Box",
"200Rnd_65x39_cased_Box_Tracer",
"20Rnd_556x45_UW_mag",
"20Rnd_762x51_Mag",
"30Rnd_45ACP_Mag_SMG_01",
"30Rnd_556x45_Stanag",
"30Rnd_556x45_Stanag_Tracer_Green",
"30Rnd_556x45_Stanag_Tracer_Red",
"30Rnd_556x45_Stanag_Tracer_Yellow",
"30Rnd_65x39_caseless_green",
"30Rnd_65x39_caseless_green_mag_Tracer",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag_Tracer",
"30Rnd_9x21_Mag",
"3Rnd_HE_Grenade_shell",
"3Rnd_SmokeBlue_Grenade_shell",
"3Rnd_SmokeGreen_Grenade_shell",
"3Rnd_SmokeOrange_Grenade_shell",
"3Rnd_SmokePurple_Grenade_shell",
"3Rnd_SmokeRed_Grenade_shell",
"3Rnd_SmokeYellow_Grenade_shell",
"3Rnd_Smoke_Grenade_shell",
"5Rnd_127x108_Mag",
"7Rnd_408_Mag",
"9Rnd_45ACP_Mag",
"APERSBoundingMine_Range_Mag",
"APERSMine_Range_Mag",
"APERSTripMine_Wire_Mag",
"ATMine_Range_Mag",
"Chemlight_blue",
"Chemlight_green",
"Chemlight_red",
"Chemlight_yellow",
"ClaymoreDirectionalMine_Remote_Mag",
"HandGrenade",
"MiniGrenade",
"NLAW_F",
"RPG32_F",
"RPG32_HE_F",
"SatchelCharge_Remote_Mag",
"SLAMDirectionalMine_Wire_Mag",
"Titan_AA",
"Titan_AP",
"Titan_AT"
]],[ 2, [ // INDUSTRIAL
"5Rnd_mas_127x99_dem_Stanag",
"5Rnd_mas_127x99_Stanag",
"20Rnd_556x45_UW_mag",
"30Rnd_45ACP_Mag_SMG_01",
"30Rnd_556x45_Stanag",
"30Rnd_556x45_Stanag_Tracer_Green",
"30Rnd_556x45_Stanag_Tracer_Red",
"30Rnd_556x45_Stanag_Tracer_Yellow",
"30Rnd_65x39_caseless_green",
"30Rnd_65x39_caseless_green_mag_Tracer",
"30Rnd_65x39_caseless_mag",
"30Rnd_65x39_caseless_mag_Tracer",
"30Rnd_9x21_Mag",
"Chemlight_blue",
"Chemlight_green",
"Chemlight_red",
"Chemlight_yellow"
]],[ 3, [ // RESEARCH
"5Rnd_127x108_Mag",
"7Rnd_408_Mag",
"NLAW_F",
"RPG32_F",
"RPG32_HE_F",
"Titan_AA",
"Titan_AP",
"Titan_AT"
]]];
 
//-------------------------------------------------------------------------------------
//here place hats, glasses, clothes, uniforms, vests
//used with addItemCargoGlobal
//"lootItem_list" array of [class, [itemlist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// itemlist : list of item class names
lootItem_list = [
[ 0, [ // CIVIL
"G_mas_wpn_wrap_gog_f",
"G_mas_wpn_wrap_gog_b",
"G_mas_wpn_wrap_b",
"G_mas_wpn_wrap",
"G_mas_wpn_mask",
"G_mas_wpn_mask_b",
"acc_flashlight",
"FirstAidKit",
"H_Bandanna_gry",
"H_Beret_red",
"H_Booniehat_dirty",
"H_Cap_blu",
"H_Cap_grn",
"H_Cap_red",
"H_Hat_brown",
"H_Hat_checker",
"H_Hat_grey",
"I_UavTerminal",
"muzzle_snds_acp",
"muzzle_snds_L",
"optic_Aco",
"optic_ACO_grn",
"optic_aco_smg",
"optic_Holosight",
"optic_Holosight_smg",
"U_C_Commoner1_1",
"U_C_Poloshirt_redwhite",
"V_BandollierB_blk",
"V_BandollierB_oli",
"V_TacVestCamo_khk",
"V_TacVestIR_blk",
"V_TacVest_blk",
"V_TacVest_blk_POLICE",
"V_TacVest_brn",
"V_TacVest_camo",
"V_TacVest_khk",
"V_TacVest_oli",
"ItemMap",
"ItemRadio",
"ItemCompass",
"ItemWatch"
]],[ 1, [ // MILITARY
"G_mas_wpn_shemag_r",
"G_mas_wpn_shemag_w", 
"G_mas_wpn_shemag_gog", 
"G_mas_wpn_shemag_mask",
"G_mas_wpn_gasmask",
"G_mas_wpn_bala_mask", 
"G_mas_wpn_bala_mask_b", 
"G_mas_wpn_bala_mask_t", 
"G_mas_wpn_shemag",
"G_mas_wpn_bala_t", 
"G_mas_wpn_bala_gog", 
"G_mas_wpn_bala_gog_b", 
"G_mas_wpn_bala_gog_t",
"G_mas_wpn_bala_b",
"G_mas_wpn_bala",
"acc_flashlight",
"acc_pointer_IR",
"B_UavTerminal",
"FirstAidKit",
"H_HelmetB_camo",
"H_HelmetB_paint",
"H_HelmetIA_net",
"H_HelmetSpecB_blk",
"H_PilotHelmetFighter_I",
"ItemGPS",
"I_UavTerminal",
"Medikit",
"muzzle_snds_acp",
"muzzle_snds_B",
"muzzle_snds_H",
"muzzle_snds_H_MG",
"muzzle_snds_L",
"muzzle_snds_M",
"NVGoggles",
"NVGoggles_INDEP",
"NVGoggles_OPFOR",
"optic_Aco",
"optic_ACO_grn",
"optic_aco_smg",
"optic_Arco",
"optic_Hamr",
"optic_Holosight",
"optic_Holosight_smg",
"optic_Nightstalker",
"optic_NVS",
"optic_SOS",
"O_UavTerminal",
"ToolKit",
"U_B_CombatUniform_mcam",
"U_B_GhillieSuit",
"U_I_CombatUniform",
"U_I_GhillieSuit",
"U_O_CombatUniform_ocamo",
"U_O_GhillieSuit",
"V_Chestrig_blk",
"V_HarnessOGL_brn",
"V_HarnessOSpec_brn",
"V_HarnessO_brn",
"V_PlateCarrier1_blk",
"V_PlateCarrier2_rgr",
"V_PlateCarrier3_rgr",
"V_PlateCarrierGL_rgr",
"V_PlateCarrierIA1_dgtl",
"V_PlateCarrierIA2_dgtl",
"V_PlateCarrierIAGL_dgtl",
"V_PlateCarrierSpec_rgr",
"V_RebreatherB",
"V_RebreatherIA",
"V_RebreatherIR"
]],[ 2, [ // INDUSTRIAL
"FirstAidKit",
"ItemCompass",
"ItemMap",
"ItemWatch",
"ToolKit",
"U_B_Wetsuit",
"U_I_Wetsuit",
"U_O_Wetsuit",
"V_RebreatherB",
"V_RebreatherIA",
"V_RebreatherIR"
]],[ 3, [ // RESEARCH
"B_UavTerminal",
"FirstAidKit",
"ItemGPS",
"I_UavTerminal",
"Medikit",
"NVGoggles",
"NVGoggles_INDEP",
"NVGoggles_OPFOR",
"optic_Nightstalker",
"optic_NVS",
"optic_SOS",
"O_UavTerminal"
]]];
 
//-------------------------------------------------------------------------------------
//here place backpacks, parachutes and packed drones/stationary
//used with addBackpackCargoGlobal
//"lootBackpack_list" array of [class, [backpacklist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// backpacklist: list of backpack class names
lootBackpack_list = [
[ 0, [ // CIVIL
"B_AssaultPack_blk", // 34 Mags
"B_AssaultPack_cbr",
"B_AssaultPack_dgtl",
"B_AssaultPack_khk",
"B_AssaultPack_mcamo",
"B_AssaultPack_ocamo",
"B_AssaultPack_rgr",
"B_AssaultPack_sgg",
"B_BergenC_red", // 50 Mags
"B_Bergen_mcamo", // 54 Mags
"B_HuntingBackpack", // 32 Mags
"B_OutdoorPack_blu", // 17 Mags
"B_UAV_01_backpack_F",
"I_UAV_01_backpack_F",
"O_UAV_01_backpack_F"
]],[ 1, [ // MILITARY
"B_BergenG", // 64 Mags
"B_Carryall_cbr", // 60 Mags
"B_FieldPack_blk", // 35 Mags
"B_FieldPack_ocamo",
"B_FieldPack_oli",
"B_FieldPack_oucamo",
"B_GMG_01_high_weapon_F",
"B_GMG_01_weapon_F",
"B_HMG_01_support_F",
"B_HMG_01_support_high_F",
"B_HMG_01_weapon_F",
"B_Mortar_01_support_F",
"B_Mortar_01_weapon_F",
"B_TacticalPack_blk", // 42 Mags
"B_TacticalPack_mcamo",
"B_TacticalPack_ocamo",
"B_TacticalPack_oli",
"B_TacticalPack_rgr",
"B_UAV_01_backpack_F",
"I_UAV_01_backpack_F",
"O_UAV_01_backpack_F"
]],[ 2, [ // INDUSTRIAL
"B_Carryall_cbr", // 60 Mags
"B_TacticalPack_oli",
"B_TacticalPack_rgr",
"B_UAV_01_backpack_F",
"I_UAV_01_backpack_F",
"O_UAV_01_backpack_F"
]],[ 3, [ // RESEARCH
"B_GMG_01_high_weapon_F",
"B_GMG_01_weapon_F",
"B_HMG_01_support_F",
"B_HMG_01_support_high_F",
"B_HMG_01_weapon_F",
"B_Mortar_01_support_F",
"B_Mortar_01_weapon_F"
]]];
 
//-------------------------------------------------------------------------------------
//here place any other objects(ex.: Land_Basket_F, Box_East_Wps_F, Land_Can_V3_F, ...)
//used with createVehicle directly
//"lootworldObject_list" array of [class, [objectlist]]
// class : 0-civil, 1-military, ... (add more as you wish)
// objectlist : list of worldobject class names
lootworldObject_list = [
[ 0, [ // CIVIL
"Box_East_Wps_F",
"Box_NATO_Wps_F",
"Land_Basket_F", // food
"Land_CanisterPlastic_F", // water
"Land_CanisterFuel_F" // Jerrycan
]],[ 1, [ // MILITARY
"Box_East_Wps_F",
"Box_NATO_Wps_F",
"Land_CanisterFuel_F", // jerrycan
"Land_Can_V3_F", // energydrink
"Land_Suitcase_F" // repairkit
]],[ 2, [ // INDUSTRIAL
//"Box_IND_Support_F", //support boxes don't erease inventory
"Box_IND_Grenades_F",
"Box_IND_Ammo_F",
"Box_NATO_Ammo_F",
"Land_CanisterFuel_F", // jerrycan
"Land_CanisterOil_F", // syphon hose
"Land_Suitcase_F" // repairkit
]],[ 3, [ // RESEARCH
"Box_East_Ammo_F",
"Box_IND_Ammo_F",
"Box_NATO_Ammo_F",
"Land_Can_V3_F", // energydrink
"Land_Suitcase_F" // repairkit
]]];

Share this post


Link to post
Share on other sites

 

Okay. It seems to be working great so far. Thanks you a lot. Incase anyone else happens to want it or to need the list, here it is (it doesn't have the ALL the items but has most iconic ones and the ones that were of my prefference)
 
 
Awesome, glad I was able to help!
 
Also, if you want to learn a little bit about the -showScriptErrors flag, see https://community.bistudio.com/wiki/Arma_3_Startup_Parameters.  Basically, it assists in code debugging by displaying errors on screen.
  • Like 1

Share this post


Link to post
Share on other sites

I also have issues with Massi weapons and gun stores. The show script errors flag does not show anything when I am interacting with the stores and something does not work.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×