Jump to content
Sign in to follow this  
zuff

[CO20/ACE/BAF/PMC] Lingor Force Dynamic Missions v1.0

Recommended Posts

lforce.png

LINGOR FORCE DYNAMIC MISSIONS

PMC EDITION

Original by Bon

b4d41a8dc49a380562e33b44af54dcc8.png

I bring you Bon's amazing Takistan Force mission ported to Lingor. Fully converted to use ACE equipment and play as PMC units.

Key Changes and Features:

- PMC Units (duh)

- ACE Equipment (duh again)

- New Classes, such as Engineer, Medic, AT, and AA

- BAF Weapons

- MHQ is now a Blackhawk (can lift tanks/cars/apc and load ammo)

- PMC's vehicle selection is Armored SUVs, Little Birds (different variants), KA-52s and KA-60s, 2x Russian T-series tanks (I wasn't sure about these, but there'd be no need for the Tactical Driver class without armor)

- Target Range at spawn near supply crate to test out guns on the fly without shooting at random places.

-PMC '3D Text' pop-ups to guide you through base

-ACE Wounds Module

Required Mods and Expansions:

-PMC

-BAF

-@CBA

-@ACE

-@ACEX

-@ACEX_RU

-@ACEX_USNavy

-@Lingor (with it's required mods, found here)

Recommended Mods:

-Warfx

-JTD Fire and Smoke

-JSRS Sounds

-Zeus AI (Ace edition)

-STMovement

-STHud

-@ACEX_SM (for back-up sounds on ace related items)

Download:

Version 1.12 - http://www.multiupload.com/SGALHNSPIS

Version 1.1 w/ ACE Wounds - http://www.multiupload.com/AP5Y1XY1M9

Version 1.0 -

http://www.armaholic.com/page.php?id=13264 - Thanks Big! :)

http://www.multiupload.com/B5NPC7MHTD

Known Bugs and Notes:

-Duplicate Items in crate (if someone could list them off to me I'd appreciate it!)

Todo:

-Clean out equipment box of useless things and duplicates

-Fix mission bugs

-Make custom missions more "PMC" oriented

-Add more appropriate PMC vehicles (possibly from addons, know of any?)

Changelog:

1/25/2011 - 1.12

- Saved Loadouts load on respawn automatically now

1/25/2011 - 1.1

-Rearrangement of base items a bit

-More complete Ammo Crate (still duplicates for now, but no biggie)

-Ability to load saved loadout at ammo crate

-Wounds Version Released (with medical supply box near mash)

-Some missions removed (find camps, blow up scud, bring truck)\

-Added BLUFOR AI AA Pods to prevent enemy heli's storming the base

1/20/2011

- Lforce ACE PMC 1.0 Released!

Credits:

Bon, of course!

galzohar for his ace ammo crate scripts

PLEASE REPORT BUGS TO ME, NOT BON. He has his own ports to worry about. I'll bug him about bugs after I've tried to do what I can here, first.



Media

7ed9ea03416a9984a070f4bd82428658.png

435fa9ceb9bfe8306c000cf64caece7a.png

Edited by zuff
Added 1.12

Share this post


Link to post
Share on other sites
So this is basically a TFOR port to Lingor?

Basically, along with all of the newest ace/baf equipment and addition of playing as PMC. The home base has been improved upon a lot as well, with addition of a training field and tooltips for beginners.

A bunch of various scripts were tweaked to work well with ACE and PMC. Vehicle selection was based off what current Military Contractors would be able to procure these days.

I'd say the hardest part was getting the PMC to function correctly with Bon's scripts.

I get the strangest feeling that you're not impressed with it, or am I wrong?

EDIT: And I really don't see why you asked that question when it's the first thing I say in the first post.

Share this post


Link to post
Share on other sites

No, I just somehow missed the first line. Makes more sense when you read that line too ;) Just wanted to know whether that was an actual port or something else.

I know how much work it is to convert a mission of such a scale to a new island, especially when also adding ACE support and changing the factions in play. So if it's all working correctly (still haven't go the chance to try) then this is quite nice!

Edited by galzohar

Share this post


Link to post
Share on other sites
No, I just somehow missed the first line. Makes more sense when you read that line too ;) Just wanted to know whether that was an actual port or something else.

I know how much work it is to convert a mission of such a scale to a new island, especially when also adding ACE support and changing the factions in play. So if it's all working correctly (still haven't go the chance to try) then this is quite nice!

Haha. Yah it was a pain in the arse trying to get PMC to stay BLUFOR, I just have to manually edit the mission.sqm every time I make a unit change. That on top of cut and pasting the units so they show up in the correct order was a nightmare.

Hardest part honestly was situating the Ace equipment. ACE does a good a job of adding in weapons that are almost identically the same minus a grenade launcher sight being up. So going through and deleted the duplicates is such a hassle. Bon even has script to check for duplicates but I believe it only goes by classnames, but if it went by Display names it would deleted a lot of ace equipment that is suppose to replace Arma 2 and OA stuff.

It's all a big headache and I wish there was a better way.

Biggest bug I've run into with my port of LForce are the Scud missions. The AA tower goes through the ground making it impossible to succeed. I had to add a radio trigger just to pass a FAIL variable just to move on.

Edited by zuff

Share this post


Link to post
Share on other sites

You could use this script to fill up ammo crates:

// for Arma 2 Combined Operations with ACE
// last update 19/1/2011

_vec = _this select 0;

if (loadouts>0) exitWith {deleteVehicle _vec};

_side = _this select 1;
_ammoOnly=false;
if (count _this > 2) then
{
_ammoOnly = _this select 2;
};

_vec allowDamage false;

//canSave=true;
//_vec addAction ["Save Loadout" ,"saveLoadout.sqf", [] ,1,false,true,"", "canSave"];

_vec addAction ["Default loadout" ,"defaultload.sqf", [] ,1,false,true,"", "true"];

while {true} do
{

clearWeaponCargo _vec;
clearMagazineCargo _vec;

if (_ammoOnly || _side == WEST || sideweapons>1) then
{

if (launchers>2) then
{

	// USMC heavy launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["JAVELIN",20];
		_vec addWeaponCargo ["Stinger",20];
		_vec addWeaponCargo ["SMAW",20];

		_vec addWeaponCargo ["M47Launcher_EP1", 20];
		_vec addWeaponCargo ["MAAWS", 20];
	};
	_vec addMagazineCargo ["JAVELIN",20];
	_vec addMagazineCargo ["Stinger",20];
	_vec addMagazineCargo ["SMAW_HEAA", 60];
	_vec addMagazineCargo ["ACE_SMAW_Spotting", 40];

	_vec addMagazineCargo ["Dragon_EP1", 20];
	_vec addMagazineCargo ["MAAWS_HEAT", 60]; //EP1

};

if (launchers>1) then
{
	// US medium launchers
	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["M136",40];
	};
};

if (launchers>0) then
{

	// US light launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["ACE_M72A2",40];
	};
};

if (explosives>0) then

{
	// US light explosives

	_vec addMagazineCargo ["HandGrenade_West",80];

};

if (explosives>4) then
{

	// US heavy explosives

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["M32_EP1", 20];
		_vec AddWeaponCargo ["M79_EP1", 20];
		if (futureweapons>0) then
		{
			_vec addWeaponCargo ["Mk13_EP1", 20];
		};
	};
	_vec addMagazineCargo ["ACE_40mm_Buck_M79", 80];
	if (launchers>2) then
	{
		_vec addMagazineCargo ["SMAW_HEDP", 40];
		_vec addMagazineCargo ["ACE_SMAW_NE", 40];
		_vec addMagazineCargo ["MAAWS_HEDP", 40]; //EP1
		_vec addMagazineCargo ["ACE_MAAWS_HE", 40];
	};

	_vec addMagazineCargo ["6Rnd_HE_M203", 40]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareGreen_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareRed_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareWhite_M203", 40]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareYellow_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_Smoke_M203", 40]; //EP1
	_vec addMagazineCargo ["6Rnd_SmokeGreen_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_SmokeRed_M203", 35]; //EP1

	if (lessThanLethal>0) then
	{
		_vec addMagazineCargo ["ACE_6Rnd_CS_M32", 35];
	};

};

// US pistols

if (!_ammoOnly) then
{
	_vec AddWeaponCargo ["M9", 20];
	_vec AddWeaponCargo ["Colt1911", 20];
	_vec AddWeaponCargo ["ACE_L9A1", 20];

	if (sfweapons>0) then
	{
		_vec AddWeaponCargo ["ACE_Glock18", 20];
		_vec AddWeaponCargo ["ACE_P226", 20];
		_vec AddWeaponCargo ["ACE_P8", 20];
		_vec AddWeaponCargo ["ACE_USP", 20];

		_vec addWeaponCargo ["glock17_EP1", 20];
	};
};
_vec addmagazinecargo ["15rnd_9x19_m9", 60];
_vec addMagazineCargo ["7Rnd_45ACP_1911", 60];
_vec addMagazineCargo ["ACE_13Rnd_9x19_L9A1", 60];

if (sfweapons>0) then
{
	_vec addMagazineCargo ["ACE_33Rnd_9x19_G18", 60];
	_vec addMagazineCargo ["ACE_15Rnd_9x19_P226", 60];
	_vec addMagazineCargo ["ACE_15Rnd_9x19_P8", 60];
	_vec addMagazineCargo ["ACE_12Rnd_45ACP_USP", 60];

	_vec addMagazineCargo ["17Rnd_9x19_glock17", 60]; //EP1
};
if (sfweapons>1) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M9SD", 20];
		_vec AddWeaponCargo ["ACE_USPSD", 20];
	};
	_vec addmagazinecargo ["15rnd_9x19_m9sd", 60];
	_vec addMagazineCargo ["ACE_12Rnd_45ACP_USPSD", 80];
};

// US SMGs

if (weaponTypes>0) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["MP5A5", 20];
		_vec AddWeaponCargo ["ACE_MP5A4", 20];
		_vec AddWeaponCargo ["ACE_M3A1", 20];
		if (caliber>1) then
		{
			_vec AddWeaponCargo ["ACE_KAC_PDW", 20];
			_vec AddWeaponCargo ["ACE_MP7", 20];
			_vec AddWeaponCargo ["ACE_MP7_RSAS", 20];
		};
	};

	_vec addmagazinecargo ["30Rnd_9x19_MP5", 80];
	_vec addmagazinecargo ["ACE_30Rnd_1143x23_B_M3", 80];
	if (caliber>1) then
	{
		_vec addMagazineCargo ["ACE_30Rnd_6x35_B_PDW", 80];
		_vec addMagazineCargo ["ACE_40Rnd_B_46x30_MP7", 80];
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["MP5SD", 20];
		};
	};

};

if (weaponTypes>1) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M1014", 20];

		_vec addWeaponCargo ["ACE_M1014_Eotech", 20];
	};

	_vec addMagazineCargo ["8Rnd_B_Beneli_74Slug", 80];
};

if (weaponTypes>2 && caliber>2) then
{
	// US rifles

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M16A2", 20];
		_vec AddWeaponCargo ["M16A2GL", 20];
		_vec AddWeaponCargo ["M16A4", 20];

		_vec AddWeaponCargo ["M4A1", 20];
		_vec AddWeaponCargo ["M4A1_HWS_GL", 20];
		_vec AddWeaponCargo ["M4A1_Aim", 20];
		_vec AddWeaponCargo ["M4A1_Aim_camo", 20];

		_vec AddWeaponCargo ["ACE_M16A4_Iron", 20];
		_vec AddWeaponCargo ["ACE_M16A4_CCO_GL", 20];
		_vec AddWeaponCargo ["ACE_M4A1_GL", 20];
		_vec AddWeaponCargo ["ACE_M4A1_Eotech", 20];
		_vec AddWeaponCargo ["ACE_M4A1_AIM_GL", 20];
		_vec AddWeaponCargo ["ACE_M4", 20];
		_vec AddWeaponCargo ["ACE_M4_Aim", 20];
		_vec AddWeaponCargo ["ACE_M4_AIM_GL", 20];
		_vec AddWeaponCargo ["ACE_M4_Eotech", 20];
		_vec addWeaponCargo ["ACE_M4_GL", 20];

		_vec AddWeaponCargo ["ACE_SOC_M4A1_Eotech", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_GL", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_EOTECH", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_AIMPOINT", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_Aim", 20];

		if (sfweapons>0) then
		{
			_vec AddWeaponCargo ["ACE_SOC_M4A1", 20];
			_vec AddWeaponCargo ["M4A1_HWS_GL_camo", 20];
			_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_13", 20];
			_vec addWeaponCargo ["ACE_HuntIR_monitor", 20];
			_vec addWeaponCargo ["ACE_SOC_M4A1_Eotech_4x", 20];
			if (nightSights>1) then
			{
				_vec addWeaponCargo ["ACE_SOC_M4A1_TWS", 20];
			};
		};

		if (caliber>4) then
		{
			_vec AddWeaponCargo ["LeeEnfield", 20]; //EP1
		};

		if (scopes>0) then
		{
			_vec AddWeaponCargo ["M16A4_ACG", 20];
			_vec AddWeaponCargo ["M16A4_ACG_GL", 20];
			_vec AddWeaponCargo ["M4A1_RCO_GL", 20];
			_vec addWeaponCargo ["ACE_M4A1_RCO2_GL", 20];
			_vec addWeaponCargo ["ACE_M4_RCO_GL", 20];

			_vec addWeaponCargo ["ACE_m16a2_scope", 20];
			_vec addWeaponCargo ["ACE_m16a2gl_scope", 20];

			_vec AddWeaponCargo ["ACE_SOC_M4A1_RCO_GL", 20];
			_vec AddWeaponCargo ["ACE_M4A1_ACOG", 20];
			_vec addWeaponCargo ["ACE_M4_ACOG", 20];

			if (caliber>4) then
			{
				_vec AddWeaponCargo ["M24", 20];
				_vec AddWeaponCargo ["M40A3", 20];

				_vec addWeaponCargo ["M24_des_EP1", 20];
			};

			if (sfweapons>0) then
			{
				_vec AddWeaponCargo ["ACE_SOC_M4A1_SHORTDOT", 20];
				_vec addWeaponCargo ["ACE_SOC_M4A1_Eotech_4x", 20];

				_vec AddWeaponCargo ["M4SPR", 20];
				_vec AddWeaponCargo ["ACE_Mk12mod1", 20];
			};
		};
	};

	_vec addmagazinecargo ["30rnd_556x45_Stanag", 80];
	_vec addmagazinecargo ["20Rnd_556x45_Stanag", 80];

	_vec addMagazineCargo ["FlareWhite_M203",60];
	_vec addMagazineCargo ["FlareRed_M203",40];
	_vec addMagazineCargo ["FlareGreen_M203",40];
	_vec addMagazineCargo ["FlareYellow_M203",40];

	if (caliber>4) then
	{
		_vec addMagazineCargo ["10x_303", 80]; //EP1
		_vec addmagazinecargo ["5Rnd_762x51_M24", 80];
	};

	if (sfweapons>0) then
	{
		_vec addMagazineCargo ["ACE_HuntIR_M203", 60];
	};

	_vec addMagazineCargo ["1Rnd_Smoke_M203", 50];
	_vec addMagazineCargo ["1Rnd_SmokeGreen_M203", 35];
	_vec addMagazineCargo ["1Rnd_SmokeRed_M203", 35];
	_vec addMagazineCargo ["1Rnd_SmokeYellow_M203", 35];

	if (explosives>0) then
	{
		_vec addMagazineCargo ["1rnd_HE_M203",60];
		_vec addMagazineCargo ["ACE_1Rnd_HE_M203",60];
	};
	if (lessThanLethal>0) then
	{
		_vec addMagazineCargo ["ACE_1Rnd_CS_M203",50];
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["M4A1_HWS_GL_SD_Camo", 20];
			_vec AddWeaponCargo ["M4A1_AIM_SD_camo", 20];

			_vec AddWeaponCargo ["ACE_M4A1_GL_SD", 20];
			_vec AddWeaponCargo ["ACE_M4A1_Aim_SD", 20];

			_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_SD", 20];
			_vec AddWeaponCargo ["ACE_SOC_M4A1_AIM_SD", 20];
			_vec AddWeaponCargo ["ACE_SOC_M4A1_SD_9", 20];

			_vec AddWeaponCargo ["ACE_M4A1_AIM_GL_SD", 20];

			if (scopes>0) then
			{
				_vec AddWeaponCargo ["ACE_M4SPR_SD", 20];
				_vec AddWeaponCargo ["ACE_Mk12mod1_SD", 20];

				_vec AddWeaponCargo ["ACE_SOC_M4A1_SHORTDOT_SD", 20];
				_vec AddWeaponCargo ["ACE_M4A1_ACOG_SD", 20];
			};
		};

		_vec addmagazinecargo ["30Rnd_556x45_StanagSD", 80];
	};

	if (futureweapons>0 && sfweapons>0) then
	{
		if (!_ammoOnly) then
		{
			if (caliber>4) then
			{
				_vec AddWeaponCargo ["SCAR_H_CQC_CCO", 20]; //EP1
			};
			_vec AddWeaponCargo ["SCAR_L_CQC", 20];
			_vec AddWeaponCargo ["SCAR_L_CQC_EGLM_Holo", 20];
			_vec AddWeaponCargo ["SCAR_L_CQC_Holo", 20];

			_vec AddWeaponCargo ["SCAR_L_STD_HOLO", 20];


			if (scopes>0) then
			{
				_vec AddWeaponCargo ["SCAR_L_STD_Mk4CQT", 20];
				_vec AddWeaponCargo ["SCAR_L_STD_EGLM_RCO", 20];
				if (caliber>4) then
				{
					_vec AddWeaponCargo ["SCAR_H_STD_EGLM_Spect", 20];
					_vec AddWeaponCargo ["ACE_SCAR_H_STD_Spect", 20];
				};
			};

			if (nightSights>1) then
			{
				_vec AddWeaponCargo ["SCAR_L_STD_EGLM_TWS", 20];
			};
		};

		if (caliber>4) then
		{
			_vec addMagazineCargo ["20Rnd_762x51_B_SCAR", 80];
		};

		if (sfweapons>1) then
		{
			if (!_ammoOnly) then
			{
				if (caliber>4) then
				{
					_vec AddWeaponCargo ["SCAR_H_CQC_CCO_SD", 20];
				};
				_vec AddWeaponCargo ["SCAR_L_CQC_CCO_SD", 20];
			};
			if (caliber>4) then
			{
				_vec addMagazineCargo ["20Rnd_762x51_SB_SCAR", 80]; //may need to be removed
			};
		};
	};

};

