Jump to content

Custom Weapon Spawns


happysan

Recommended Posts

Hi, I'm looking to drop all the Arma2 and Arma2:OA weapons into the loot table but I'd like to do it in an elegant way.  

 

In the hunting stand for example:

class Hunting: Default {
		zombieChance = 0.4;
		minRoaming = 1;
		maxRoaming = 3;
		zombieClass[] = {"z_hunter","z_hunter","z_hunter"};
		lootChance = 0.8;
		lootPos[] = {};
		itemType[] =	{
			{"ItemMap","weapon"},
			{"ItemFlashlight","generic"},
			{"ItemKnife","generic"},
			{"ItemMatchbox","generic"},
			{"Crossbow_DZ","weapon"},
			{"","military"},
			{"WeaponHolder_ItemMachete", "object"},
			{"SCAR_H_LNG_Sniper","weapon"},
			{"SCAR_H_STD_TWS_SD", "weapon"},
			{"","hunter"}
		};
		itemChance[] =	{
			0.015,
			0.009,
			0.008,
			0.011,
			0.006,
			0.075,
			0.006,
			0.008,
			0.01,
			0.02
		};
	};	

See the {"", "hunter"} line. That translates into:

hunter[] = {
		{
			"ItemBandage",
			"5x_22_LR_17_HMR",
			"7Rnd_45ACP_1911",
			"10x_303",
			"ItemWaterbottleUnfilled",
			"WoodenArrow",
			"ItemHeatPack",
			"FoodMRE",
			"FoodNutmix"
		},
		{
			0.4,
			0.17,
			0.03,
			0.1,
			0.05,
			0.2,
			0.02,
			0.01,
			0.02	
		}
	};

Basically I want a table already done that is like the hunter one above but with all the Arma 2 guns.  Has anyone done this already?  Maybe for Rmod.  I searched and searched.  Thanks!

Link to comment
Share on other sites

  • 4 weeks later...

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
  • Advertisement
  • Discord

×
×
  • Create New...