Sign in to follow this  
Followers 0
speedweasel

Ah... Arma.

1 post in this topic

Arma 3, where

_lootHolder addItemCargoGlobal [_itemClassName, 1]; 

...becomes

switch (_cargoType) do
{
	case 1: 	
	{ 
		if (_itemClassName isEqualTo "Exile_Item_MountainDupe") then
		{
			_lootHolder addMagazineCargoGlobal [_itemClassName, 2]; 
		}
		else 
		{
			_lootHolder addMagazineCargoGlobal [_itemClassName, 1]; 
		};
	};
	case 3: 	
	{ 
		_lootHolder addBackpackCargoGlobal [_itemClassName, 1]; 
	};
	case 2: 	
	{ 
		_lootHolder addWeaponCargoGlobal [_itemClassName, 1]; 
		if !(_itemClassName isKindOf ["Exile_Melee_Abstract", configFile >> "CfgWeapons"]) then
		{
			_magazineClassNames = getArray(configFile >> "CfgWeapons" >> _itemClassName >> "magazines");
			if (count(_magazineClassNames) > 0) then
			{
				_magazineClassName = selectRandom _magazineClassNames;
				_numberOfMagazines = 2 + floor(random 3); 
				_lootHolder addMagazineCargoGlobal [_magazineClassName, _numberOfMagazines];
				_spawnedItemClassNames pushBack _magazineClassName;
			};
		};
		_numberOfItemsToSpawn = -1;
	};
	default
	{ 
		_lootHolder addItemCargoGlobal [_itemClassName, 1]; 
	};
};

... and don't even talk to me about binoculars and rangefinders.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.