if (sideweapons>0 && weaponTypes>2 && caliber>2) then
{
	// Non-US west light rifles

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["G36C", 20];

		//_vec AddWeaponCargo ["ACE_G36K", 20];
		//_vec AddWeaponCargo ["ACE_G36K_D", 20];
		_vec AddWeaponCargo ["ACE_G36K_EOTech", 20];
		_vec AddWeaponCargo ["ACE_G36K_EOTech_D", 20];
		_vec AddWeaponCargo ["ACE_G36K_iron", 20];
		_vec AddWeaponCargo ["ACE_G36K_iron_D", 20];

		//_vec AddWeaponCargo ["ACE_SA58", 20];

		if (caliber>4) then
		{
			//_vec AddWeaponCargo ["ACE_FAL_Para", 20];
			_vec AddWeaponCargo ["ACE_G3A3", 20];
			_vec addWeaponCargo ["ACE_G3A3_RSAS", 20];
			if (sfweapons>0) then
			{
				if (scopes>0) then
				{
					_vec addWeaponCargo ["ACE_HK417_Shortdot", 20];
					_vec addWeaponCargo ["ACE_HK417_leupold", 20];
					_vec AddWeaponCargo ["ACE_HK417_Eotech_4x", 20];
				};
				_vec addWeaponCargo ["ACE_HK417_micro", 20];
			};
		};

		if (sfweapons>0) then
		{
			_vec AddWeaponCargo ["ACE_HK416_D10", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_COMPM3", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_M320", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_AIM", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14_COMPM3", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14_COMPM3_M320", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_Holo", 20];

			if (nightSights>0) then
			{
				_vec addWeaponCargo ["ACE_HK416_D14_ACOG_PVS14", 20];
			};
			if (nightSights>1) then
			{
				_vec addWeaponCargo ["ACE_HK416_D14_TWS", 20];
			};
			if (futureweapons>0) then
			{
				_vec addWeaponCargo ["ACE_M27_IAR", 20];
				if (scopes>0) then
				{
					_vec addWeaponCargo ["ACE_M27_IAR_ACOG", 20];
				};
			};
		};

		if (caliber>4) then
		{
			_vec AddWeaponCargo ["FN_FAL", 20]; //EP1
			if (nightSights>0) then
			{
				_vec AddWeaponCargo ["FN_FAL_ANPVS4", 20]; //EP1
			};
		};

		_vec AddWeaponCargo ["M4A3_CCO_EP1", 20];

		if (scopes>0) then
		{
			_vec AddWeaponCargo ["G36a", 20];
			_vec AddWeaponCargo ["G36K", 20];

			_vec AddWeaponCargo ["huntingrifle", 20];

			_vec AddWeaponCargo ["ACE_G36A1_AG36A1", 20];
			_vec AddWeaponCargo ["ACE_G36A1_AG36A1_D", 20];
			_vec AddWeaponCargo ["ACE_G36A2", 20];
			_vec addWeaponCargo ["ACE_G36A2_D", 20];
			_vec AddWeaponCargo ["ACE_G36A2_Bipod", 20];
			_vec AddWeaponCargo ["ACE_G36A2_Bipod_D", 20];

			//_vec AddWeaponCargo ["ACE_G36", 20];
			//_vec AddWeaponCargo ["ACE_G36A1", 20];
			//_vec AddWeaponCargo ["ACE_G36A1_D", 20];

			_vec AddWeaponCargo ["G36C_camo", 20]; //EP1
			_vec AddWeaponCargo ["G36K_camo", 20]; //EP1

			_vec AddWeaponCargo ["M4A3_RCO_GL_EP1", 20];
		};
	};
	_vec addmagazinecargo ["30Rnd_556x45_G36",80];
	_vec addMagazineCargo ["5x_22_LR_17_HMR", 80];

	if (caliber>4) then
	{
		_vec addMagazineCargo ["ACE_20Rnd_762x51_B_G3", 80];

		if (sfweapons>0) then
		{
			_vec addMagazineCargo ["ACE_20Rnd_762x51_B_HK417", 80];
		};

		_vec addMagazineCargo ["20Rnd_762x51_FNFAL", 80]; //EP1
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec addWeaponCargo ["G36_C_SD_camo", 20]; //EP1

			_vec AddWeaponCargo ["G36_C_SD_eotech", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_COMPM3_SD", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_SD", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14_SD", 20];
		};
		_vec addmagazinecargo ["30Rnd_556x45_G36SD",80];
	};

};

if (sideweapons>0 && weaponTypes>0) then
{

	// Non-US west SMGs

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["ACE_UMP45", 20];
		_vec AddWeaponCargo ["UZI_EP1", 20];
		_vec AddWeaponCargo ["UZI_SD_EP1", 20];
	};
	_vec addMagazineCargo ["ACE_25Rnd_1143x23_B_UMP45", 80];
	_vec addMagazineCargo ["30Rnd_9x19_UZI", 60]; //EP1
	_vec addMagazineCargo ["30Rnd_9x19_UZI_SD", 60]; //EP1, may need to remove

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["ACE_UMP45_SD", 20];
		};
	};

};

if (sideweapons>0 && weaponTypes>1) then
{

	// Non-US west shotguns

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["ACE_SPAS12", 20];	
	};
	_vec addMagazineCargo ["ACE_8Rnd_12Ga_Slug", 80];
	_vec addMagazineCargo ["ACE_8Rnd_12Ga_Buck00", 80];

};

if (weaponTypes>3) then
{

	// US heavy weaponTypes

	if (!_ammoOnly) then
	{			
		_vec AddWeaponCargo ["M249", 20];
		//_vec AddWeaponCargo ["ACE_M249Para", 20];

		_vec addWeaponCargo ["M249_EP1", 20];

		if (nightSights>1) then
		{
			_vec addWeaponCargo ["M249_TWS_EP1", 20];
		};

		if (scopes>0) then
		{
			_vec addWeaponCargo ["M249_M145_EP1", 20];

			//_vec AddWeaponCargo ["ACE_M249Para_M145", 20];
		};

		if (caliber>4) then
		{
			if (sfweapons>0) then
			{
				_vec AddWeaponCargo ["M14_EP1", 20];
				if (scopes>0) then
				{
					_vec AddWeaponCargo ["ACE_M14_ACOG", 20];
				};
				if (nightSights>0 && futureweapons>0 && scopes>0) then
				{
					_vec AddWeaponCargo ["M110_NVG_EP1", 20];
				};
				if (nightSights>1 && futureweapons>0 && scopes>0) then
				{
					_vec AddWeaponCargo ["M110_TWS_EP1", 20];
				};
			};
			if (_scweaponTypes>1) then
			{
				_vec AddWeaponCargo ["ACE_M110_SD", 20];
			};
			if (scopes>0) then
			{
				_vec AddWeaponCargo ["DMR", 20];
				if (futureweapons>0 && sfweapons>0) then
				{
					_vec AddWeaponCargo ["ACE_M110", 20];
				};
			};
		};
	};
	if (scopes>0 && caliber>4) then
	{
		_vec addMagazineCargo ["20Rnd_762x51_DMR", 80];
	};

	_vec addmagazinecargo ["200Rnd_556x45_M249", 50];

	if (sideweapons>0 && scopes>0) then
	{
		// non-US west heavy weaponTypes

		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["MG36_camo", 20]; //EP1
			_vec AddWeaponCargo ["MG36", 20];
			//_vec AddWeaponCargo ["ACE_MG36A1", 20];
			//_vec AddWeaponCargo ["ACE_MG36A1_D", 20];
			if (caliber>4) then
			{
				_vec AddWeaponCargo ["ACE_G3SG1", 20];
			};
		};
		if (hiCapMags>1) then
		{
			_vec addMagazineCargo ["100Rnd_556x45_BetaCMag", 50];
		};
	};

	if (futureweapons>0 && caliber>4 && sfweapons>0) then
	{
		if (!_ammoOnly) then
		{
			if (scopes>0) then
			{
				_vec AddWeaponCargo ["SCAR_H_LNG_Sniper", 20];
			};
		};

		if (sfweapons>1) then
		{
			if (!_ammoOnly) then
			{
				if (nightSights>1) then
				{
					_vec AddWeaponCargo ["SCAR_H_STD_TWS_SD", 20];
				};
				if (scopes>0) then
				{
					_vec AddWeaponCargo ["SCAR_H_LNG_Sniper_SD", 20];
				};
			};
		};
	};
};

if (weaponTypes>4 && caliber>4) then
{

	// US very heavy weaponTypes

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M240", 20];
		_vec AddWeaponCargo ["Mk_48", 20];
		_vec AddWeaponCargo ["ACE_M60", 20];

		_vec addWeaponCargo ["M60A4_EP1", 20];
		_vec addWeaponCargo ["Mk_48_DES_EP1", 20];

		if (scopes>0) then
		{
			_vec addWeaponCargo ["m240_scoped_EP1", 20];

			if (caliber>5) then
			{
				_vec AddWeaponCargo ["M107", 20];

				if (sfweapons>0) then
				{
					_vec AddWeaponCargo ["ACE_AS50", 20];
					_vec AddWeaponCargo ["ACE_TAC50", 20];
				};
			};

			if (caliber>6) then
			{
				_vec AddWeaponCargo ["ACE_M109", 20];
			};

		};

		if (nightSights>1) then
		{
			_vec addWeaponCargo ["m107_TWS_EP1", 20];
		};
	};

	_vec addmagazinecargo ["100Rnd_762x51_M240", 80];

	if (scopes>0 || nightSights>1) then
	{
		_vec addmagazinecargo ["10Rnd_127x99_m107", 80];
	};

	if (scopes>0) then
	{
		if (caliber>6) then
		{
			_vec addMagazineCargo ["ACE_5Rnd_25x59_HEDP_Barrett", 80];
		};
		if (caliber>5 && sfweapons>0) then
		{
			_vec addMagazineCargo ["ACE_5Rnd_127x99_B_TAC50", 80];
			_vec addMagazineCargo ["ACE_5Rnd_127x99_S_TAC50", 80];
			_vec addMagazineCargo ["ACE_5Rnd_127x99_T_TAC50", 80];
		};
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{

			if (caliber>5) then
			{
				_vec AddWeaponCargo ["ACE_TAC50_SD", 20];
			};
		};
	};
};


//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_Green", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_Brown", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_Wood", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_ACU", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_WMARPAT", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_DMARPAT", 20];

if (csw>0) then
{
	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["ACE_M2HBProxy", 10];
		_vec addWeaponCargo ["ACE_M3TripodProxy", 10];
	};
	_vec addMagazineCargo ["ACE_M2_CSWDM", 40];
};
if (csw>1) then
{
	if (!_ammoOnly) then
	{
		if (explosives>0) then
		{
			_vec addWeaponCargo ["ACE_MK19MOD3Proxy", 10];
			_vec addWeaponCargo ["ACE_M3TripodProxy", 10];
		};
		if (launchers>2) then
		{
			_vec addWeaponCargo ["ACE_M220Proxy", 10];
			_vec addWeaponCargo ["ACE_M220TripodProxy", 10];
		};
	};
	if (explosives>0) then
	{
		_vec addMagazineCargo ["ACE_MK19_CSWDM", 30];
	};
	if (launchers>2) then
	{
		_vec addMagazineCargo ["ACE_TOW_CSWDM", 30];
	};
};

};

if (_ammoOnly || _side == EAST || sideweapons>1) then
{

if (launchers>2) then
{

	// RU heavy launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["STRELA",20];
		_vec addWeaponCargo ["Igla",20];
		_vec addWeaponCargo ["MetisLauncher",20];
		_vec addWeaponCargo ["ACE_RPG29",20];
	};
	if (explosives>4) then
	{
		_vec addMagazineCargo ["ACE_AT13TB",20];
	};
	_vec addMagazineCargo ["STRELA",20];
	_vec addMagazineCargo ["Igla", 20];
	_vec addMagazineCargo ["AT13", 20];

	_vec addMagazineCargo ["ACE_RPG29_PG29", 40];

};

if (launchers>1) then
{

	// RU medium launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["RPG7V",20];
		_vec addWeaponCargo ["ACE_RPG7V_PGO7",20];
		_vec AddWeaponCargo ["ACE_RPG27", 40];
		if (explosives>4) then
		{
			_vec addWeaponCargo ["ACE_RPOM",20];
			_vec addWeaponCargo ["ACE_RMG",20];
			_vec addWeaponCargo ["ACE_RSHG1",20];
		};
	};

	_vec addMagazineCargo ["PG7V",40];
	_vec addMagazineCargo ["PG7VR",40];
	_vec addMagazineCargo ["PG7VL",40];	

};

if (launchers>0) then
{

	// RU light launchers

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["RPG18", 40];
		_vec AddWeaponCargo ["ACE_RPG22", 40];
	};

};

if (explosives>0) then
{

	// RU light explosives

	_vec addMagazineCargo ["HandGrenade",80];
	_vec addMagazineCargo ["HandGrenade_East",80];

};

if (explosives>4) then
{

	// RU heavy explosives

	_vec addMagazineCargo ["OG7",60];

	_vec addMagazineCargo ["ACE_RPG29_TBG29", 40];
	_vec addMagazineCargo ["ACE_TBG7V", 40];

};

// RU pistols

if (!_ammoOnly) then
{
	_vec AddWeaponCargo ["Makarov", 20];
	_vec AddWeaponCargo ["ACE_TT", 20];
	_vec AddWeaponCargo ["ACE_APS", 20]; //test
};
_vec addmagazinecargo ["8Rnd_9x18_Makarov", 60];
_vec addMagazineCargo ["ACE_8Rnd_762x25_B_Tokarev", 60];
_vec addMagazineCargo ["ACE_20Rnd_9x18_APS", 60]; //test

if (sfweapons>1) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["MakarovSD", 20];

		_vec AddWeaponCargo ["ACE_APSB", 20]; //test
	};

	_vec addmagazinecargo ["8Rnd_9x18_MakarovSD", 80];

	_vec addMagazineCargo ["ACE_20Rnd_9x18_APSB", 80]; //test
};

if (weaponTypes>0) then
{

	// RU SMGs

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["Bizon", 20];
		//_vec AddWeaponCargo ["ACE_Scorpion", 20];
		_vec addWeaponCargo ["Sa61_EP1", 20];
	};
	_vec addMagazineCargo ["64Rnd_9x19_Bizon", 80];

	//_vec addMagazineCargo ["ACE_20Rnd_765x17_vz61", 80];
	_vec addMagazineCargo ["20Rnd_B_765x17_Ball", 60]; //EP1
	_vec addMagazineCargo ["10Rnd_B_765x17_Ball", 60]; //EP1

	if (sfweapons>1) then
	{
		_vec addMagazineCargo ["64Rnd_9x19_SD_Bizon", 80];
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["bizon_silenced", 20];
		};
	};

};

if (weaponTypes>1) then
{

	// RU Shotguns

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["Saiga12K", 20];
	};
	_vec addMagazineCargo ["8Rnd_B_Saiga12_74Slug", 80];

};

if (weaponTypes>2 && caliber>2) then
{

	// RU rifles

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["AK_107_kobra", 20];
		_vec AddWeaponCargo ["AK_107_GL_kobra", 20];
		_vec AddWeaponCargo ["AK_74", 20];
		_vec AddWeaponCargo ["AK_74_GL", 20];	

		_vec addWeaponCargo ["AK_74_GL_kobra", 20]; //EP1
		_vec addWeaponCargo ["AKS_74", 20]; //EP1

		_vec AddWeaponCargo ["AKS_74_U", 20];
		_vec AddWeaponCargo ["AKS_74_kobra", 20];

		_vec addWeaponCargo ["ACE_AK105_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AK74M", 20];
		_vec addWeaponCargo ["ACE_AK74M_GL", 20];
		_vec addWeaponCargo ["ACE_AK74M_GL_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AK74M_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AKS74_GP25", 20];
		_vec addWeaponCargo ["ACE_AKS74P", 20];
		_vec addWeaponCargo ["ACE_AKS74P_GL", 20];
		_vec addWeaponCargo ["ACE_AKS74P_GL_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AKS74P_KOBRA", 20];

		_vec AddWeaponCargo ["RPK_74", 20];

		_vec addWeaponCargo ["ACE_RPK74M", 20];

		if (caliber>3) then
		{
			_vec AddWeaponCargo ["ACE_SKS", 20];
			_vec AddWeaponCargo ["AK_47_M", 20];

			_vec addWeaponCargo ["ACE_AKM", 20];
			_vec addWeaponCargo ["ACE_AKMS", 20];
			_vec addWeaponCargo ["ACE_AKM_GL", 20];

			_vec addWeaponCargo ["ACE_AK103", 20];
			_vec addWeaponCargo ["ACE_AK103_GL", 20];
			_vec addWeaponCargo ["ACE_AK103_GL_KOBRA", 20];
			_vec addWeaponCargo ["ACE_AK103_KOBRA", 20];

			_vec addWeaponCargo ["ACE_AK104", 20];
			_vec addWeaponCargo ["ACE_AK104_KOBRA", 20];

			_vec addWeaponCargo ["ACE_RPK", 20];

			if (sfweapons>0) then
			{
				_vec addWeaponCargo ["ACE_gr1", 20];
			};

			if (scopes>0) then
			{
				_vec addWeaponCargo ["ACE_AK103_1P29", 20];
				_vec addWeaponCargo ["ACE_AK103_GL_1P29", 20];
				_vec addWeaponCargo ["ACE_AK103_PSO", 20];
				_vec addWeaponCargo ["ACE_AK103_GL_PSO", 20];

				_vec addWeaponCargo ["ACE_AK104_1P29", 20];
				_vec addWeaponCargo ["ACE_AK104_PSO", 20];

				if (sfweapons>0) then
				{
					_vec addWeaponCargo ["ACE_gr1sp", 20];
					_vec addWeaponCargo ["ACE_gr1sdsp", 20];
					_vec addWeaponCargo ["ACE_oc14sdsp", 20];
				};
			};
			if (sfweapons>1) then
			{
				_vec addWeaponCargo ["ACE_gr1sd", 20];
				_vec addWeaponCargo ["ACE_AKMS_SD", 20];
			};
		};

		if (caliber>4) then
		{
			_vec addWeaponCargo ["ACE_oc14", 20];
			_vec addWeaponCargo ["ACE_oc14gl", 20];

			if (scopes>0) then
			{
				_vec AddWeaponCargo ["SVD", 20];
				_vec AddWeaponCargo ["SVD_CAMO", 20];
				_vec addWeaponCargo ["SVD_des_EP1", 20];
				_vec addWeaponCargo ["ACE_SVD_Bipod", 20];

				if (nightSights>0) then
				{
					_vec addWeaponCargo ["SVD_NSPU_EP1", 20];
				};

				if (sfweapons>0) then
				{
					_vec addWeaponCargo ["ACE_oc14glsp", 20];
					_vec addWeaponCargo ["ACE_oc14sp", 20];
				};
			};
			if (sfweapons>1) then
			{
				_vec addWeaponCargo ["ACE_oc14sd", 20];
			};
		};

		if (scopes>0) then
		{
			_vec AddWeaponCargo ["AK_107_GL_pso", 20];
			_vec AddWeaponCargo ["AK_107_pso", 20];
			_vec AddWeaponCargo ["AKS_74_PSO", 20];

			_vec addWeaponCargo ["ACE_AK105_PSO", 20];
			_vec addWeaponCargo ["ACE_AK105_1P29", 20];

			_vec addWeaponCargo ["ACE_AK74M_PSO", 20];
			_vec addWeaponCargo ["ACE_AK74M_1P29", 20];
			_vec addWeaponCargo ["ACE_AK74M_GL_1P29", 20];
			_vec addWeaponCargo ["ACE_AK74M_GL_PSO", 20];
			_vec addWeaponCargo ["ACE_AKS74P_1P29", 20];
			_vec addWeaponCargo ["ACE_AKS74P_PSO", 20];
			_vec addWeaponCargo ["ACE_AKS74P_GL_PSO", 20];
			_vec addWeaponCargo ["ACE_AKS74P_GL_1P29", 20];

			_vec addWeaponCargo ["ACE_RPK74M_1P29", 20];
		};

		if (nightSights>0) then
		{
			_vec addWeaponCargo ["AKS_74_NSPU", 20]; //EP1
		};
		if (nightSights>1) then
		{
			_vec addWeaponCargo ["AKS_74_GOSHAWK", 20]; //EP1
		};
	};

	if (caliber>3) then
	{
		_vec addMagazineCargo ["ACE_10Rnd_762x39_B_SKS", 80];
		_vec addMagazineCargo ["30Rnd_762x39_AK47",80];

		_vec addMagazineCargo ["ACE_40Rnd_762x39_B_AK47", 80];
	};

	if (caliber>4) then
	{
		if (scopes>0) then
		{
			_vec addmagazinecargo ["10Rnd_762x54_SVD", 80];
		};
		if (sfweapons>0) then
		{
			_vec addMagazineCargo ["ACE_20Rnd_9x39_B_OC14", 80];
		};
	};

	if (explosives>0) then
	{
		_vec addMagazineCargo ["1Rnd_HE_GP25", 60];
	};
	if (lessThanLethal>0) then
	{
		_vec addMagazineCargo ["ACE_1Rnd_CS_GP25", 50];
	};
	if (sfWeapons>1) then
	{
		_vec addmagazinecargo ["ACE_30Rnd_762x39_SD_AK47", 80];
		if (hiCapMags>1) then
		{
			_vec addmagazinecargo ["ACE_75Rnd_762x39_SD_AK47", 80];
		};
	};
	_vec addmagazinecargo ["30Rnd_545x39_AK", 80];
	_vec addMagazineCargo ["FlareWhite_GP25", 60];
	_vec addMagazineCargo ["FlareGreen_GP25", 40];
	_vec addMagazineCargo ["FlareRed_GP25", 40];
	_vec addMagazineCargo ["FlareYellow_GP25", 40];
	_vec addMagazineCargo ["1Rnd_SMOKE_GP25", 50];
	_vec addMagazineCargo ["1Rnd_SMOKERED_GP25", 35];
	_vec addMagazineCargo ["1Rnd_SMOKEGREEN_GP25", 35];
	_vec addMagazineCargo ["1Rnd_SMOKEYELLOW_GP25", 35];

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["AKS_74_UN_kobra", 20];
			_vec AddWeaponCargo ["ACE_AKS74_UN", 20];

			if (caliber>4) then
			{
				if (scopes>0) then
				{
					_vec AddWeaponCargo ["VSS_vintorez", 20];
					_vec addWeaponCargo ["ACE_VAL_PSO", 20];
				};

				_vec addWeaponCargo ["ACE_VAL", 20];
				_vec addWeaponCargo ["ACE_VAL_KOBRA", 20];
			};
		};

		_vec addMagazineCargo ["30Rnd_545x39_AKSD", 80];
		if (caliber>4) then
		{
			_vec addMagazineCargo ["20Rnd_9x39_SP5_VSS", 80];
		};
	};

};

