All pastes #902539 Raw Edit

Mine

public cpp v1 · immutable
·published 2008-02-13 16:20 UTC
rendered paste body
private ["_user", "_type", "_mags", "_weaps"];_user = _this select 0;_type = _this select 1;;hint format["%1", _type];switch _type do{	case 0:	{	// AT		_mags = [ ["30rnd_556x45_stanag", 5], ["ukf_law80", 1], ["ukf_sigP226_mag", 3] ];		_weaps = [ "UKF_L85A2_susat", "ukf_law80launcher", "ukf_sigP226" ];	};	case 1:	{	// JAV		_mags = [ ["30rnd_556x45_stanag", 4], ["ukf_javelinmag", 1], ["ukf_sigP226_mag", 3] ];		_weaps = [ "UKF_L85A2_susat", "ukf_javelinlauncher", "ukf_sigP226" ];	};	case 2:	{	// GPMG		_mags = [ ["100rnd_762x51_m240", 4] ];		_weaps = [ "ukf_gpmg" ];	};	case 3:	{	// LMG		_mags = [ ["200rnd_556x45_m249", 4] ];		_weaps = [ "ukf_lmg_susat" ];	};	case 4:	{	// LPR		_mags = [ ["ukf_10Rnd_762x51_mag", 5], ["ukf_sigP226_SDmag", 3] ];		_weaps = [ "ukf_l96a1", "ukf_sigP226_sd" ];	};	case 5:	{	// INF		_mags = [ ["30rnd_556x45_stanag", 5], ["1rnd_he_m203", 4], ["ukf_sigP226_mag", 2] ];		_weaps = [ "ukf_l85a2ag36", "ukf_sigP226" ];	};	case 6:	{	// CREW		_mags = [ ["20rnd_556x45_stanag", 4] ];		_weaps = [ "UKF_L85A2_susat", "ukf_javelinlauncher", "ukf_sigP226" ];	};};removeAllWeapons _user;_weaps = _weaps + ["NVGoggles","Binocular"];_mags = _mags + [ ["SmokeShellGreen"], 1 ];{ for "_y" from 1 to (_x select 1) do { _user addMagazine (_x select 0) } } forEach _mags;{ _user addWeapon (_x select 0) } } forEach _weaps;_user selectWeapon (_weaps select 0);