if (weaponTypes>2 && sideweapons>0 && caliber>4) then
{
	// non-RU east weapons

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["Sa58P_EP1", 20];
		_vec addWeaponCargo ["Sa58V_CCO_EP1", 20];
		_vec addWeaponCargo ["Sa58V_EP1", 20];
		if (scopes>0) then
		{
			_vec addWeaponCargo ["Sa58V_RCO_EP1", 20];
		};
	};

	_vec addMagazineCargo ["30Rnd_762x39_SA58", 80]; // may need to be removed
};

if (weaponTypes>3) then
{
	// RU heavy weapons

	if (caliber>4) then
	{
		if (hiCapMags>0) then
		{
			_vec addMagazineCargo ["75Rnd_545x39_RPK", 80];
		};
		if (hiCapMags>1) then
		{
			_vec addMagazineCargo ["ACE_75Rnd_762x39_B_AK47", 80];
		};		
	};
};

if (weaponTypes>4 && caliber>4) then
{
	// RU very heavy weaponTypes

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["PK", 20];
		if (scopes>0) then
		{
			_vec AddWeaponCargo ["Pecheneg", 20];
		};
	};
	_vec addmagazinecargo ["100Rnd_762x54_PK", 80];

	if (scopes>0 && caliber>5) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["KSVK", 20];
		};
		_vec addmagazinecargo ["5Rnd_127x108_KSVK", 80];
	};
};

if (csw>0) then
{
	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["ACE_KORDProxy", 10];
		_vec addWeaponCargo ["ACE_6T7TripodProxy", 10];
		_vec addWeaponCargo ["ACE_DSHKMTripodProxy", 10];
		_vec addWeaponCargo ["ACE_DSHKMProxy", 10];
	};
	_vec addMagazineCargo ["ACE_DSHKM_CSWDM", 40];
};
if (csw>1) then
{
	if (!_ammoOnly) then
	{
		if (explosives>0) then
		{
			_vec addWeaponCargo ["ACE_AGS30Proxy", 10];
			_vec addWeaponCargo ["ACE_AGS30TripodProxy", 10];
		};
		if (launchers>2) then
		{
			_vec addWeaponCargo ["ACE_KonkursTripodProxy", 10];
		};
	};
	if (explosives>0) then
	{
		_vec addMagazineCargo ["ACE_AGS30_CSWDM", 30];
	};
	if (launchers>2) then
	{
		_vec addMagazineCargo ["ACE_Konkurs_CSWDM", 30];
	};
};

if (lessThanLethal>0) then
{
	_vec addMagazineCargo ["ACE_RG60A", 60];
};

_vec addMagazineCargo ["ACE_RDG2", 50];
_vec addMagazineCargo ["ACE_RDGM", 50];


//_vec AddWeaponCargo ["ACE_Rucksack_RD90", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_RD91", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_RD92", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_RD54", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_RD99", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_EAST", 20];

};

// revolver
if (sideweapons>1) then
{
if (!_ammoOnly) then
{
	_vec addWeaponCargo ["revolver_EP1", 20];
	_vec addWeaponCargo ["revolver_gold_EP1", 20];
};

_vec addMagazineCargo ["6Rnd_45ACP", 60]; //EP1
};

// global items

if (nightVision>0) then
{
_vec addWeaponCargo ["NVGoggles",20];
};
if (nightVision>1) then
{
_vec addWeaponCargo ["ACE_MX2A",20];
};

if (!_ammoOnly) then
{
_vec AddWeaponCargo ["ACE_Flaregun", 20];
};
_vec addMagazineCargo ["ACE_SSWhite_FG", 60];
_vec addMagazineCargo ["ACE_SSRed_FG", 40];
_vec addMagazineCargo ["ACE_SSGreen_FG", 40];
_vec addMagazineCargo ["ACE_SSYellow_FG", 40];

_vec addWeaponCargo ["Laserdesignator",20];
_vec addMagazineCargo ["Laserbatteries",30];
_vec addWeaponCargo ["Binocular",20];
_vec addWeaponCargo ["Binocular_Vector", 20];
_vec addWeaponCargo ["ACE_Rangefinder_OD",20];
_vec addWeaponCargo ["Binocular_Vector",20];
_vec addWeaponCargo ["ACE_YardAge450", 20];
_vec addMagazineCargo ["ACE_Battery_Rangefinder",30];
_vec addWeaponCargo ["itemGPS",25];
_vec addMagazineCargo ["SmokeShell",50];
_vec addMagazineCargo ["SmokeShellRed",30];
_vec addMagazineCargo ["SmokeShellGreen",30];
_vec addMagazineCargo ["SmokeShellYellow",30];
_vec addMagazineCargo ["SmokeShellOrange",30];
_vec addMagazineCargo ["SmokeShellPurple",30];
_vec addMagazineCargo ["SmokeShellBlue",30];
_vec addWeaponCargo ["ACE_Earplugs",20];
_vec addWeaponCargo ["ACE_GlassesRoundGlasses",20];
_vec addWeaponCargo ["ACE_GlassesSunglasses",20];
_vec addWeaponCargo ["ACE_GlassesTactical",20];
_vec addWeaponCargo ["ACE_GlassesBlackSun",20];
_vec addWeaponCargo ["ACE_GlassesBlueSun",20];
_vec addWeaponCargo ["ACE_GlassesRedSun",20];
_vec addWeaponCargo ["ACE_GlassesGreenSun",20];
_vec addWeaponCargo ["ACE_GlassesLHD_glasses",20];
_vec addWeaponCargo ["ACE_GlassesGasMask_US",20];
_vec addWeaponCargo ["ACE_GlassesGasMask_RU",20];
_vec addWeaponCargo ["ACE_GlassesBalaklava",20];
_vec addWeaponCargo ["ACE_GlassesBalaklavaGray",20];
_vec addWeaponCargo ["ACE_GlassesBalaklavaOlive",20];
_vec addWeaponCargo ["ACE_SpottingScope", 20];
_vec addWeaponCargo ["ACE_WireCutter", 20];
//_vec addWeaponCargo ["ACE_Stretcher", 20];
//_vec addMagazineCargo ["ACE_Rope_M5", 10];

if (explosives>0) then
{
_vec addMagazineCargo ["ACE_C4_M", 60];
};
if (explosives>1) then
{
// satchel
_vec addMagazineCargo ["pipebomb",60];
};
if (explosives>2) then
{
// mine
_vec addMagazineCargo ["mine",60];
_vec addMagazineCargo ["MineE", 60];
};
if (explosives>3) then
{

// global heavy explosives
_vec addMagazineCargo ["ACE_M2SLAM_M", 60];
_vec addMagazineCargo ["ACE_Claymore_M", 60];
_vec addMagazineCargo ["ACE_BBetty_M", 60];
_vec addMagazineCargo ["ACE_M34", 60];
_vec addMagazineCargo ["ACE_M4SLAM_M", 60];
_vec addMagazineCargo ["ACE_TripFlare_M", 60];
_vec addMagazineCargo ["ACE_Pomz_M", 60];

};

if (lessThanLethal>0) then
{
_vec addMagazineCargo ["ACE_M84", 60];
_vec addMagazineCargo ["ACE_M7A3", 60];
};

if (sfweapons>0) then
{
//	_vec addMagazineCargo ["ACE_Rope_M_50", 10];
//	_vec addMagazineCargo ["ACE_Rope_M_60", 10];
//	_vec addMagazineCargo ["ACE_Rope_M_90", 10];
//	_vec addMagazineCargo ["ACE_Rope_M_120", 10];
};

waitUntil {!isNil "roundInProgress"};
waitUntil {!roundInProgress};
waitUntil {roundInProgress};

};

// _vec addMagazineCargo ["", 80];
// _vec addWeaponCargo ["",20];

And enjoy the fact that I already typed in and categorized all weapons based on multiple parameters. Of course you need to set the global variables based on what types of weapons/ammo you want and don't want to be available.

Note that this is the latest version of this script, and is similar to what I used in Dynamic Cache Hunt, and will be included in the next version of that mission once I actually get a chance to get some multiplayer testing for some of the small fixes I made for the rest of the mission. Of course when ACE adds new stuff in the script needs to also be updated, but I tried keeping enough different categories so I don't ever have to re-categorize stuff (though through time I did end up needing to add some categories, but hopefully it has enough categories now).

As for PMC, I thought you would just edit the scripts to "RESISTANCE" everywhere it says "WEST", though I suppose it might be easier to just keep the PMC as west. In any case if you want to avoid editing mission.sqm every time, you can just give each group a US army group leader with 0% probability of presence, and they'll be WEST.

Edited by galzohar

Share this post


Link to post
Share on other sites
You could use this script to fill up ammo crates:

Dude you rock. I'll try to put this into effect as soon as possible.

And I'll try that PMC stuff too, anything to save me from that headache.

Thanks again.

Share this post


Link to post
Share on other sites
)rStrangelove;1839103']Any chance for non ACE version later on? :)

Sure is!

Share this post


Link to post
Share on other sites

Updated script with some small adjustments and new ACE stuff. Note that now there are now 2 new caliber limit parameters (pistol calibers and PDW calibers, 1 and 2 respectively). Again check out the dynamic cache hunt mission for an appropriate description.ext and setting the parameters based on it.

Share this post


Link to post
Share on other sites
Updated script with some small adjustments and new ACE stuff. Note that now there are now 2 new caliber limit parameters (pistol calibers and PDW calibers, 1 and 2 respectively). Again check out the dynamic cache hunt mission for an appropriate description.ext and setting the parameters based on it.

Excellent! I just replaced Bon's ammo scripts with yours since his were generating the crates at random places instead of always being in the same spot.

Any way you could set up an ability to "Load Saved Loadout"? Your "defaultload" doesn't really have any use for Lfor and if there's a quick way to get back to a saved loadout (without dying and respawning) that'd be sweet.

thanks again for your work, I'm crediting you.

Share this post


Link to post
Share on other sites

Yeah the default loadout is basically a "I don't feel like browsing through weapons just gimme something" action. Usually I have a loadloadout.sqf script that is run every time a player respawns, and a saveloadout.sqf run from the action on the crate (though not always, for example on dynamic cache hunt mission the saving is automatic when a round starts, and loading happens when a round ends as well and not just when you respawn).

This mission has more "standard" save/load mechanics. The ammo crate script there is quite an old version, though, but saving/loading is the same.

Share this post


Link to post
Share on other sites
Yeah the default loadout is basically a "I don't feel like browsing through weapons just gimme something" action. Usually I have a loadloadout.sqf script that is run every time a player respawns, and a saveloadout.sqf run from the action on the crate (though not always, for example on dynamic cache hunt mission the saving is automatic when a round starts, and loading happens when a round ends as well and not just when you respawn).

This mission has more "standard" save/load mechanics. The ammo crate script there is quite an old version, though, but saving/loading is the same.

Nice! Testing it now. Also is it safe to just throw all of the variables you call out in your populate ammo crate script at the top? For example:

// for Arma 2 Combined Operations with ACE
// last update 22/1/2011

sideWeapons = 2;
weaponTypes = 5;
explosives = 4;
launchers = 3;
sfweapons = 2;
nightVision=2;
nightSights = 2;
futureWeapons = 1;
scopes=1;
caliber=7;
csw=2;
hiCapMags=2;

_vec = _this select 0;

_side = _this select 1;
_ammoOnly=false;
if (count _this > 2) then
{
_ammoOnly = _this select 2;
};

_vec allowDamage false;

canSave=true;
_vec addAction ["Save Loadout" ,"scripts\saveLoadout.sqf", [] ,1,false,true,"", "canSave"];

_vec addAction ["Default loadout" ,"scripts\defaultload.sqf", [] ,1,false,true,"", "true"];

while {true} do
{

clearWeaponCargo _vec;
clearMagazineCargo _vec;

if (_ammoOnly || _side == WEST || sideweapons>1) then

It seems to be working fine so far!

Share this post


Link to post
Share on other sites

Yes, if you look at the missions I mentioned you'll see that those are defined in preinit.sqf (or paramsinit.sqf in the older missions). As long as you define them before the script runs the way you want to define them it'll work. Since the script runs once for every ammo box, I just defined the variables once in a separate script (older missions had local variables that were defined inside the script based on description.ext parameters, but I decided it's easier to have all parameters in a single script that runs once by being call compile preprocessFile-ed from a game logic placed in the editor (so they always get to run before execVM-ed scripts).

Of course, make sure you call this with the correct parameters (first one is the box itself, second one is side, 3rd is optional for if you want a box with ammo only and no weapons - true means only ammo, false means standard with all weapons too).

Edited by galzohar

Share this post


Link to post
Share on other sites
Yes, if you look at the missions I mentioned you'll see that those are defined in preinit.sqf (or paramsinit.sqf in the older missions). As long as you define them before the script runs the way you want to define them it'll work. Since the script runs once for every ammo box, I just defined the variables once in a separate script (older missions had local variables that were defined inside the script based on description.ext parameters, but I decided it's easier to have all parameters in a single script that runs once by being call compile preprocessFile-ed from a game logic placed in the editor (so they always get to run before execVM-ed scripts).

Of course, make sure you call this with the correct parameters (first one is the box itself, second one is side, 3rd is optional for if you want a box with ammo only and no weapons - true means only ammo, false means standard with all weapons too).

Seemed to be having some problems with the ammo script. I'm finding no Batteries for ACE equipment and some rockets are missing for SMAW and other various launchers.

Here's the current script as it is and it's running on ONE box:

// for Arma 2 Combined Operations with ACE
// last update 22/1/2011

sideWeapons = 2;
weaponTypes = 5;
explosives = 4;
launchers = 3;
sfweapons = 2;
nightVision=2;
nightSights = 2;
futureWeapons = 1;
scopes=1;
caliber=7;
csw=2;
hiCapMags=2;

_vec = _this select 0;

_side = _this select 1;
_ammoOnly=false;
if (count _this > 2) then
{
_ammoOnly = _this select 2;
};

_vec allowDamage false;

canSave=true;
_vec addAction ["Save Loadout" ,"scripts\saveLoadout.sqf", [] ,1,false,true,"", "canSave"];

_vec addAction ["Default loadout" ,"scripts\loadloadout.sqf", [] ,1,false,true,"", "true"];

while {true} do
{

clearWeaponCargo _vec;
clearMagazineCargo _vec;

if (_ammoOnly || _side == WEST || sideweapons>1) then
{

if (launchers>2) then
{

	// USMC heavy launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["JAVELIN",20];
		_vec addWeaponCargo ["Stinger",20];
		_vec addWeaponCargo ["SMAW",20];

		_vec addWeaponCargo ["M47Launcher_EP1", 20];
		_vec addWeaponCargo ["MAAWS", 20];
	};
	_vec addMagazineCargo ["JAVELIN",20];
	_vec addMagazineCargo ["Stinger",20];
	_vec addMagazineCargo ["SMAW_HEAA", 60];
	_vec addMagazineCargo ["ACE_SMAW_Spotting", 40];

	_vec addMagazineCargo ["Dragon_EP1", 20];
	_vec addMagazineCargo ["MAAWS_HEAT", 60]; //EP1

};

if (launchers>1) then
{
	// US medium launchers
	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["M136",40];
	};
};

if (launchers>0) then
{

	// US light launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["ACE_M72A2",40];
	};
};

if (explosives>0) then

{
	// US light explosives

	_vec addMagazineCargo ["HandGrenade_West",80];

};

if (explosives>4) then
{

	// US heavy explosives

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["M32_EP1", 20];
		_vec AddWeaponCargo ["M79_EP1", 20];
		if (futureweapons>0) then
		{
			_vec addWeaponCargo ["Mk13_EP1", 20];
		};
	};
	_vec addMagazineCargo ["ACE_40mm_Buck_M79", 80];
	if (launchers>2) then
	{
		_vec addMagazineCargo ["SMAW_HEDP", 40];
		_vec addMagazineCargo ["ACE_SMAW_NE", 40];
		_vec addMagazineCargo ["MAAWS_HEDP", 40]; //EP1
		_vec addMagazineCargo ["ACE_MAAWS_HE", 40];
	};

	_vec addMagazineCargo ["6Rnd_HE_M203", 40]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareGreen_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareRed_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareWhite_M203", 40]; //EP1
	_vec addMagazineCargo ["6Rnd_FlareYellow_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_Smoke_M203", 40]; //EP1
	_vec addMagazineCargo ["6Rnd_SmokeGreen_M203", 20]; //EP1
	_vec addMagazineCargo ["6Rnd_SmokeRed_M203", 35]; //EP1

	if (lessThanLethal>0) then
	{
		_vec addMagazineCargo ["ACE_6Rnd_CS_M32", 35];
	};

};

// US pistols

if (!_ammoOnly) then
{
	_vec AddWeaponCargo ["M9", 20];
	_vec AddWeaponCargo ["Colt1911", 20];
	_vec AddWeaponCargo ["ACE_L9A1", 20];

	if (sfweapons>0) then
	{
		_vec AddWeaponCargo ["ACE_Glock18", 20];
		_vec AddWeaponCargo ["ACE_P226", 20];
		_vec AddWeaponCargo ["ACE_P8", 20];
		_vec AddWeaponCargo ["ACE_USP", 20];

		_vec addWeaponCargo ["glock17_EP1", 20];
	};
};
_vec addmagazinecargo ["15rnd_9x19_m9", 60];
_vec addMagazineCargo ["7Rnd_45ACP_1911", 60];
_vec addMagazineCargo ["ACE_13Rnd_9x19_L9A1", 60];

if (sfweapons>0) then
{
	_vec addMagazineCargo ["ACE_33Rnd_9x19_G18", 60];
	_vec addMagazineCargo ["ACE_15Rnd_9x19_P226", 60];
	_vec addMagazineCargo ["ACE_15Rnd_9x19_P8", 60];
	_vec addMagazineCargo ["ACE_12Rnd_45ACP_USP", 60];

	_vec addMagazineCargo ["17Rnd_9x19_glock17", 60]; //EP1
};
if (sfweapons>1) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M9SD", 20];
		_vec AddWeaponCargo ["ACE_USPSD", 20];
	};
	_vec addmagazinecargo ["15rnd_9x19_m9sd", 60];
	_vec addMagazineCargo ["ACE_12Rnd_45ACP_USPSD", 80];
};

// US SMGs

if (weaponTypes>0) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["MP5A5", 20];
		_vec AddWeaponCargo ["ACE_MP5A4", 20];
		_vec AddWeaponCargo ["ACE_M3A1", 20];
		if (caliber>1) then
		{
			_vec AddWeaponCargo ["ACE_KAC_PDW", 20];
			_vec AddWeaponCargo ["ACE_MP7", 20];
			_vec AddWeaponCargo ["ACE_MP7_RSAS", 20];
		};
	};

	_vec addmagazinecargo ["30Rnd_9x19_MP5", 80];
	_vec addmagazinecargo ["ACE_30Rnd_1143x23_B_M3", 80];
	if (caliber>1) then
	{
		_vec addMagazineCargo ["ACE_30Rnd_6x35_B_PDW", 80];
		_vec addMagazineCargo ["ACE_40Rnd_B_46x30_MP7", 80];
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["MP5SD", 20];
		};
	};

};

if (weaponTypes>1) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M1014", 20];

		_vec addWeaponCargo ["ACE_M1014_Eotech", 20];
	};

	_vec addMagazineCargo ["8Rnd_B_Beneli_74Slug", 80];
};

if (weaponTypes>2 && caliber>2) then
{
	// US rifles

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M16A2", 20];
		_vec AddWeaponCargo ["M16A2GL", 20];
		_vec AddWeaponCargo ["M16A4", 20];

		_vec AddWeaponCargo ["M4A1", 20];
		_vec AddWeaponCargo ["M4A1_HWS_GL", 20];
		_vec AddWeaponCargo ["M4A1_Aim", 20];
		_vec AddWeaponCargo ["M4A1_Aim_camo", 20];

		_vec AddWeaponCargo ["ACE_M16A4_Iron", 20];
		_vec AddWeaponCargo ["ACE_M16A4_CCO_GL", 20];
		_vec AddWeaponCargo ["ACE_M4A1_GL", 20];
		_vec AddWeaponCargo ["ACE_M4A1_Eotech", 20];
		_vec AddWeaponCargo ["ACE_M4A1_AIM_GL", 20];
		_vec AddWeaponCargo ["ACE_M4", 20];
		_vec AddWeaponCargo ["ACE_M4_Aim", 20];
		_vec AddWeaponCargo ["ACE_M4_AIM_GL", 20];
		_vec AddWeaponCargo ["ACE_M4_Eotech", 20];
		_vec addWeaponCargo ["ACE_M4_GL", 20];

		_vec AddWeaponCargo ["ACE_SOC_M4A1_Eotech", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_GL", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_EOTECH", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_AIMPOINT", 20];
		_vec AddWeaponCargo ["ACE_SOC_M4A1_Aim", 20];

		if (sfweapons>0) then
		{
			_vec AddWeaponCargo ["ACE_SOC_M4A1", 20];
			_vec AddWeaponCargo ["M4A1_HWS_GL_camo", 20];
			_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_13", 20];
			_vec addWeaponCargo ["ACE_HuntIR_monitor", 20];
			_vec addWeaponCargo ["ACE_SOC_M4A1_Eotech_4x", 20];
			if (nightSights>1) then
			{
				_vec addWeaponCargo ["ACE_SOC_M4A1_TWS", 20];
			};
		};

		if (caliber>4) then
		{
			_vec AddWeaponCargo ["LeeEnfield", 20]; //EP1
		};

		if (scopes>0) then
		{
			_vec AddWeaponCargo ["M16A4_ACG", 20];
			_vec AddWeaponCargo ["M16A4_ACG_GL", 20];
			_vec AddWeaponCargo ["M4A1_RCO_GL", 20];
			_vec addWeaponCargo ["ACE_M4A1_RCO2_GL", 20];
			_vec addWeaponCargo ["ACE_M4_RCO_GL", 20];

			_vec addWeaponCargo ["ACE_m16a2_scope", 20];
			_vec addWeaponCargo ["ACE_m16a2gl_scope", 20];

			_vec AddWeaponCargo ["ACE_SOC_M4A1_RCO_GL", 20];
			_vec AddWeaponCargo ["ACE_M4A1_ACOG", 20];
			_vec addWeaponCargo ["ACE_M4_ACOG", 20];

			if (caliber>4) then
			{
				_vec AddWeaponCargo ["M24", 20];
				_vec AddWeaponCargo ["M40A3", 20];

				_vec addWeaponCargo ["M24_des_EP1", 20];
			};

			if (sfweapons>0) then
			{
				_vec AddWeaponCargo ["ACE_SOC_M4A1_SHORTDOT", 20];
				_vec addWeaponCargo ["ACE_SOC_M4A1_Eotech_4x", 20];

				_vec AddWeaponCargo ["M4SPR", 20];
				_vec AddWeaponCargo ["ACE_Mk12mod1", 20];
			};
		};
	};

	_vec addmagazinecargo ["30rnd_556x45_Stanag", 80];
	_vec addmagazinecargo ["20Rnd_556x45_Stanag", 80];

	_vec addMagazineCargo ["FlareWhite_M203",60];
	_vec addMagazineCargo ["FlareRed_M203",40];
	_vec addMagazineCargo ["FlareGreen_M203",40];
	_vec addMagazineCargo ["FlareYellow_M203",40];

	if (caliber>4) then
	{
		_vec addMagazineCargo ["10x_303", 80]; //EP1
		_vec addmagazinecargo ["5Rnd_762x51_M24", 80];
	};

	if (sfweapons>0) then
	{
		_vec addMagazineCargo ["ACE_HuntIR_M203", 60];
	};

	_vec addMagazineCargo ["1Rnd_Smoke_M203", 50];
	_vec addMagazineCargo ["1Rnd_SmokeGreen_M203", 35];
	_vec addMagazineCargo ["1Rnd_SmokeRed_M203", 35];
	_vec addMagazineCargo ["1Rnd_SmokeYellow_M203", 35];

	if (explosives>0) then
	{
		_vec addMagazineCargo ["1rnd_HE_M203",60];
		_vec addMagazineCargo ["ACE_1Rnd_HE_M203",60];
	};
	if (lessThanLethal>0) then
	{
		_vec addMagazineCargo ["ACE_1Rnd_CS_M203",50];
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["M4A1_HWS_GL_SD_Camo", 20];
			_vec AddWeaponCargo ["M4A1_AIM_SD_camo", 20];

			_vec AddWeaponCargo ["ACE_M4A1_GL_SD", 20];
			_vec AddWeaponCargo ["ACE_M4A1_Aim_SD", 20];

			_vec AddWeaponCargo ["ACE_SOC_M4A1_GL_SD", 20];
			_vec AddWeaponCargo ["ACE_SOC_M4A1_AIM_SD", 20];
			_vec AddWeaponCargo ["ACE_SOC_M4A1_SD_9", 20];

			_vec AddWeaponCargo ["ACE_M4A1_AIM_GL_SD", 20];

			if (scopes>0) then
			{
				_vec AddWeaponCargo ["ACE_M4SPR_SD", 20];
				_vec AddWeaponCargo ["ACE_Mk12mod1_SD", 20];

				_vec AddWeaponCargo ["ACE_SOC_M4A1_SHORTDOT_SD", 20];
				_vec AddWeaponCargo ["ACE_M4A1_ACOG_SD", 20];
			};
		};

		_vec addmagazinecargo ["30Rnd_556x45_StanagSD", 80];
	};

	if (futureweapons>0 && sfweapons>0) then
	{
		if (!_ammoOnly) then
		{
			if (caliber>4) then
			{
				_vec AddWeaponCargo ["SCAR_H_CQC_CCO", 20]; //EP1
			};
			_vec AddWeaponCargo ["SCAR_L_CQC", 20];
			_vec AddWeaponCargo ["SCAR_L_CQC_EGLM_Holo", 20];
			_vec AddWeaponCargo ["SCAR_L_CQC_Holo", 20];

			_vec AddWeaponCargo ["SCAR_L_STD_HOLO", 20];


			if (scopes>0) then
			{
				_vec AddWeaponCargo ["SCAR_L_STD_Mk4CQT", 20];
				_vec AddWeaponCargo ["SCAR_L_STD_EGLM_RCO", 20];
				if (caliber>4) then
				{
					_vec AddWeaponCargo ["SCAR_H_STD_EGLM_Spect", 20];
					_vec AddWeaponCargo ["ACE_SCAR_H_STD_Spect", 20];
				};
			};

			if (nightSights>1) then
			{
				_vec AddWeaponCargo ["SCAR_L_STD_EGLM_TWS", 20];
			};
		};

		if (caliber>4) then
		{
			_vec addMagazineCargo ["20Rnd_762x51_B_SCAR", 80];
		};

		if (sfweapons>1) then
		{
			if (!_ammoOnly) then
			{
				if (caliber>4) then
				{
					_vec AddWeaponCargo ["SCAR_H_CQC_CCO_SD", 20];
				};
				_vec AddWeaponCargo ["SCAR_L_CQC_CCO_SD", 20];
			};
			if (caliber>4) then
			{
				_vec addMagazineCargo ["20Rnd_762x51_SB_SCAR", 80]; //may need to be removed
			};
		};
	};

};

if (sideweapons>0 && weaponTypes>2 && caliber>2) then
{
	// Non-US west light rifles

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["G36C", 20];

		//_vec AddWeaponCargo ["ACE_G36K", 20];
		//_vec AddWeaponCargo ["ACE_G36K_D", 20];
		_vec AddWeaponCargo ["ACE_G36K_EOTech", 20];
		_vec AddWeaponCargo ["ACE_G36K_EOTech_D", 20];
		_vec AddWeaponCargo ["ACE_G36K_iron", 20];
		_vec AddWeaponCargo ["ACE_G36K_iron_D", 20];

		//_vec AddWeaponCargo ["ACE_SA58", 20];

		if (caliber>4) then
		{
			//_vec AddWeaponCargo ["ACE_FAL_Para", 20];
			_vec AddWeaponCargo ["ACE_G3A3", 20];
			_vec addWeaponCargo ["ACE_G3A3_RSAS", 20];
			if (sfweapons>0) then
			{
				if (scopes>0) then
				{
					_vec addWeaponCargo ["ACE_HK417_Shortdot", 20];
					_vec addWeaponCargo ["ACE_HK417_leupold", 20];
					_vec AddWeaponCargo ["ACE_HK417_Eotech_4x", 20];
				};
				_vec addWeaponCargo ["ACE_HK417_micro", 20];
			};
		};

		if (sfweapons>0) then
		{
			_vec AddWeaponCargo ["ACE_HK416_D10", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_COMPM3", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_M320", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_AIM", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14_COMPM3", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14_COMPM3_M320", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_Holo", 20];

			if (nightSights>0) then
			{
				_vec addWeaponCargo ["ACE_HK416_D14_ACOG_PVS14", 20];
			};
			if (nightSights>1) then
			{
				_vec addWeaponCargo ["ACE_HK416_D14_TWS", 20];
			};
			if (futureweapons>0) then
			{
				_vec addWeaponCargo ["ACE_M27_IAR", 20];
				if (scopes>0) then
				{
					_vec addWeaponCargo ["ACE_M27_IAR_ACOG", 20];
				};
			};
		};

		if (caliber>4) then
		{
			_vec AddWeaponCargo ["FN_FAL", 20]; //EP1
			if (nightSights>0) then
			{
				_vec AddWeaponCargo ["FN_FAL_ANPVS4", 20]; //EP1
			};
		};

		_vec AddWeaponCargo ["M4A3_CCO_EP1", 20];

		if (scopes>0) then
		{
			_vec AddWeaponCargo ["G36a", 20];
			_vec AddWeaponCargo ["G36K", 20];

			_vec AddWeaponCargo ["huntingrifle", 20];

			_vec AddWeaponCargo ["ACE_G36A1_AG36A1", 20];
			_vec AddWeaponCargo ["ACE_G36A1_AG36A1_D", 20];
			_vec AddWeaponCargo ["ACE_G36A2", 20];
			_vec addWeaponCargo ["ACE_G36A2_D", 20];
			_vec AddWeaponCargo ["ACE_G36A2_Bipod", 20];
			_vec AddWeaponCargo ["ACE_G36A2_Bipod_D", 20];

			//_vec AddWeaponCargo ["ACE_G36", 20];
			//_vec AddWeaponCargo ["ACE_G36A1", 20];
			//_vec AddWeaponCargo ["ACE_G36A1_D", 20];

			_vec AddWeaponCargo ["G36C_camo", 20]; //EP1
			_vec AddWeaponCargo ["G36K_camo", 20]; //EP1

			_vec AddWeaponCargo ["M4A3_RCO_GL_EP1", 20];
		};
	};
	_vec addmagazinecargo ["30Rnd_556x45_G36",80];
	_vec addMagazineCargo ["5x_22_LR_17_HMR", 80];

	if (caliber>4) then
	{
		_vec addMagazineCargo ["ACE_20Rnd_762x51_B_G3", 80];

		if (sfweapons>0) then
		{
			_vec addMagazineCargo ["ACE_20Rnd_762x51_B_HK417", 80];
		};

		_vec addMagazineCargo ["20Rnd_762x51_FNFAL", 80]; //EP1
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec addWeaponCargo ["G36_C_SD_camo", 20]; //EP1

			_vec AddWeaponCargo ["G36_C_SD_eotech", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_COMPM3_SD", 20];
			_vec AddWeaponCargo ["ACE_HK416_D10_SD", 20];
			_vec AddWeaponCargo ["ACE_HK416_D14_SD", 20];
		};
		_vec addmagazinecargo ["30Rnd_556x45_G36SD",80];
	};

};

if (sideweapons>0 && weaponTypes>0) then
{

	// Non-US west SMGs

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["ACE_UMP45", 20];
		_vec AddWeaponCargo ["UZI_EP1", 20];
		_vec AddWeaponCargo ["UZI_SD_EP1", 20];
	};
	_vec addMagazineCargo ["ACE_25Rnd_1143x23_B_UMP45", 80];
	_vec addMagazineCargo ["30Rnd_9x19_UZI", 60]; //EP1
	_vec addMagazineCargo ["30Rnd_9x19_UZI_SD", 60]; //EP1, may need to remove

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["ACE_UMP45_SD", 20];
		};
	};

};

if (sideweapons>0 && weaponTypes>1) then
{

	// Non-US west shotguns

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["ACE_SPAS12", 20];	
	};
	_vec addMagazineCargo ["ACE_8Rnd_12Ga_Slug", 80];
	_vec addMagazineCargo ["ACE_8Rnd_12Ga_Buck00", 80];

};

if (weaponTypes>3) then
{

	// US heavy weaponTypes

	if (!_ammoOnly) then
	{			
		_vec AddWeaponCargo ["M249", 20];
		//_vec AddWeaponCargo ["ACE_M249Para", 20];

		_vec addWeaponCargo ["M249_EP1", 20];

		if (nightSights>1) then
		{
			_vec addWeaponCargo ["M249_TWS_EP1", 20];
		};

		if (scopes>0) then
		{
			_vec addWeaponCargo ["M249_M145_EP1", 20];

			//_vec AddWeaponCargo ["ACE_M249Para_M145", 20];
		};

		if (caliber>4) then
		{
			if (sfweapons>0) then
			{
				_vec AddWeaponCargo ["M14_EP1", 20];
				if (scopes>0) then
				{
					_vec AddWeaponCargo ["ACE_M14_ACOG", 20];
				};
				if (nightSights>0 && futureweapons>0 && scopes>0) then
				{
					_vec AddWeaponCargo ["M110_NVG_EP1", 20];
				};
				if (nightSights>1 && futureweapons>0 && scopes>0) then
				{
					_vec AddWeaponCargo ["M110_TWS_EP1", 20];
				};
			};
			if (_scweaponTypes>1) then
			{
				_vec AddWeaponCargo ["ACE_M110_SD", 20];
			};
			if (scopes>0) then
			{
				_vec AddWeaponCargo ["DMR", 20];
				if (futureweapons>0 && sfweapons>0) then
				{
					_vec AddWeaponCargo ["ACE_M110", 20];
				};
			};
		};
	};
	if (scopes>0 && caliber>4) then
	{
		_vec addMagazineCargo ["20Rnd_762x51_DMR", 80];
	};

	_vec addmagazinecargo ["200Rnd_556x45_M249", 50];

	if (sideweapons>0 && scopes>0) then
	{
		// non-US west heavy weaponTypes

		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["MG36_camo", 20]; //EP1
			_vec AddWeaponCargo ["MG36", 20];
			//_vec AddWeaponCargo ["ACE_MG36A1", 20];
			//_vec AddWeaponCargo ["ACE_MG36A1_D", 20];
			if (caliber>4) then
			{
				_vec AddWeaponCargo ["ACE_G3SG1", 20];
			};
		};
		if (hiCapMags>1) then
		{
			_vec addMagazineCargo ["100Rnd_556x45_BetaCMag", 50];
		};
	};

	if (futureweapons>0 && caliber>4 && sfweapons>0) then
	{
		if (!_ammoOnly) then
		{
			if (scopes>0) then
			{
				_vec AddWeaponCargo ["SCAR_H_LNG_Sniper", 20];
			};
		};

		if (sfweapons>1) then
		{
			if (!_ammoOnly) then
			{
				if (nightSights>1) then
				{
					_vec AddWeaponCargo ["SCAR_H_STD_TWS_SD", 20];
				};
				if (scopes>0) then
				{
					_vec AddWeaponCargo ["SCAR_H_LNG_Sniper_SD", 20];
				};
			};
		};
	};
};

if (weaponTypes>4 && caliber>4) then
{

	// US very heavy weaponTypes

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["M240", 20];
		_vec AddWeaponCargo ["Mk_48", 20];
		_vec AddWeaponCargo ["ACE_M60", 20];

		_vec addWeaponCargo ["M60A4_EP1", 20];
		_vec addWeaponCargo ["Mk_48_DES_EP1", 20];

		if (scopes>0) then
		{
			_vec addWeaponCargo ["m240_scoped_EP1", 20];

			if (caliber>5) then
			{
				_vec AddWeaponCargo ["M107", 20];

				if (sfweapons>0) then
				{
					_vec AddWeaponCargo ["ACE_AS50", 20];
					_vec AddWeaponCargo ["ACE_TAC50", 20];
				};
			};

			if (caliber>6) then
			{
				_vec AddWeaponCargo ["ACE_M109", 20];
			};

		};

		if (nightSights>1) then
		{
			_vec addWeaponCargo ["m107_TWS_EP1", 20];
		};
	};

	_vec addmagazinecargo ["100Rnd_762x51_M240", 80];

	if (scopes>0 || nightSights>1) then
	{
		_vec addmagazinecargo ["10Rnd_127x99_m107", 80];
	};

	if (scopes>0) then
	{
		if (caliber>6) then
		{
			_vec addMagazineCargo ["ACE_5Rnd_25x59_HEDP_Barrett", 80];
		};
		if (caliber>5 && sfweapons>0) then
		{
			_vec addMagazineCargo ["ACE_5Rnd_127x99_B_TAC50", 80];
			_vec addMagazineCargo ["ACE_5Rnd_127x99_S_TAC50", 80];
			_vec addMagazineCargo ["ACE_5Rnd_127x99_T_TAC50", 80];
		};
	};

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{

			if (caliber>5) then
			{
				_vec AddWeaponCargo ["ACE_TAC50_SD", 20];
			};
		};
	};
};


//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_Green", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_Brown", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_Wood", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_ACU", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_WMARPAT", 20];
//_vec AddWeaponCargo ["ACE_Rucksack_MOLLE_DMARPAT", 20];

if (csw>0) then
{
	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["ACE_M2HBProxy", 10];
		_vec addWeaponCargo ["ACE_M3TripodProxy", 10];
	};
	_vec addMagazineCargo ["ACE_M2_CSWDM", 40];
};
if (csw>1) then
{
	if (!_ammoOnly) then
	{
		if (explosives>0) then
		{
			_vec addWeaponCargo ["ACE_MK19MOD3Proxy", 10];
			_vec addWeaponCargo ["ACE_M3TripodProxy", 10];
		};
		if (launchers>2) then
		{
			_vec addWeaponCargo ["ACE_M220Proxy", 10];
			_vec addWeaponCargo ["ACE_M220TripodProxy", 10];
		};
	};
	if (explosives>0) then
	{
		_vec addMagazineCargo ["ACE_MK19_CSWDM", 30];
	};
	if (launchers>2) then
	{
		_vec addMagazineCargo ["ACE_TOW_CSWDM", 30];
	};
};

};

if (_ammoOnly || _side == EAST || sideweapons>1) then
{

if (launchers>2) then
{

	// RU heavy launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["STRELA",20];
		_vec addWeaponCargo ["Igla",20];
		_vec addWeaponCargo ["MetisLauncher",20];
		_vec addWeaponCargo ["ACE_RPG29",20];
	};
	if (explosives>4) then
	{
		_vec addMagazineCargo ["ACE_AT13TB",20];
	};
	_vec addMagazineCargo ["STRELA",20];
	_vec addMagazineCargo ["Igla", 20];
	_vec addMagazineCargo ["AT13", 20];

	_vec addMagazineCargo ["ACE_RPG29_PG29", 40];

};

if (launchers>1) then
{

	// RU medium launchers

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["RPG7V",20];
		_vec addWeaponCargo ["ACE_RPG7V_PGO7",20];
		_vec AddWeaponCargo ["ACE_RPG27", 40];
		if (explosives>4) then
		{
			_vec addWeaponCargo ["ACE_RPOM",20];
			_vec addWeaponCargo ["ACE_RMG",20];
			_vec addWeaponCargo ["ACE_RSHG1",20];
		};
	};

	_vec addMagazineCargo ["PG7V",40];
	_vec addMagazineCargo ["PG7VR",40];
	_vec addMagazineCargo ["PG7VL",40];	

};

if (launchers>0) then
{

	// RU light launchers

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["RPG18", 40];
		_vec AddWeaponCargo ["ACE_RPG22", 40];
	};

};

if (explosives>0) then
{

	// RU light explosives

	_vec addMagazineCargo ["HandGrenade",80];
	_vec addMagazineCargo ["HandGrenade_East",80];

};

if (explosives>4) then
{

	// RU heavy explosives

	_vec addMagazineCargo ["OG7",60];

	_vec addMagazineCargo ["ACE_RPG29_TBG29", 40];
	_vec addMagazineCargo ["ACE_TBG7V", 40];

};

// RU pistols

if (!_ammoOnly) then
{
	_vec AddWeaponCargo ["Makarov", 20];
	_vec AddWeaponCargo ["ACE_TT", 20];
	_vec AddWeaponCargo ["ACE_APS", 20]; //test
};
_vec addmagazinecargo ["8Rnd_9x18_Makarov", 60];
_vec addMagazineCargo ["ACE_8Rnd_762x25_B_Tokarev", 60];
_vec addMagazineCargo ["ACE_20Rnd_9x18_APS", 60]; //test

if (sfweapons>1) then
{
	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["MakarovSD", 20];

		_vec AddWeaponCargo ["ACE_APSB", 20]; //test
	};

	_vec addmagazinecargo ["8Rnd_9x18_MakarovSD", 80];

	_vec addMagazineCargo ["ACE_20Rnd_9x18_APSB", 80]; //test
};

if (weaponTypes>0) then
{

	// RU SMGs

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["Bizon", 20];
		//_vec AddWeaponCargo ["ACE_Scorpion", 20];
		_vec addWeaponCargo ["Sa61_EP1", 20];
	};
	_vec addMagazineCargo ["64Rnd_9x19_Bizon", 80];

	//_vec addMagazineCargo ["ACE_20Rnd_765x17_vz61", 80];
	_vec addMagazineCargo ["20Rnd_B_765x17_Ball", 60]; //EP1
	_vec addMagazineCargo ["10Rnd_B_765x17_Ball", 60]; //EP1

	if (sfweapons>1) then
	{
		_vec addMagazineCargo ["64Rnd_9x19_SD_Bizon", 80];
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["bizon_silenced", 20];
		};
	};

};

if (weaponTypes>1) then
{

	// RU Shotguns

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["Saiga12K", 20];
	};
	_vec addMagazineCargo ["8Rnd_B_Saiga12_74Slug", 80];

};

if (weaponTypes>2 && caliber>2) then
{

	// RU rifles

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["AK_107_kobra", 20];
		_vec AddWeaponCargo ["AK_107_GL_kobra", 20];
		_vec AddWeaponCargo ["AK_74", 20];
		_vec AddWeaponCargo ["AK_74_GL", 20];	

		_vec addWeaponCargo ["AK_74_GL_kobra", 20]; //EP1
		_vec addWeaponCargo ["AKS_74", 20]; //EP1

		_vec AddWeaponCargo ["AKS_74_U", 20];
		_vec AddWeaponCargo ["AKS_74_kobra", 20];

		_vec addWeaponCargo ["ACE_AK105_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AK74M", 20];
		_vec addWeaponCargo ["ACE_AK74M_GL", 20];
		_vec addWeaponCargo ["ACE_AK74M_GL_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AK74M_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AKS74_GP25", 20];
		_vec addWeaponCargo ["ACE_AKS74P", 20];
		_vec addWeaponCargo ["ACE_AKS74P_GL", 20];
		_vec addWeaponCargo ["ACE_AKS74P_GL_KOBRA", 20];
		_vec addWeaponCargo ["ACE_AKS74P_KOBRA", 20];

		_vec AddWeaponCargo ["RPK_74", 20];

		_vec addWeaponCargo ["ACE_RPK74M", 20];

		if (caliber>3) then
		{
			_vec AddWeaponCargo ["ACE_SKS", 20];
			_vec AddWeaponCargo ["AK_47_M", 20];

			_vec addWeaponCargo ["ACE_AKM", 20];
			_vec addWeaponCargo ["ACE_AKMS", 20];
			_vec addWeaponCargo ["ACE_AKM_GL", 20];

			_vec addWeaponCargo ["ACE_AK103", 20];
			_vec addWeaponCargo ["ACE_AK103_GL", 20];
			_vec addWeaponCargo ["ACE_AK103_GL_KOBRA", 20];
			_vec addWeaponCargo ["ACE_AK103_KOBRA", 20];

			_vec addWeaponCargo ["ACE_AK104", 20];
			_vec addWeaponCargo ["ACE_AK104_KOBRA", 20];

			_vec addWeaponCargo ["ACE_RPK", 20];

			if (sfweapons>0) then
			{
				_vec addWeaponCargo ["ACE_gr1", 20];
			};

			if (scopes>0) then
			{
				_vec addWeaponCargo ["ACE_AK103_1P29", 20];
				_vec addWeaponCargo ["ACE_AK103_GL_1P29", 20];
				_vec addWeaponCargo ["ACE_AK103_PSO", 20];
				_vec addWeaponCargo ["ACE_AK103_GL_PSO", 20];

				_vec addWeaponCargo ["ACE_AK104_1P29", 20];
				_vec addWeaponCargo ["ACE_AK104_PSO", 20];

				if (sfweapons>0) then
				{
					_vec addWeaponCargo ["ACE_gr1sp", 20];
					_vec addWeaponCargo ["ACE_gr1sdsp", 20];
					_vec addWeaponCargo ["ACE_oc14sdsp", 20];
				};
			};
			if (sfweapons>1) then
			{
				_vec addWeaponCargo ["ACE_gr1sd", 20];
				_vec addWeaponCargo ["ACE_AKMS_SD", 20];
			};
		};

		if (caliber>4) then
		{
			_vec addWeaponCargo ["ACE_oc14", 20];
			_vec addWeaponCargo ["ACE_oc14gl", 20];

			if (scopes>0) then
			{
				_vec AddWeaponCargo ["SVD", 20];
				_vec AddWeaponCargo ["SVD_CAMO", 20];
				_vec addWeaponCargo ["SVD_des_EP1", 20];
				_vec addWeaponCargo ["ACE_SVD_Bipod", 20];

				if (nightSights>0) then
				{
					_vec addWeaponCargo ["SVD_NSPU_EP1", 20];
				};

				if (sfweapons>0) then
				{
					_vec addWeaponCargo ["ACE_oc14glsp", 20];
					_vec addWeaponCargo ["ACE_oc14sp", 20];
				};
			};
			if (sfweapons>1) then
			{
				_vec addWeaponCargo ["ACE_oc14sd", 20];
			};
		};

		if (scopes>0) then
		{
			_vec AddWeaponCargo ["AK_107_GL_pso", 20];
			_vec AddWeaponCargo ["AK_107_pso", 20];
			_vec AddWeaponCargo ["AKS_74_PSO", 20];

			_vec addWeaponCargo ["ACE_AK105_PSO", 20];
			_vec addWeaponCargo ["ACE_AK105_1P29", 20];

			_vec addWeaponCargo ["ACE_AK74M_PSO", 20];
			_vec addWeaponCargo ["ACE_AK74M_1P29", 20];
			_vec addWeaponCargo ["ACE_AK74M_GL_1P29", 20];
			_vec addWeaponCargo ["ACE_AK74M_GL_PSO", 20];
			_vec addWeaponCargo ["ACE_AKS74P_1P29", 20];
			_vec addWeaponCargo ["ACE_AKS74P_PSO", 20];
			_vec addWeaponCargo ["ACE_AKS74P_GL_PSO", 20];
			_vec addWeaponCargo ["ACE_AKS74P_GL_1P29", 20];

			_vec addWeaponCargo ["ACE_RPK74M_1P29", 20];
		};

		if (nightSights>0) then
		{
			_vec addWeaponCargo ["AKS_74_NSPU", 20]; //EP1
		};
		if (nightSights>1) then
		{
			_vec addWeaponCargo ["AKS_74_GOSHAWK", 20]; //EP1
		};
	};

	if (caliber>3) then
	{
		_vec addMagazineCargo ["ACE_10Rnd_762x39_B_SKS", 80];
		_vec addMagazineCargo ["30Rnd_762x39_AK47",80];

		_vec addMagazineCargo ["ACE_40Rnd_762x39_B_AK47", 80];
	};

	if (caliber>4) then
	{
		if (scopes>0) then
		{
			_vec addmagazinecargo ["10Rnd_762x54_SVD", 80];
		};
		if (sfweapons>0) then
		{
			_vec addMagazineCargo ["ACE_20Rnd_9x39_B_OC14", 80];
		};
	};

	if (explosives>0) then
	{
		_vec addMagazineCargo ["1Rnd_HE_GP25", 60];
	};
	if (lessThanLethal>0) then
	{
		_vec addMagazineCargo ["ACE_1Rnd_CS_GP25", 50];
	};
	if (sfWeapons>1) then
	{
		_vec addmagazinecargo ["ACE_30Rnd_762x39_SD_AK47", 80];
		if (hiCapMags>1) then
		{
			_vec addmagazinecargo ["ACE_75Rnd_762x39_SD_AK47", 80];
		};
	};
	_vec addmagazinecargo ["30Rnd_545x39_AK", 80];
	_vec addMagazineCargo ["FlareWhite_GP25", 60];
	_vec addMagazineCargo ["FlareGreen_GP25", 40];
	_vec addMagazineCargo ["FlareRed_GP25", 40];
	_vec addMagazineCargo ["FlareYellow_GP25", 40];
	_vec addMagazineCargo ["1Rnd_SMOKE_GP25", 50];
	_vec addMagazineCargo ["1Rnd_SMOKERED_GP25", 35];
	_vec addMagazineCargo ["1Rnd_SMOKEGREEN_GP25", 35];
	_vec addMagazineCargo ["1Rnd_SMOKEYELLOW_GP25", 35];

	if (sfweapons>1) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["AKS_74_UN_kobra", 20];
			_vec AddWeaponCargo ["ACE_AKS74_UN", 20];

			if (caliber>4) then
			{
				if (scopes>0) then
				{
					_vec AddWeaponCargo ["VSS_vintorez", 20];
					_vec addWeaponCargo ["ACE_VAL_PSO", 20];
				};

				_vec addWeaponCargo ["ACE_VAL", 20];
				_vec addWeaponCargo ["ACE_VAL_KOBRA", 20];
			};
		};

		_vec addMagazineCargo ["30Rnd_545x39_AKSD", 80];
		if (caliber>4) then
		{
			_vec addMagazineCargo ["20Rnd_9x39_SP5_VSS", 80];
		};
	};

};

if (weaponTypes>2 && sideweapons>0 && caliber>4) then
{
	// non-RU east weapons

	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["Sa58P_EP1", 20];
		_vec addWeaponCargo ["Sa58V_CCO_EP1", 20];
		_vec addWeaponCargo ["Sa58V_EP1", 20];
		if (scopes>0) then
		{
			_vec addWeaponCargo ["Sa58V_RCO_EP1", 20];
		};
	};

	_vec addMagazineCargo ["30Rnd_762x39_SA58", 80]; // may need to be removed
};

if (weaponTypes>3) then
{
	// RU heavy weapons

	if (caliber>4) then
	{
		if (hiCapMags>0) then
		{
			_vec addMagazineCargo ["75Rnd_545x39_RPK", 80];
		};
		if (hiCapMags>1) then
		{
			_vec addMagazineCargo ["ACE_75Rnd_762x39_B_AK47", 80];
		};		
	};
};

if (weaponTypes>4 && caliber>4) then
{
	// RU very heavy weaponTypes

	if (!_ammoOnly) then
	{
		_vec AddWeaponCargo ["PK", 20];
		if (scopes>0) then
		{
			_vec AddWeaponCargo ["Pecheneg", 20];
		};
	};
	_vec addmagazinecargo ["100Rnd_762x54_PK", 80];

	if (scopes>0 && caliber>5) then
	{
		if (!_ammoOnly) then
		{
			_vec AddWeaponCargo ["KSVK", 20];
		};
		_vec addmagazinecargo ["5Rnd_127x108_KSVK", 80];
	};
};

if (csw>0) then
{
	if (!_ammoOnly) then
	{
		_vec addWeaponCargo ["ACE_KORDProxy", 10];
		_vec addWeaponCargo ["ACE_6T7TripodProxy", 10];
		_vec addWeaponCargo ["ACE_DSHKMTripodProxy", 10];
		_vec addWeaponCargo ["ACE_DSHKMProxy", 10];
	};
	_vec addMagazineCargo ["ACE_DSHKM_CSWDM", 40];
};
if (csw>1) then
{
	if (!_ammoOnly) then
	{
		if (explosives>0) then
		{
			_vec addWeaponCargo ["ACE_AGS30Proxy", 10];
			_vec addWeaponCargo ["ACE_AGS30TripodProxy", 10];
		};
		if (launchers>2) then
		{
			_vec addWeaponCargo ["ACE_KonkursTripodProxy", 10];
		};
	};
	if (explosives>0) then
	{
		_vec addMagazineCargo ["ACE_AGS30_CSWDM", 30];
	};
	if (launchers>2) then
	{
		_vec addMagazineCargo ["ACE_Konkurs_CSWDM", 30];
	};
};

if (lessThanLethal>0) then
{
	_vec addMagazineCargo ["ACE_RG60A", 60];
};

_vec addMagazineCargo ["ACE_RDG2", 50];
_vec addMagazineCargo ["ACE_RDGM", 50];


  _vec AddWeaponCargo ["ACE_Rucksack_RD90", 20];
  _vec AddWeaponCargo ["ACE_Rucksack_RD91", 20];
  _vec AddWeaponCargo ["ACE_Rucksack_RD92", 20];
  _vec AddWeaponCargo ["ACE_Rucksack_RD54", 20];
  _vec AddWeaponCargo ["ACE_Rucksack_RD99", 20];
  _vec AddWeaponCargo ["ACE_Rucksack_EAST", 20];

};

// revolver
if (sideweapons>1) then
{
if (!_ammoOnly) then
{
	_vec addWeaponCargo ["revolver_EP1", 20];
	_vec addWeaponCargo ["revolver_gold_EP1", 20];
};

_vec addMagazineCargo ["6Rnd_45ACP", 60]; //EP1
};

// global items

if (nightVision>0) then
{
_vec addWeaponCargo ["NVGoggles",20];
};
if (nightVision>1) then
{
_vec addWeaponCargo ["ACE_MX2A",20];
};

if (!_ammoOnly) then
{
_vec AddWeaponCargo ["ACE_Flaregun", 20];
};
_vec addMagazineCargo ["ACE_SSWhite_FG", 60];
_vec addMagazineCargo ["ACE_SSRed_FG", 40];
_vec addMagazineCargo ["ACE_SSGreen_FG", 40];
_vec addMagazineCargo ["ACE_SSYellow_FG", 40];

_vec addWeaponCargo ["Laserdesignator",20];
_vec addMagazineCargo ["Laserbatteries",30];
_vec addWeaponCargo ["Binocular",20];
_vec addWeaponCargo ["Binocular_Vector", 20];
_vec addWeaponCargo ["ACE_YardAge450", 20];
_vec addWeaponCargo ["itemGPS",25];
_vec addMagazineCargo ["SmokeShell",50];
_vec addMagazineCargo ["SmokeShellRed",30];
_vec addMagazineCargo ["SmokeShellGreen",30];
_vec addMagazineCargo ["SmokeShellYellow",30];
_vec addMagazineCargo ["SmokeShellOrange",30];
_vec addMagazineCargo ["SmokeShellPurple",30];
_vec addMagazineCargo ["SmokeShellBlue",30];
_vec addWeaponCargo ["ACE_Earplugs",20];
_vec addWeaponCargo ["ACE_GlassesRoundGlasses",20];
_vec addWeaponCargo ["ACE_GlassesSunglasses",20];
_vec addWeaponCargo ["ACE_GlassesTactical",20];
_vec addWeaponCargo ["ACE_GlassesBlackSun",20];
_vec addWeaponCargo ["ACE_GlassesBlueSun",20];
_vec addWeaponCargo ["ACE_GlassesRedSun",20];
_vec addWeaponCargo ["ACE_GlassesGreenSun",20];
_vec addWeaponCargo ["ACE_GlassesLHD_glasses",20];
_vec addWeaponCargo ["ACE_GlassesGasMask_US",20];
_vec addWeaponCargo ["ACE_GlassesGasMask_RU",20];
_vec addWeaponCargo ["ACE_GlassesBalaklava",20];
_vec addWeaponCargo ["ACE_GlassesBalaklavaGray",20];
_vec addWeaponCargo ["ACE_GlassesBalaklavaOlive",20];
_vec addWeaponCargo ["ACE_SpottingScope", 20];
_vec addWeaponCargo ["ACE_WireCutter", 20];
_vec addWeaponCargo ["ACE_Stretcher", 20];
_vec addMagazineCargo ["ACE_Rope_M5", 10];

if (explosives>0) then
{
_vec addMagazineCargo ["ACE_C4_M", 60];
};
if (explosives>1) then
{
// satchel
_vec addMagazineCargo ["pipebomb",60];
};
if (explosives>2) then
{
// mine
_vec addMagazineCargo ["mine",60];
_vec addMagazineCargo ["MineE", 60];
};
if (explosives>3) then
{

// global heavy explosives
_vec addMagazineCargo ["ACE_M2SLAM_M", 60];
_vec addMagazineCargo ["ACE_Claymore_M", 60];
_vec addMagazineCargo ["ACE_BBetty_M", 60];
_vec addMagazineCargo ["ACE_M34", 60];
_vec addMagazineCargo ["ACE_M4SLAM_M", 60];
_vec addMagazineCargo ["ACE_TripFlare_M", 60];
_vec addMagazineCargo ["ACE_Pomz_M", 60];

};

if (lessThanLethal>0) then
{
_vec addMagazineCargo ["ACE_M84", 60];
_vec addMagazineCargo ["ACE_M7A3", 60];
};

if (sfweapons>0) then
{
_vec addMagazineCargo ["ACE_Rope_M_50", 10];
_vec addMagazineCargo ["ACE_Rope_M_60", 10];
   _vec addMagazineCargo ["ACE_Rope_M_90", 10];
_vec addMagazineCargo ["ACE_Rope_M_120", 10];
};


sleep 300;

};

// _vec addMagazineCargo ["", 80];
// _vec addWeaponCargo ["",20];

Not sure what the problem is. I see batteries in the script and I also see the SMAW ammo.

Share this post


Link to post
Share on other sites

You set explosives to 4, therefore all the crazy explosives stuff are missing. Set to 5 to get all of them.

I never knew I needed ACE_Battery_Rangefinder, still not 100% sure how batteries work in ACE (what is needed for what), but I'll definitely add those just in case (feel free to add them yourself for now). Editing original script to also include missing battery types and range finders. Will test later to see if those are actually needed or redundant.

Of course keep in mind that if you really give all the crazy stuff, expect to see people running around with an MG and SMAW with 4-5 explosive rockets.

Another thing is if you want fast roping you may want to remove the comments at the start of the lines that add them to the box.

Edited by galzohar

Share this post


Link to post
Share on other sites
You set explosives to 4, therefore all the crazy explosives stuff are missing. Set to 5 to get all of them.

I never knew I needed ACE_Battery_Rangefinder, still not 100% sure how batteries work in ACE (what is needed for what), but I'll definitely add those just in case (feel free to add them yourself for now). Editing original script to also include missing battery types and range finders. Will test later to see if those are actually needed or redundant.

Of course keep in mind that if you really give all the crazy stuff, expect to see people running around with an MG and SMAW with 4-5 explosive rockets.

Another thing is if you want fast roping you may want to remove the comments at the start of the lines that add them to the box.

After much tinkering to your script, I ended up doing something that broke it and caused the ammo crate to only fill with the ammo it should normally have.

I went and made a new ammofill script which I'm planning on adding the variables like yours and will post in the future. In the meantime, here's the script I'm using now which contains all current ACE/BAF/PMC weapons and the AAW mod's weapons:

canSave=true;
_this addAction ["Save Loadout" ,"scripts\saveLoadout.sqf", [] ,1,false,true,"", "canSave"];

_this addAction ["Load Saved Loadout" ,"scripts\loadloadout.sqf", [] ,1,false,true,"", "true"];

while {alive _this} do
{
clearweaponcargo _this;
clearmagazinecargo _this;

// AR
// Weapons
_this addWeaponCargo ["ACE_M249Para", 10];

_this addWeaponCargo ["ACE_M249Para_M145", 10];

_this addWeaponCargo ["ACE_MG36A1", 10];

_this addWeaponCargo ["ACE_MG36A1_D", 10];

_this addWeaponCargo ["ACE_RPK", 10];

_this addWeaponCargo ["ACE_RPK74M", 10];

_this addWeaponCargo ["ACE_RPK74M_1P29", 10];

_this addWeaponCargo ["BAF_L110A1_Aim", 10];

_this addWeaponCargo ["M249", 10];

_this addWeaponCargo ["M249_EP1", 10];

_this addWeaponCargo ["M249_m145_EP1", 10];

_this addWeaponCargo ["M249_TWS_EP1", 10];

_this addWeaponCargo ["m8_SAW", 10];

_this addWeaponCargo ["MG36", 10];

_this addWeaponCargo ["MG36_camo", 10];

_this addWeaponCargo ["RPK_74", 10];

// Magazines
_this addMagazineCargo ["100Rnd_556x45_BetaCMag", 32];

_this addMagazineCargo ["100Rnd_556x45_M249", 32];

_this addMagazineCargo ["200Rnd_556x45_L110A1", 32];

_this addMagazineCargo ["200Rnd_556x45_M249", 32];

_this addMagazineCargo ["20Rnd_556x45_Stanag", 32];

_this addMagazineCargo ["30Rnd_556x45_Stanag", 32];

_this addMagazineCargo ["30Rnd_556x45_StanagSD", 32];

_this addMagazineCargo ["ACE_100Rnd_556x45_T_M249", 32];

_this addMagazineCargo ["ACE_200Rnd_556x45_T_M249", 32];

_this addMagazineCargo ["ACE_30Rnd_556x45_SB_Stanag", 32];

_this addMagazineCargo ["ACE_30Rnd_556x45_T_Stanag", 32];

_this addMagazineCargo ["30Rnd_556x45_G36", 32];

_this addMagazineCargo ["30Rnd_556x45_G36SD", 32];

_this addMagazineCargo ["ACE_30Rnd_556x45_T_G36", 32];

_this addMagazineCargo ["30Rnd_762x39_AK47", 32];

_this addMagazineCargo ["ACE_30Rnd_762x39_T_AK47", 32];

_this addMagazineCargo ["ACE_40Rnd_762x39_B_AK47", 32];

_this addMagazineCargo ["ACE_40Rnd_762x39_T_AK47", 32];

_this addMagazineCargo ["ACE_75Rnd_762x39_B_AK47", 32];

_this addMagazineCargo ["30Rnd_545x39_AK", 32];

_this addMagazineCargo ["30Rnd_545x39_AKSD", 32];

_this addMagazineCargo ["75Rnd_545x39_RPK", 32];

_this addMagazineCargo ["ACE_30Rnd_545x39_T_AK", 32];

_this addMagazineCargo ["ACE_45Rnd_545x39_B_AK", 32];

_this addMagazineCargo ["ACE_75Rnd_545x39_T_RPK", 32];

// Equip
// Weapons
_this addWeaponCargo ["ACE_Laserdesignator_D", 20];

_this addWeaponCargo ["ACE_MX2A", 20];

_this addWeaponCargo ["ACE_Rangefinder_OD", 20];

_this addWeaponCargo ["ACE_YardAge450", 20];

_this addWeaponCargo ["Binocular", 20];

_this addWeaponCargo ["Binocular_Vector", 20];

_this addWeaponCargo ["Laserdesignator", 20];

_this addWeaponCargo ["NVGoggles", 20];

// Magazines
_this addMagazineCargo ["ACE_Battery_Rangefinder", 32];

_this addMagazineCargo ["Laserbatteries", 32];

// Item
// Weapons
_this addWeaponCargo ["ACE_DAGR", 20];

_this addWeaponCargo ["ACE_Earplugs", 20];

_this addWeaponCargo ["ACE_GlassesBalaklava", 20];

_this addWeaponCargo ["ACE_GlassesBalaklavaGray", 20];

_this addWeaponCargo ["ACE_GlassesBalaklavaOlive", 20];

_this addWeaponCargo ["ACE_GlassesGasMask_RU", 20];

_this addWeaponCargo ["ACE_GlassesGasMask_US", 20];

_this addWeaponCargo ["ACE_GlassesLHD_glasses", 20];

_this addWeaponCargo ["ACE_GlassesSunglasses", 20];

_this addWeaponCargo ["ACE_GlassesTactical", 20];

_this addWeaponCargo ["ACE_HuntIR_monitor", 20];

_this addWeaponCargo ["ACE_Kestrel4500", 20];

_this addWeaponCargo ["ACE_KeyCuffs", 20];

_this addWeaponCargo ["ACE_Map", 20];

_this addWeaponCargo ["ACE_Map_Tools", 20];

_this addWeaponCargo ["ACE_SpottingScope", 20];

_this addWeaponCargo ["ACE_WireCutter", 20];

_this addWeaponCargo ["ItemCompass", 20];

_this addWeaponCargo ["ItemGPS", 20];

_this addWeaponCargo ["ItemMap", 20];

_this addWeaponCargo ["ItemRadio", 20];

_this addWeaponCargo ["ItemWatch", 20];

// Magazines

// Launcher
// Weapons
_this addWeaponCargo ["ACE_CarlGustav_M3", 20];

_this addWeaponCargo ["ACE_Javelin_Direct", 20];

_this addWeaponCargo ["ACE_JerryCan_Dummy_15", 20];

_this addWeaponCargo ["ACE_M136_CSRS", 20];

_this addWeaponCargo ["ACE_M72", 20];

_this addWeaponCargo ["ACE_M72A2", 20];

_this addWeaponCargo ["ACE_ParachutePack", 20];

_this addWeaponCargo ["ACE_ParachuteRoundPack", 20];

_this addWeaponCargo ["ACE_RMG", 20];

_this addWeaponCargo ["ACE_RPG22", 20];

_this addWeaponCargo ["ACE_RPG27", 20];

_this addWeaponCargo ["ACE_RPG29", 20];

_this addWeaponCargo ["ACE_RPG7V_PGO7", 20];

_this addWeaponCargo ["ACE_RPOM", 20];

_this addWeaponCargo ["ACE_RSHG1", 20];

_this addWeaponCargo ["BAF_NLAW_Launcher", 20];

_this addWeaponCargo ["Igla", 20];

_this addWeaponCargo ["Javelin", 20];

_this addWeaponCargo ["M136", 20];

_this addWeaponCargo ["M47Launcher_EP1", 20];

_this addWeaponCargo ["MAAWS", 20];

_this addWeaponCargo ["MetisLauncher", 20];

_this addWeaponCargo ["RPG18", 20];

_this addWeaponCargo ["RPG7V", 20];

_this addWeaponCargo ["SMAW", 20];

_this addWeaponCargo ["Stinger", 20];

_this addWeaponCargo ["Strela", 20];

// Magazines
_this addMagazineCargo ["ACE_MAAWS_HE", 32];

_this addMagazineCargo ["MAAWS_HEAT", 32];

_this addMagazineCargo ["MAAWS_HEDP", 32];

_this addMagazineCargo ["ACE_Javelin_Direct", 32];

_this addMagazineCargo ["Javelin", 32];

_this addMagazineCargo ["ACE_RPG29_PG29", 32];

_this addMagazineCargo ["ACE_RPG29_TBG29", 32];

_this addMagazineCargo ["ACE_PG7VM", 32];

_this addMagazineCargo ["ACE_TBG7V", 32];

_this addMagazineCargo ["OG7", 32];

_this addMagazineCargo ["PG7V", 32];

_this addMagazineCargo ["PG7VL", 32];

_this addMagazineCargo ["PG7VR", 32];

_this addMagazineCargo ["Igla", 32];

_this addMagazineCargo ["Dragon_EP1", 32];

_this addMagazineCargo ["ACE_AT13TB", 32];

_this addMagazineCargo ["AT13", 32];

_this addMagazineCargo ["ACE_SMAW_NE", 32];

_this addMagazineCargo ["SMAW_HEAA", 32];

_this addMagazineCargo ["SMAW_HEDP", 32];

_this addMagazineCargo ["ACE_SMAW_Spotting", 32];

_this addMagazineCargo ["Stinger", 32];

_this addMagazineCargo ["Strela", 32];

// MG
// Weapons
_this addWeaponCargo ["ACE_BAF_L7A2_GPMG", 20];

_this addWeaponCargo ["ACE_M240G_M145", 20];

_this addWeaponCargo ["ACE_M60", 20];

_this addWeaponCargo ["BAF_L7A2_GPMG", 20];

_this addWeaponCargo ["M240", 20];

_this addWeaponCargo ["m240_scoped_EP1", 20];

_this addWeaponCargo ["M60A4_EP1", 20];

_this addWeaponCargo ["Mk_48", 20];

_this addWeaponCargo ["Mk_48_DES_EP1", 20];

_this addWeaponCargo ["Pecheneg", 20];

_this addWeaponCargo ["PK", 20];

// Magazines
_this addMagazineCargo ["100Rnd_762x51_M240", 32];

_this addMagazineCargo ["100Rnd_762x54_PK", 32];

// Pistol
// Weapons
_this addWeaponCargo ["ACE_APS", 20];

_this addWeaponCargo ["ACE_APSB", 20];

_this addWeaponCargo ["ACE_Flaregun", 20];

_this addWeaponCargo ["ACE_Glock17", 20];

_this addWeaponCargo ["ACE_Glock18", 20];

_this addWeaponCargo ["ACE_Knicklicht_Proxy", 20];

_this addWeaponCargo ["ACE_L9A1", 20];

_this addWeaponCargo ["ACE_P226", 20];

_this addWeaponCargo ["ACE_P8", 20];

_this addWeaponCargo ["ACE_Scorpion", 20];

_this addWeaponCargo ["ACE_TT", 20];

_this addWeaponCargo ["ACE_USP", 20];

_this addWeaponCargo ["ACE_USPSD", 20];

_this addWeaponCargo ["Colt1911", 20];

_this addWeaponCargo ["glock17_EP1", 20];

_this addWeaponCargo ["M9", 20];

_this addWeaponCargo ["M9SD", 20];

_this addWeaponCargo ["Makarov", 20];

_this addWeaponCargo ["MakarovSD", 20];

_this addWeaponCargo ["revolver_EP1", 20];

_this addWeaponCargo ["revolver_gold_EP1", 20];

_this addWeaponCargo ["Sa61_EP1", 20];

_this addWeaponCargo ["UZI_EP1", 20];

_this addWeaponCargo ["UZI_SD_EP1", 20];

// Magazines
_this addMagazineCargo ["ACE_20Rnd_9x18_APS", 32];

_this addMagazineCargo ["ACE_20Rnd_9x18_APSB", 32];

_this addMagazineCargo ["ACE_SSGreen_FG", 32];

_this addMagazineCargo ["ACE_SSRed_FG", 32];

_this addMagazineCargo ["ACE_SSWhite_FG", 32];

_this addMagazineCargo ["ACE_SSYellow_FG", 32];

_this addMagazineCargo ["17Rnd_9x19_glock17", 32];

_this addMagazineCargo ["ACE_33Rnd_9x19_G18", 32];

_this addMagazineCargo ["ACE_13Rnd_9x19_L9A1", 32];

_this addMagazineCargo ["ACE_15Rnd_9x19_P226", 32];

_this addMagazineCargo ["ACE_15Rnd_9x19_P8", 32];

_this addMagazineCargo ["10Rnd_B_765x17_Ball", 32];

_this addMagazineCargo ["20Rnd_B_765x17_Ball", 32];

_this addMagazineCargo ["ACE_8Rnd_762x25_B_Tokarev", 32];

_this addMagazineCargo ["ACE_12Rnd_45ACP_USP", 32];

_this addMagazineCargo ["7Rnd_45ACP_1911", 32];

_this addMagazineCargo ["15Rnd_9x19_M9", 32];

_this addMagazineCargo ["15Rnd_9x19_M9SD", 32];

_this addMagazineCargo ["8Rnd_9x18_Makarov", 32];

_this addMagazineCargo ["8Rnd_9x18_MakarovSD", 32];

_this addMagazineCargo ["6Rnd_45ACP", 32];

_this addMagazineCargo ["30Rnd_9x19_UZI", 32];

_this addMagazineCargo ["30Rnd_9x19_UZI_SD", 32];

// Rifle
// Weapons
_this addWeaponCargo ["AA12_PMC", 20];

_this addWeaponCargo ["ACE_AK103", 20];

_this addWeaponCargo ["ACE_AK103_1P29", 20];

_this addWeaponCargo ["ACE_AK103_GL", 20];

_this addWeaponCargo ["ACE_AK103_GL_1P29", 20];

_this addWeaponCargo ["ACE_AK103_GL_Kobra", 20];

_this addWeaponCargo ["ACE_AK103_GL_PSO", 20];

_this addWeaponCargo ["ACE_AK103_Kobra", 20];

_this addWeaponCargo ["ACE_AK103_PSO", 20];

_this addWeaponCargo ["ACE_AK104", 20];

_this addWeaponCargo ["ACE_AK104_1P29", 20];

_this addWeaponCargo ["ACE_AK104_Kobra", 20];

_this addWeaponCargo ["ACE_AK104_PSO", 20];

_this addWeaponCargo ["ACE_AK105", 20];

_this addWeaponCargo ["ACE_AK105_1P29", 20];

_this addWeaponCargo ["ACE_AK105_Kobra", 20];

_this addWeaponCargo ["ACE_AK105_PSO", 20];

_this addWeaponCargo ["ACE_AK74M", 20];

_this addWeaponCargo ["ACE_AK74M_1P29", 20];

_this addWeaponCargo ["ACE_AK74M_GL", 20];

_this addWeaponCargo ["ACE_AK74M_GL_1P29", 20];

_this addWeaponCargo ["ACE_AK74M_GL_Kobra", 20];

_this addWeaponCargo ["ACE_AK74M_GL_PSO", 20];

_this addWeaponCargo ["ACE_AK74M_Kobra", 20];

_this addWeaponCargo ["ACE_AK74M_PSO", 20];

_this addWeaponCargo ["ACE_AKM", 20];

_this addWeaponCargo ["ACE_AKM_GL", 20];

_this addWeaponCargo ["ACE_AKMS", 20];

_this addWeaponCargo ["ACE_AKMS_SD", 20];

_this addWeaponCargo ["ACE_AKS74_GP25", 20];

_this addWeaponCargo ["ACE_AKS74_UN", 20];

_this addWeaponCargo ["ACE_AKS74P", 20];

_this addWeaponCargo ["ACE_AKS74P_1P29", 20];

_this addWeaponCargo ["ACE_AKS74P_GL", 20];

_this addWeaponCargo ["ACE_AKS74P_GL_1P29", 20];

_this addWeaponCargo ["ACE_AKS74P_GL_Kobra", 20];

_this addWeaponCargo ["ACE_AKS74P_GL_PSO", 20];

_this addWeaponCargo ["ACE_AKS74P_Kobra", 20];

_this addWeaponCargo ["ACE_AKS74P_PSO", 20];

_this addWeaponCargo ["ACE_FAL_Para", 20];

_this addWeaponCargo ["ACE_G36", 20];

_this addWeaponCargo ["ACE_G36A1", 20];

_this addWeaponCargo ["ACE_G36A1_AG36A1", 20];

_this addWeaponCargo ["ACE_G36A1_AG36A1_D", 20];

_this addWeaponCargo ["ACE_G36A1_AG36A1_D_UP", 20];

_this addWeaponCargo ["ACE_G36A1_AG36A1_UP", 20];

_this addWeaponCargo ["ACE_G36A1_D", 20];

_this addWeaponCargo ["ACE_G36A2", 20];

_this addWeaponCargo ["ACE_G36A2_Bipod", 20];

_this addWeaponCargo ["ACE_G36A2_Bipod_D", 20];

_this addWeaponCargo ["ACE_G36A2_D", 20];

_this addWeaponCargo ["ACE_G36K", 20];

_this addWeaponCargo ["ACE_G36K_D", 20];

_this addWeaponCargo ["ACE_G36K_EOTech", 20];

_this addWeaponCargo ["ACE_G36K_EOTech_D", 20];

_this addWeaponCargo ["ACE_G36K_iron", 20];

_this addWeaponCargo ["ACE_G36K_iron_D", 20];

_this addWeaponCargo ["ACE_G3A3", 20];

_this addWeaponCargo ["ACE_G3A3_RSAS", 20];

_this addWeaponCargo ["ACE_G3SG1", 20];

_this addWeaponCargo ["ACE_gr1", 20];

_this addWeaponCargo ["ACE_gr1sd", 20];

_this addWeaponCargo ["ACE_gr1sdsp", 20];

_this addWeaponCargo ["ACE_gr1sp", 20];

_this addWeaponCargo ["ACE_HK416_D10", 20];

_this addWeaponCargo ["ACE_HK416_D10_AIM", 20];

_this addWeaponCargo ["ACE_HK416_D10_COMPM3", 20];

_this addWeaponCargo ["ACE_HK416_D10_COMPM3_SD", 20];

_this addWeaponCargo ["ACE_HK416_D10_Holo", 20];

_this addWeaponCargo ["ACE_HK416_D10_M320", 20];

_this addWeaponCargo ["ACE_HK416_D10_M320_UP", 20];

_this addWeaponCargo ["ACE_HK416_D10_SD", 20];

_this addWeaponCargo ["ACE_HK416_D14", 20];

_this addWeaponCargo ["ACE_HK416_D14_ACOG_PVS14", 20];

_this addWeaponCargo ["ACE_HK416_D14_COMPM3", 20];

_this addWeaponCargo ["ACE_HK416_D14_COMPM3_M320", 20];

_this addWeaponCargo ["ACE_HK416_D14_COMPM3_M320_UP", 20];

_this addWeaponCargo ["ACE_HK416_D14_SD", 20];

_this addWeaponCargo ["ACE_HK416_D14_TWS", 20];

_this addWeaponCargo ["ACE_HK417_Eotech_4x", 20];

_this addWeaponCargo ["ACE_HK417_leupold", 20];

_this addWeaponCargo ["ACE_HK417_micro", 20];

_this addWeaponCargo ["ACE_HK417_Shortdot", 20];

_this addWeaponCargo ["ACE_KAC_PDW", 20];

_this addWeaponCargo ["ACE_M1014_Eotech", 20];

_this addWeaponCargo ["ACE_M14_ACOG", 20];

_this addWeaponCargo ["ACE_m16a2_scope", 20];

_this addWeaponCargo ["ACE_m16a2gl_scope", 20];

_this addWeaponCargo ["ACE_m16a2gl_scope_UP", 20];

_this addWeaponCargo ["ACE_M16A2GL_UP", 20];

_this addWeaponCargo ["ACE_M16A4_ACG_GL_UP", 20];

_this addWeaponCargo ["ACE_M16A4_CCO_GL", 20];

_this addWeaponCargo ["ACE_M16A4_CCO_GL_UP", 20];

_this addWeaponCargo ["ACE_M16A4_GL_UP", 20];

_this addWeaponCargo ["ACE_M16A4_Iron", 20];

_this addWeaponCargo ["ACE_M27_IAR", 20];

_this addWeaponCargo ["ACE_M27_IAR_ACOG", 20];

_this addWeaponCargo ["ACE_M32", 20];

_this addWeaponCargo ["ACE_M3A1", 20];

_this addWeaponCargo ["ACE_M4", 20];

_this addWeaponCargo ["ACE_M4_ACOG", 20];

_this addWeaponCargo ["ACE_M4_Aim", 20];

_this addWeaponCargo ["ACE_M4_AIM_GL", 20];

_this addWeaponCargo ["ACE_M4_AIM_GL_UP", 20];

_this addWeaponCargo ["ACE_M4_Eotech", 20];

_this addWeaponCargo ["ACE_M4_GL", 20];

_this addWeaponCargo ["ACE_M4_GL_UP", 20];

_this addWeaponCargo ["ACE_M4_RCO_GL", 20];

_this addWeaponCargo ["ACE_M4_RCO_GL_UP", 20];

_this addWeaponCargo ["ACE_M4A1_ACOG", 20];

_this addWeaponCargo ["ACE_M4A1_ACOG_SD", 20];

_this addWeaponCargo ["ACE_M4A1_AIM_GL", 20];

_this addWeaponCargo ["ACE_M4A1_AIM_GL_SD", 20];

_this addWeaponCargo ["ACE_M4A1_AIM_GL_SD_UP", 20];

_this addWeaponCargo ["ACE_M4A1_AIM_GL_UP", 20];

_this addWeaponCargo ["ACE_M4A1_Aim_SD", 20];

_this addWeaponCargo ["ACE_M4A1_Eotech", 20];

_this addWeaponCargo ["ACE_M4A1_GL", 20];

_this addWeaponCargo ["ACE_M4A1_GL_SD", 20];

_this addWeaponCargo ["ACE_M4A1_GL_SD_UP", 20];

_this addWeaponCargo ["ACE_M4A1_GL_UP", 20];

_this addWeaponCargo ["ACE_M4A1_RCO2_GL", 20];

_this addWeaponCargo ["ACE_M4A1_RCO2_GL_UP", 20];

_this addWeaponCargo ["ACE_M4A1_RCO_GL", 20];

_this addWeaponCargo ["ACE_M4SPR_SD", 20];

_this addWeaponCargo ["ACE_M79", 20];

_this addWeaponCargo ["ACE_Mk12mod1", 20];

_this addWeaponCargo ["ACE_Mk12mod1_SD", 20];

_this addWeaponCargo ["ACE_MP5A4", 20];

_this addWeaponCargo ["ACE_MP5A5", 20];

_this addWeaponCargo ["ACE_MP5SD", 20];

_this addWeaponCargo ["ACE_MP7", 20];

_this addWeaponCargo ["ACE_MP7_RSAS", 20];

_this addWeaponCargo ["ACE_oc14", 20];

_this addWeaponCargo ["ACE_oc14gl", 20];

_this addWeaponCargo ["ACE_oc14glsp", 20];

_this addWeaponCargo ["ACE_oc14sd", 20];

_this addWeaponCargo ["ACE_oc14sdsp", 20];

_this addWeaponCargo ["ACE_oc14sp", 20];

_this addWeaponCargo ["ACE_SA58", 20];

_this addWeaponCargo ["ACE_SCAR_H_STD_Spect", 20];

_this addWeaponCargo ["ACE_SCAR_L_ACOG", 20];

_this addWeaponCargo ["ACE_SCAR_L_CQC", 20];

_this addWeaponCargo ["ACE_SCAR_L_CQC_Eotech", 20];

_this addWeaponCargo ["ACE_SCAR_L_CQC_Eotech_EGLM", 20];

_this addWeaponCargo ["ACE_SCAR_L_SNIPER", 20];

_this addWeaponCargo ["ACE_SCAR_L_SPECTER", 20];

_this addWeaponCargo ["ACE_SKS", 20];

_this addWeaponCargo ["ACE_SOC_M4A1", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_Aim", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_AIM_SD", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_Eotech", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_Eotech_4x", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_GL", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_GL_13", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_GL_AIMPOINT", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_GL_EOTECH", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_GL_SD", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_GL_SD_UP", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_GL_UP", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_RCO_GL", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_RCO_GL_UP", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_SD_9", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_SHORTDOT", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_SHORTDOT_SD", 20];

_this addWeaponCargo ["ACE_SOC_M4A1_TWS", 20];

_this addWeaponCargo ["ACE_SPAS12", 20];

_this addWeaponCargo ["ACE_UMP45", 20];

_this addWeaponCargo ["ACE_UMP45_SD", 20];

_this addWeaponCargo ["ACE_Val", 20];

_this addWeaponCargo ["ACE_Val_Kobra", 20];

_this addWeaponCargo ["ACE_Val_PSO", 20];

_this addWeaponCargo ["AK_107_GL_kobra", 20];

_this addWeaponCargo ["AK_107_GL_pso", 20];

_this addWeaponCargo ["AK_107_kobra", 20];

_this addWeaponCargo ["AK_107_pso", 20];

_this addWeaponCargo ["AK_47_M", 20];

_this addWeaponCargo ["AK_47_S", 20];

_this addWeaponCargo ["AK_74", 20];

_this addWeaponCargo ["AK_74_GL", 20];

_this addWeaponCargo ["AK_74_GL_kobra", 20];

_this addWeaponCargo ["AKS_74", 20];

_this addWeaponCargo ["AKS_74_GOSHAWK", 20];

_this addWeaponCargo ["AKS_74_kobra", 20];

_this addWeaponCargo ["AKS_74_NSPU", 20];

_this addWeaponCargo ["AKS_74_pso", 20];

_this addWeaponCargo ["AKS_74_U", 20];

_this addWeaponCargo ["AKS_74_UN_kobra", 20];

_this addWeaponCargo ["AKS_GOLD", 20];

_this addWeaponCargo ["BAF_L85A2_RIS_ACOG", 20];

_this addWeaponCargo ["BAF_L85A2_RIS_CWS", 20];

_this addWeaponCargo ["BAF_L85A2_RIS_Holo", 20];

_this addWeaponCargo ["BAF_L85A2_RIS_SUSAT", 20];

_this addWeaponCargo ["BAF_L85A2_UGL_ACOG", 20];

_this addWeaponCargo ["BAF_L85A2_UGL_Holo", 20];

_this addWeaponCargo ["BAF_L85A2_UGL_SUSAT", 20];

_this addWeaponCargo ["BAF_L86A2_ACOG", 20];

_this addWeaponCargo ["bizon", 20];

_this addWeaponCargo ["bizon_silenced", 20];

_this addWeaponCargo ["FN_FAL", 20];

_this addWeaponCargo ["FN_FAL_ANPVS4", 20];

_this addWeaponCargo ["G36_C_SD_camo", 20];

_this addWeaponCargo ["G36_C_SD_eotech", 20];

_this addWeaponCargo ["G36a", 20];

_this addWeaponCargo ["G36A_camo", 20];

_this addWeaponCargo ["G36C", 20];

_this addWeaponCargo ["G36C_camo", 20];

_this addWeaponCargo ["G36K", 20];

_this addWeaponCargo ["G36K_camo", 20];

_this addWeaponCargo ["LeeEnfield", 20];

_this addWeaponCargo ["M1014", 20];

_this addWeaponCargo ["M14_EP1", 20];

_this addWeaponCargo ["M16A2", 20];

_this addWeaponCargo ["M16A2GL", 20];

_this addWeaponCargo ["m16a4", 20];

_this addWeaponCargo ["m16a4_acg", 20];

_this addWeaponCargo ["M16A4_ACG_GL", 20];

_this addWeaponCargo ["M16A4_GL", 20];

_this addWeaponCargo ["M32_EP1", 20];

_this addWeaponCargo ["M4A1", 20];

_this addWeaponCargo ["M4A1_Aim", 20];

_this addWeaponCargo ["M4A1_Aim_camo", 20];

_this addWeaponCargo ["M4A1_AIM_SD_camo", 20];

_this addWeaponCargo ["M4A1_HWS_GL", 20];

_this addWeaponCargo ["M4A1_HWS_GL_camo", 20];

_this addWeaponCargo ["M4A1_HWS_GL_SD_Camo", 20];

_this addWeaponCargo ["M4A1_RCO_GL", 20];

_this addWeaponCargo ["M4A3_CCO_EP1", 20];

_this addWeaponCargo ["M4A3_RCO_GL_EP1", 20];

_this addWeaponCargo ["M4SPR", 20];

_this addWeaponCargo ["M79_EP1", 20];

_this addWeaponCargo ["m8_carbine", 20];

_this addWeaponCargo ["m8_carbine_pmc", 20];

_this addWeaponCargo ["m8_carbineGL", 20];

_this addWeaponCargo ["m8_compact", 20];

_this addWeaponCargo ["m8_compact_pmc", 20];

_this addWeaponCargo ["m8_holo_sd", 20];

_this addWeaponCargo ["m8_sharpshooter", 20];

_this addWeaponCargo ["m8_tws", 20];

_this addWeaponCargo ["m8_tws_sd", 20];

_this addWeaponCargo ["Mk13_EP1", 20];

_this addWeaponCargo ["MP5A5", 20];

_this addWeaponCargo ["MP5SD", 20];

_this addWeaponCargo ["Sa58P_EP1", 20];

_this addWeaponCargo ["Sa58V_CCO_EP1", 20];

_this addWeaponCargo ["Sa58V_EP1", 20];

_this addWeaponCargo ["Sa58V_RCO_EP1", 20];

_this addWeaponCargo ["Saiga12K", 20];

_this addWeaponCargo ["SCAR_H_CQC_CCO", 20];

_this addWeaponCargo ["SCAR_H_CQC_CCO_SD", 20];

_this addWeaponCargo ["SCAR_H_LNG_Sniper", 20];

_this addWeaponCargo ["SCAR_H_LNG_Sniper_SD", 20];

_this addWeaponCargo ["SCAR_H_STD_EGLM_Spect", 20];

_this addWeaponCargo ["SCAR_H_STD_TWS_SD", 20];

_this addWeaponCargo ["SCAR_L_CQC", 20];

_this addWeaponCargo ["SCAR_L_CQC_CCO_SD", 20];

_this addWeaponCargo ["SCAR_L_CQC_EGLM_Holo", 20];

_this addWeaponCargo ["SCAR_L_CQC_Holo", 20];

_this addWeaponCargo ["SCAR_L_STD_EGLM_RCO", 20];

_this addWeaponCargo ["SCAR_L_STD_EGLM_TWS", 20];

_this addWeaponCargo ["SCAR_L_STD_HOLO", 20];

_this addWeaponCargo ["SCAR_L_STD_Mk4CQT", 20];

// Magazines
_this addMagazineCargo ["20Rnd_B_AA12_74Slug", 32];

_this addMagazineCargo ["20Rnd_B_AA12_HE", 32];

_this addMagazineCargo ["20Rnd_B_AA12_Pellets", 32];

_this addMagazineCargo ["30Rnd_762x39_AK47", 32];

_this addMagazineCargo ["ACE_30Rnd_762x39_SD_AK47", 32];

_this addMagazineCargo ["ACE_30Rnd_762x39_T_AK47", 32];

_this addMagazineCargo ["ACE_40Rnd_762x39_B_AK47", 32];

_this addMagazineCargo ["ACE_40Rnd_762x39_T_AK47", 32];

_this addMagazineCargo ["ACE_75Rnd_762x39_B_AK47", 32];

_this addMagazineCargo ["ACE_75Rnd_762x39_SD_AK47", 32];

_this addMagazineCargo ["1Rnd_HE_GP25", 32];

_this addMagazineCargo ["1Rnd_SMOKE_GP25", 32];

_this addMagazineCargo ["1Rnd_SmokeGreen_GP25", 32];

_this addMagazineCargo ["1Rnd_SmokeRed_GP25", 32];

_this addMagazineCargo ["1Rnd_SmokeYellow_GP25", 32];

_this addMagazineCargo ["ACE_1Rnd_CS_GP25", 32];

_this addMagazineCargo ["ACE_1Rnd_HE_GP25P", 32];

_this addMagazineCargo ["ACE_SSGreen_GP25", 32];

_this addMagazineCargo ["ACE_SSRed_GP25", 32];

_this addMagazineCargo ["ACE_SSWhite_GP25", 32];

_this addMagazineCargo ["ACE_SSYellow_GP25", 32];

_this addMagazineCargo ["FlareGreen_GP25", 32];

_this addMagazineCargo ["FlareRed_GP25", 32];

_this addMagazineCargo ["FlareWhite_GP25", 32];

_this addMagazineCargo ["FlareYellow_GP25", 32];

_this addMagazineCargo ["30Rnd_545x39_AK", 32];

_this addMagazineCargo ["30Rnd_545x39_AKSD", 32];

_this addMagazineCargo ["75Rnd_545x39_RPK", 32];

_this addMagazineCargo ["ACE_30Rnd_545x39_T_AK", 32];

_this addMagazineCargo ["ACE_45Rnd_545x39_B_AK", 32];

_this addMagazineCargo ["ACE_75Rnd_545x39_T_RPK", 32];

_this addMagazineCargo ["20Rnd_762x51_FNFAL", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_B_FAL", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_T_FAL", 32];

_this addMagazineCargo ["100Rnd_556x45_BetaCMag", 32];

_this addMagazineCargo ["30Rnd_556x45_G36", 32];

_this addMagazineCargo ["30Rnd_556x45_G36SD", 32];

_this addMagazineCargo ["ACE_30Rnd_556x45_T_G36", 32];

_this addMagazineCargo ["1Rnd_HE_M203", 32];

_this addMagazineCargo ["1Rnd_Smoke_M203", 32];

_this addMagazineCargo ["1Rnd_SmokeGreen_M203", 32];

_this addMagazineCargo ["1Rnd_SmokeRed_M203", 32];

_this addMagazineCargo ["1Rnd_SmokeYellow_M203", 32];

_this addMagazineCargo ["ACE_1Rnd_CS_M203", 32];

_this addMagazineCargo ["ACE_1Rnd_HE_M203", 32];

_this addMagazineCargo ["ACE_1Rnd_PR_M203", 32];

_this addMagazineCargo ["ACE_FlareIR_M203", 32];

_this addMagazineCargo ["ACE_HuntIR_M203", 32];

_this addMagazineCargo ["ACE_SSGreen_M203", 32];

_this addMagazineCargo ["ACE_SSRed_M203", 32];

_this addMagazineCargo ["ACE_SSWhite_M203", 32];

_this addMagazineCargo ["ACE_SSYellow_M203", 32];

_this addMagazineCargo ["FlareGreen_M203", 32];

_this addMagazineCargo ["FlareRed_M203", 32];

_this addMagazineCargo ["FlareWhite_M203", 32];

_this addMagazineCargo ["FlareYellow_M203", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_B_G3", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_T_G3", 32];

_this addMagazineCargo ["20Rnd_556x45_Stanag", 32];

_this addMagazineCargo ["30Rnd_556x45_Stanag", 32];

_this addMagazineCargo ["30Rnd_556x45_StanagSD", 32];

_this addMagazineCargo ["ACE_30Rnd_556x45_SB_Stanag", 32];

_this addMagazineCargo ["ACE_30Rnd_556x45_T_Stanag", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_B_HK417", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_SB_HK417", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_T_HK417", 32];

_this addMagazineCargo ["ACE_30Rnd_6x35_B_PDW", 32];

_this addMagazineCargo ["8Rnd_B_Beneli_74Slug", 32];

_this addMagazineCargo ["8Rnd_B_Beneli_Pellets", 32];

_this addMagazineCargo ["20Rnd_762x51_DMR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_B_M14", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_T_DMR", 32];

_this addMagazineCargo ["6Rnd_FlareGreen_M203", 32];

_this addMagazineCargo ["6Rnd_FlareRed_M203", 32];

_this addMagazineCargo ["6Rnd_FlareWhite_M203", 32];

_this addMagazineCargo ["6Rnd_FlareYellow_M203", 32];

_this addMagazineCargo ["6Rnd_HE_M203", 32];

_this addMagazineCargo ["6Rnd_Smoke_M203", 32];

_this addMagazineCargo ["6Rnd_SmokeGreen_M203", 32];

_this addMagazineCargo ["6Rnd_SmokeRed_M203", 32];

_this addMagazineCargo ["6Rnd_SmokeYellow_M203", 32];

_this addMagazineCargo ["ACE_30Rnd_1143x23_B_M3", 32];

_this addMagazineCargo ["30Rnd_9x19_MP5", 32];

_this addMagazineCargo ["30Rnd_9x19_MP5SD", 32];

_this addMagazineCargo ["ACE_40Rnd_B_46x30_MP7", 32];

_this addMagazineCargo ["ACE_20Rnd_9x39_B_OC14", 32];

_this addMagazineCargo ["20Rnd_762x51_B_SCAR", 32];

_this addMagazineCargo ["20Rnd_762x51_SB_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_S_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_SB_S_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_SB_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_T_SCAR", 32];

_this addMagazineCargo ["ACE_10Rnd_762x39_B_SKS", 32];

_this addMagazineCargo ["ACE_10Rnd_762x39_T_SKS", 32];

_this addMagazineCargo ["ACE_25Rnd_1143x23_B_UMP45", 32];

_this addMagazineCargo ["10Rnd_9x39_SP5_VSS", 32];

_this addMagazineCargo ["20Rnd_9x39_SP5_VSS", 32];

_this addMagazineCargo ["64Rnd_9x19_Bizon", 32];

_this addMagazineCargo ["64Rnd_9x19_SD_Bizon", 32];

_this addMagazineCargo ["10x_303", 32];

_this addMagazineCargo ["ACE_10Rnd_77x56_T_SMLE", 32];

_this addMagazineCargo ["30Rnd_762x39_SA58", 32];

_this addMagazineCargo ["ACE_30Rnd_762x39_T_SA58", 32];

_this addMagazineCargo ["8Rnd_B_Saiga12_74Slug", 32];

_this addMagazineCargo ["8Rnd_B_Saiga12_Pellets", 32];

// Ruck
// Weapons
_this addWeaponCargo ["ACE_2b14Proxy", 20];

_this addWeaponCargo ["ACE_2b14TripodProxy", 20];

_this addWeaponCargo ["ACE_6T7TripodProxy", 20];

_this addWeaponCargo ["ACE_AGS30Proxy", 20];

_this addWeaponCargo ["ACE_AGS30TripodProxy", 20];

_this addWeaponCargo ["ACE_ALICE_Backpack", 20];

_this addWeaponCargo ["ACE_ANPRC77", 20];

_this addWeaponCargo ["ACE_BackPack", 20];

_this addWeaponCargo ["ACE_BackPack_ACR", 20];

_this addWeaponCargo ["ACE_BackPack_ACR_FL", 20];

_this addWeaponCargo ["ACE_BackPack_ACR_TT", 20];

_this addWeaponCargo ["ACE_Backpack_FL", 20];

_this addWeaponCargo ["ACE_Backpack_TT", 20];

_this addWeaponCargo ["ACE_Backpack_US", 20];

_this addWeaponCargo ["ACE_BAF_L2A1Proxy", 20];

_this addWeaponCargo ["ACE_BAF_static_GMGProxy", 20];

_this addWeaponCargo ["ACE_CharliePack", 20];

_this addWeaponCargo ["ACE_CharliePack_ACU", 20];

_this addWeaponCargo ["ACE_CharliePack_ACU_Medic", 20];

_this addWeaponCargo ["ACE_CharliePack_WMARPAT", 20];

_this addWeaponCargo ["ACE_Combat_Pack", 20];

_this addWeaponCargo ["ACE_Coyote_Pack", 20];

_this addWeaponCargo ["ACE_Coyote_Pack_Black", 20];

_this addWeaponCargo ["ACE_DSHKMProxy", 20];

_this addWeaponCargo ["ACE_DSHKMTripodProxy", 20];

_this addWeaponCargo ["ACE_FAST_PackEDC", 20];

_this addWeaponCargo ["ACE_FAST_PackEDC_ACU", 20];

_this addWeaponCargo ["ACE_KonkursTripodProxy", 20];

_this addWeaponCargo ["ACE_KORDProxy", 20];

_this addWeaponCargo ["ACE_M122TripodProxy", 20];

_this addWeaponCargo ["ACE_M220Proxy", 20];

_this addWeaponCargo ["ACE_M220TripodProxy", 20];

_this addWeaponCargo ["ACE_M224Proxy", 20];

_this addWeaponCargo ["ACE_M224TripodProxy", 20];

_this addWeaponCargo ["ACE_M252Proxy", 20];

_this addWeaponCargo ["ACE_M252TripodProxy", 20];

_this addWeaponCargo ["ACE_M2HBProxy", 20];

_this addWeaponCargo ["ACE_M3TripodProxy", 20];

_this addWeaponCargo ["ACE_MK19MOD3Proxy", 20];

_this addWeaponCargo ["ACE_P159_RD54", 20];

_this addWeaponCargo ["ACE_P159_RD90", 20];

_this addWeaponCargo ["ACE_P159_RD99", 20];

_this addWeaponCargo ["ACE_PRC119", 20];

_this addWeaponCargo ["ACE_PRC119_ACU", 20];

_this addWeaponCargo ["ACE_PRC119_MAR", 20];

_this addWeaponCargo ["ACE_Rucksack_EAST", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_ACU", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_ACU_Medic", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_Brown", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_Brown_Medic", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_DMARPAT", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_DMARPAT_Medic", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_Green", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_Green_Medic", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_WMARPAT", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_WMARPAT_Medic", 20];

_this addWeaponCargo ["ACE_Rucksack_MOLLE_Wood", 20];

_this addWeaponCargo ["ACE_Rucksack_RD54", 20];

_this addWeaponCargo ["ACE_Rucksack_RD90", 20];

_this addWeaponCargo ["ACE_Rucksack_RD91", 20];

_this addWeaponCargo ["ACE_Rucksack_RD92", 20];

_this addWeaponCargo ["ACE_Rucksack_RD99", 20];

_this addWeaponCargo ["ACE_Stretcher", 20];

_this addWeaponCargo ["ACE_VTAC_RUSH72", 20];

_this addWeaponCargo ["ACE_VTAC_RUSH72_ACU", 20];

_this addWeaponCargo ["ACE_VTAC_RUSH72_FT_MEDIC", 20];

_this addWeaponCargo ["ACE_VTAC_RUSH72_TT_MEDIC", 20];

// Magazines

// Sniper
// Weapons
_this addWeaponCargo ["ACE_AS50", 20];

_this addWeaponCargo ["ACE_M109", 20];

_this addWeaponCargo ["ACE_M110", 20];

_this addWeaponCargo ["ACE_M110_SD", 20];

_this addWeaponCargo ["ACE_SVD_Bipod", 20];

_this addWeaponCargo ["ACE_TAC50", 20];

_this addWeaponCargo ["ACE_TAC50_SD", 20];

_this addWeaponCargo ["BAF_AS50_scoped", 20];

_this addWeaponCargo ["BAF_AS50_TWS", 20];

_this addWeaponCargo ["BAF_LRR_scoped", 20];

_this addWeaponCargo ["BAF_LRR_scoped_W", 20];

_this addWeaponCargo ["DMR", 20];

_this addWeaponCargo ["huntingrifle", 20];

_this addWeaponCargo ["ksvk", 20];

_this addWeaponCargo ["m107", 20];

_this addWeaponCargo ["m107_TWS_EP1", 20];

_this addWeaponCargo ["M110_NVG_EP1", 20];

_this addWeaponCargo ["M110_TWS_EP1", 20];

_this addWeaponCargo ["M24", 20];

_this addWeaponCargo ["M24_des_EP1", 20];

_this addWeaponCargo ["M40A3", 20];

_this addWeaponCargo ["PMC_AS50_scoped", 20];

_this addWeaponCargo ["PMC_AS50_TWS", 20];

_this addWeaponCargo ["SVD", 20];

_this addWeaponCargo ["SVD_CAMO", 20];

_this addWeaponCargo ["SVD_des_EP1", 20];

_this addWeaponCargo ["SVD_NSPU_EP1", 20];

_this addWeaponCargo ["VSS_vintorez", 20];

// Magazines
_this addMagazineCargo ["5Rnd_127x99_as50", 32];

_this addMagazineCargo ["ACE_5Rnd_127x99_B_TAC50", 32];

_this addMagazineCargo ["ACE_5Rnd_127x99_T_TAC50", 32];

_this addMagazineCargo ["ACE_5Rnd_25x59_HEDP_Barrett", 32];

_this addMagazineCargo ["20Rnd_762x51_B_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_S_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_SB_M110", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_SB_S_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_SB_SCAR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_T_M110", 32];

_this addMagazineCargo ["10Rnd_762x54_SVD", 32];

_this addMagazineCargo ["ACE_10Rnd_762x54_T_SVD", 32];

_this addMagazineCargo ["5Rnd_86x70_L115A1", 32];

_this addMagazineCargo ["ACE_5Rnd_86x70_T_L115A1", 32];

_this addMagazineCargo ["20Rnd_762x51_DMR", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_B_M14", 32];

_this addMagazineCargo ["ACE_20Rnd_762x51_T_DMR", 32];

_this addMagazineCargo ["5x_22_LR_17_HMR", 32];

_this addMagazineCargo ["5Rnd_127x108_KSVK", 32];

_this addMagazineCargo ["ACE_5Rnd_127x108_T_KSVK", 32];

_this addMagazineCargo ["10Rnd_127x99_m107", 32];

_this addMagazineCargo ["ACE_10Rnd_127x99_Raufoss_m107", 32];

_this addMagazineCargo ["ACE_10Rnd_127x99_T_m107", 32];

_this addMagazineCargo ["5Rnd_762x51_M24", 32];

_this addMagazineCargo ["ACE_5Rnd_762x51_T_M24", 32];

_this addMagazineCargo ["10Rnd_9x39_SP5_VSS", 32];

_this addMagazineCargo ["20Rnd_9x39_SP5_VSS", 32];

// UNKNOWN
// Weapons
// Magazines
_this addMagazineCargo ["PipeBomb", 32];

_this addMagazineCargo ["Mine", 32];

_this addMagazineCargo ["MineE", 32];

_this addMagazineCargo ["ACE_Bandage", 32];

_this addMagazineCargo ["ACE_Bodybag", 32];

_this addMagazineCargo ["ACE_Epinephrine", 32];

_this addMagazineCargo ["ACE_Medkit", 32];

_this addMagazineCargo ["ACE_Morphine", 32];

_this addMagazineCargo ["ACE_BBetty_M", 32];

_this addMagazineCargo ["ACE_C4_M", 32];

_this addMagazineCargo ["ACE_Claymore_M", 32];

_this addMagazineCargo ["ACE_M2SLAM_M", 32];

_this addMagazineCargo ["ACE_M4SLAM_M", 32];

_this addMagazineCargo ["ACE_MON50_M", 32];

_this addMagazineCargo ["ACE_Pomz_M", 32];

_this addMagazineCargo ["ACE_TripFlare_M", 32];

_this addMagazineCargo ["ACE_SandBag_Magazine", 32];

_this addMagazineCargo ["ACE_TOW_CSWDM", 32];

_this addMagazineCargo ["ACE_KORD_CSWDM", 32];

_this addMagazineCargo ["ACE_DSHKM_CSWDM", 32];

_this addMagazineCargo ["ACE_M2_CSWDM", 32];

_this addMagazineCargo ["ACE_MK19_CSWDM", 32];

_this addMagazineCargo ["ACE_AGS30_CSWDM", 32];

_this addMagazineCargo ["ACE_Konkurs_CSWDM", 32];

_this addMagazineCargo ["ACE_KonkursM_CSWDM", 32];

_this addMagazineCargo ["ACE_M252HE_CSWDM", 32];

_this addMagazineCargo ["ACE_M252WP_CSWDM", 32];

_this addMagazineCargo ["ACE_M252IL_CSWDM", 32];

_this addMagazineCargo ["ACE_M224HE_CSWDM", 32];

_this addMagazineCargo ["ACE_M224WP_CSWDM", 32];

_this addMagazineCargo ["ACE_M224IL_CSWDM", 32];

_this addMagazineCargo ["ACE_2B14HE_CSWDM", 32];

_this addMagazineCargo ["ACE_2B14WP_CSWDM", 32];

_this addMagazineCargo ["ACE_2B14IL_CSWDM", 32];

_this addMagazineCargo ["ACE_Rope_M_120", 32];

_this addMagazineCargo ["ACE_Rope_M_50", 32];

_this addMagazineCargo ["ACE_Rope_M_60", 32];

_this addMagazineCargo ["ACE_Rope_M_90", 32];

_this addMagazineCargo ["ACE_VS17Panel_M", 32];

_this addMagazineCargo ["ACE_Rope_M5", 32];

_this addMagazineCargo ["BAF_ied_v1", 32];

_this addMagazineCargo ["BAF_ied_v2", 32];

_this addMagazineCargo ["BAF_ied_v3", 32];

_this addMagazineCargo ["BAF_ied_v4", 32];

_this addMagazineCargo ["PMC_ied_v1", 32];

_this addMagazineCargo ["PMC_ied_v2", 32];

_this addMagazineCargo ["PMC_ied_v3", 32];

_this addMagazineCargo ["PMC_ied_v4", 32];

_this addMagazineCargo ["HandGrenade_Stone", 32];

_this addMagazineCargo ["BAF_L109A1_HE", 32];

_this addMagazineCargo ["HandGrenade", 32];

_this addMagazineCargo ["HandGrenade_East", 32];

_this addMagazineCargo ["HandGrenade_West", 32];

_this addMagazineCargo ["SmokeShell", 32];

_this addMagazineCargo ["SmokeShellBlue", 32];

_this addMagazineCargo ["SmokeShellGreen", 32];

_this addMagazineCargo ["SmokeShellOrange", 32];

_this addMagazineCargo ["SmokeShellPurple", 32];

_this addMagazineCargo ["SmokeShellRed", 32];

_this addMagazineCargo ["SmokeShellYellow", 32];

_this addMagazineCargo ["IR_Strobe_Marker", 32];

_this addMagazineCargo ["IR_Strobe_Target", 32];

_this addMagazineCargo ["ACE_RDG2", 32];

_this addMagazineCargo ["ACE_RDGM", 32];

_this addMagazineCargo ["ACE_DM25", 32];

_this addMagazineCargo ["ACE_DM32", 32];

_this addMagazineCargo ["ACE_DM51", 32];

_this addMagazineCargo ["ACE_M86PDM", 32];

_this addMagazineCargo ["ACE_Flashbang", 32];

_this addMagazineCargo ["ACE_M84", 32];

_this addMagazineCargo ["ACE_TORCH_C", 32];

_this addMagazineCargo ["ACE_M7A3", 32];

_this addMagazineCargo ["ACE_RG60A", 32];

_this addMagazineCargo ["ACE_M34", 32];

_this addMagazineCargo ["ACE_ANM14", 32];

_this addMagazineCargo ["ACE_Knicklicht_B", 32];

_this addMagazineCargo ["ACE_Knicklicht_G", 32];

_this addMagazineCargo ["ACE_Knicklicht_IR", 32];

_this addMagazineCargo ["ACE_Knicklicht_R", 32];

_this addMagazineCargo ["ACE_Knicklicht_W", 32];

_this addMagazineCargo ["ACE_Knicklicht_Y", 32];

//AAW

//Weapons
_this addWeaponCargo ["aaw_9mmslp", 10];
_this addWeaponCargo ["AAW_f88_A1", 10];
_this addWeaponCargo ["AAW_f88_A1_carbine", 10];
_this addWeaponCargo ["AAW_f88_A1_gla", 10];
_this addWeaponCargo ["AAW_f88_elcan", 10];
_this addWeaponCargo ["AAW_f88_elcan_gla", 10];
_this addWeaponCargo ["AAW_f88_elcan_carbine", 10];
_this addWeaponCargo ["AAW_f88_S", 10];
_this addWeaponCargo ["AAW_f88_S_gla", 10];
_this addWeaponCargo ["AAW_f88_S_carbine", 10];
_this addWeaponCargo ["AAW_f88_ACOG", 10];
_this addWeaponCargo ["AAW_f88_ACOG_gla", 10];
_this addWeaponCargo ["AAW_f88_AIM", 10];
_this addWeaponCargo ["AAW_f88_AIM_gla", 10];
_this addWeaponCargo ["AAW_f88_AIM_carbine", 10];
_this addWeaponCargo ["AAW_f88SA2_15", 10];
_this addWeaponCargo ["AAW_f88SA2_15_gla", 10];
_this addWeaponCargo ["AAW_f88SA2_15_carbine", 10];
_this addWeaponCargo ["AAW_f88SA2_elcan", 10];
_this addWeaponCargo ["AAW_f88SA2_elcan_gla", 10];
_this addWeaponCargo ["AAW_f88SA2_elcan_carbine", 10];
_this addWeaponCargo ["AAW_f88SA2_ACOG", 10];
_this addWeaponCargo ["AAW_f88SA2_ACOG_gla", 10];
_this addWeaponCargo ["AAW_f88SA2_ACOG_carbine", 10];
_this addWeaponCargo ["AAW_f88SA2_AIM", 10];
_this addWeaponCargo ["AAW_f88SA2_AIM_carbine", 10];
_this addWeaponCargo ["AAW_f89_ELCAN", 10];
_this addWeaponCargo ["AAW_f89_ACOG", 10];
_this addWeaponCargo ["AAW_f89_15", 10];
_this addWeaponCargo ["AAW_f89_AIM", 10];
_this addWeaponCargo ["AAW_mag58", 10];
_this addWeaponCargo ["AAW_mag58_ELCAN", 10];
_this addWeaponCargo ["AAW_mag58_ACOG", 10];
_this addWeaponCargo ["AAW_mag58_AIM", 10];
_this addWeaponCargo ["AAW_M72a6", 10];
_this addWeaponCargo ["AAW_M2_carlG", 10];
_this addWeaponCargo ["AAW_M2_carlG_optic", 10];
_this addWeaponCargo ["AAW_M2_carlG_D", 10];
_this addWeaponCargo ["AAW_M2_carlG_optic_D", 10];

//Ammunition

_this addMagazineCargo ["13Rnd_9mm_SLP", 32];
_this addMagazineCargo ["aaw_f88_mag", 32];
_this addMagazineCargo ["aaw_f88_mag_allTracers", 32];
_this addMagazineCargo ["aaw_f89_mag", 32];
_this addMagazineCargo ["aaw_f89_mag_allTracers", 32];
_this addMagazineCargo ["aaw_f89_100_mag", 32];
_this addMagazineCargo ["aaw_f89_100_mag_allTracers", 32];
_this addMagazineCargo ["aaw_mag58_mag", 32];
_this addMagazineCargo ["aaw_mag58_mag_allTracers", 32];
_this addMagazineCargo ["AAW_M72a6", 32];
_this addMagazineCargo ["aaw_HEDP", 32];
_this addMagazineCargo ["aaw_HEAT", 32];
_this addMagazineCargo ["aaw_HEAT_RAP", 32];
_this addMagazineCargo ["aaw_HEDP_FFV", 32];
_this addMagazineCargo ["aaw_HEAT_FFV", 32];
_this addMagazineCargo ["aaw_HEAT_RAP_FFV", 32];
_this addMagazineCargo ["aaw_HEDP_D", 32];
_this addMagazineCargo ["aaw_HEAT_D", 32];
_this addMagazineCargo ["aaw_HEAT_RAP_D", 32];
_this addMagazineCargo ["aaw_HEDP_FFV_D", 32];
_this addMagazineCargo ["aaw_HEAT_FFV_D", 32];
_this addMagazineCargo ["aaw_HEAT_RAP_FFV_D", 32];
_this addMagazineCargo ["aaw_f1_grenade", 32];

sleep 1800;
};

I'm using the "Save Loadout" and "Load Loadout" scripts from the mission you linked earlier.

Most of this script (well, about all of it) comes from the ACE Crate Generator script found here.

Since this mission is only being played with friends at the moment (not the public version that's released now), limiting weapons isn't a big problem for me.

I really wish there was a way to remove duplicates easier by script instead of having to hunt them down. Ace for some reason has a ton of the same guns already deployed in vanilla arma 2 and OA.

Don't know if I'll be updating this mission publicly any more as I don't seem to be getting any feedback on it here or on Armaholic. Bummer :(

Share this post


Link to post
Share on other sites

It's not that ACE has duplicates, it simply has replacements. For example the BIS M4A1 is replaced by the ACE M4A1, so it doesn't matter which one of those you add, you'll get the ACE one (probably because the BIS M4A1 had some problems, not sure though).

Not sure how you broke the script, it's pretty straight-forward to use and modify if you want to add the BAF/PMC weapons and ammo (and they're very easy to find in the classlists because they all have BAF or PMC in their class name).

Overall it seems like the public mission making scene is very very weak for this very reason - Very few people actually download other people's mission (which is kind of understandable considering the huge amount of work it takes to filter through all the poorly-made ones, which make up the majority of the public missions), and the few that do play rarely comment on them. Server admins do these things even less, so those playing on dedicated servers will probably play nothing other than domination/warfare because that's all the server admins will ever bother to put on there - Anything else is simply too much work for them. And besides, to play a user mission on a public server you need both the admin to put the mission on the server and then whoever is playing on it to actually pick that mission, and that combination almost never happens. Add addon requirements for that and you know what the result is...

That said, I bet there are at least some people playing those missions, and if just 2 people downloaded and enjoyed the mission it's good enough of a reason for me to put it out there.

Edited by galzohar

Share this post


Link to post
Share on other sites
It's not that ACE has duplicates, it simply has replacements. For example the BIS M4A1 is replaced by the ACE M4A1, so it doesn't matter which one of those you add, you'll get the ACE one (probably because the BIS M4A1 had some problems, not sure though).

Not sure how you broke the script, it's pretty straight-forward to use and modify if you want to add the BAF/PMC weapons and ammo (and they're very easy to find in the classlists because they all have BAF or PMC in their class name).

Overall it seems like the public mission making scene is very very weak for this very reason - Very few people actually download other people's mission (which is kind of understandable considering the huge amount of work it takes to filter through all the poorly-made ones, which make up the majority of the public missions), and the few that do play rarely comment on them. Server admins do these things even less, so those playing on dedicated servers will probably play nothing other than domination/warfare because that's all the server admins will ever bother to put on there - Anything else is simply too much work for them. And besides, to play a user mission on a public server you need both the admin to put the mission on the server and then whoever is playing on it to actually pick that mission, and that combination almost never happens. Add addon requirements for that and you know what the result is...

That said, I bet there are at least some people playing those missions, and if just 2 people downloaded and enjoyed the mission it's good enough of a reason for me to put it out there.

Very true. Especially with the mod requirements I have, I can see it being a rare mission to be played.

About the script, is there a limit to what you can add in to a crate? Will it get to the point where it's full and not load anything in?

Share this post


Link to post
Share on other sites

Yes. Crates can get full. But I set the amounts of items in a way that won't fill up the crate even if you set all the parameters to their highest value. Tested with US Special weapons crate. If you want larger amounts of equipment, place more crates rather than editing the script in order to avoid the crate "filling up".

Share this post


Link to post
Share on other sites

1.1 Launched

Changelog:

-Rearrangement of base items a bit

-More complete Ammo Crate (still duplicates for now, but no biggie)

-Ability to load saved loadout at ammo crate

-Wounds Version Released (with medical supply box near mash)

-Some missions removed (find camps, blow up scud, bring truck)

Front Page updated!

Share this post


Link to post
Share on other sites

when i start the mission it says 'no player selected'. any idea why it does that?

Share this post


Link to post
Share on other sites

You could just load the saved loadout on player respawn, rather than load it at ammo crate. You only need to actually have the save option at the ammo crate.

Share this post


Link to post
Share on other sites
You could just load the saved loadout on player respawn, rather than load it at ammo crate. You only need to actually have the save option at the ammo crate.

Brilliant! I'll put that in. Thanks

EDIT: Done! It now loads previously saved loadouts on spawning automatically. I left the "Load Loadout" on the ammo box though in case you want to quickly "rearm" at the box.

1.12 Released, first post updated.

when i start the mission it says 'no player selected'. any idea why it does that?

Are you running it single player? The best way to run this mission is to create a multiplayer game (lan if you just want to play by yourself)

Edited by zuff

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  

×