_stuff = _this select 0;
_Vehicle = typeOf _stuff;

	stuff_00 = 
	{
		_stuff animate ["t_stuff_hide",0];

		_stuff animate ["t_stuff_ammo1_hide",1];
		_stuff animate ["t_stuff_ammo2_hide",1];
		_stuff animate ["t_stuff_ammo3_hide",0];
		
		_stuff animate ["t_stuff_bag1_hide",0];
		_stuff animate ["t_stuff_bag2_hide",0];
		_stuff animate ["t_stuff_bag3_hide",1];
		_stuff animate ["t_stuff_bag4_hide",0];

		_stuff animate ["t_stuff_kolo1_hide",0];
		_stuff animate ["t_stuff_kolo2_hide",1];
		_stuff animate ["t_stuff_kolo3_hide",1];

		_stuff animate ["t_stuff_wor1_hide",0];
		_stuff animate ["t_stuff_wor2_hide",0];
	};

	stuff_01 = 
	{
		_stuff animate ["t_stuff_hide",0];

		_stuff animate ["t_stuff_ammo1_hide",0];
		_stuff animate ["t_stuff_ammo2_hide",1];
		_stuff animate ["t_stuff_ammo3_hide",1];
		
		_stuff animate ["t_stuff_bag1_hide",0];
		_stuff animate ["t_stuff_bag2_hide",1];
		_stuff animate ["t_stuff_bag3_hide",0];
		_stuff animate ["t_stuff_bag4_hide",0];

		_stuff animate ["t_stuff_kolo1_hide",1];
		_stuff animate ["t_stuff_kolo2_hide",0];
		_stuff animate ["t_stuff_kolo3_hide",1];

		_stuff animate ["t_stuff_wor1_hide",0];
		_stuff animate ["t_stuff_wor2_hide",0];
	};

	stuff_02 = 
	{
		_stuff animate ["t_stuff_hide",0];

		_stuff animate ["t_stuff_ammo1_hide",1];
		_stuff animate ["t_stuff_ammo2_hide",0];
		_stuff animate ["t_stuff_ammo3_hide",1];
		
		_stuff animate ["t_stuff_bag1_hide",1];
		_stuff animate ["t_stuff_bag2_hide",1];
		_stuff animate ["t_stuff_bag3_hide",0];
		_stuff animate ["t_stuff_bag4_hide",0];

		_stuff animate ["t_stuff_kolo1_hide",0];
		_stuff animate ["t_stuff_kolo2_hide",0];
		_stuff animate ["t_stuff_kolo3_hide",1];

		_stuff animate ["t_stuff_wor1_hide",1];
		_stuff animate ["t_stuff_wor2_hide",0];
	};

	stuff_03 = 
	{
		_stuff animate ["t_stuff_hide",0];

		_stuff animate ["t_stuff_ammo1_hide",0];
		_stuff animate ["t_stuff_ammo2_hide",1];
		_stuff animate ["t_stuff_ammo3_hide",0];
		
		_stuff animate ["t_stuff_bag1_hide",1];
		_stuff animate ["t_stuff_bag2_hide",0];
		_stuff animate ["t_stuff_bag3_hide",0];
		_stuff animate ["t_stuff_bag4_hide",0];

		_stuff animate ["t_stuff_kolo1_hide",1];
		_stuff animate ["t_stuff_kolo2_hide",1];
		_stuff animate ["t_stuff_kolo3_hide",0];

		_stuff animate ["t_stuff_wor1_hide",1];
		_stuff animate ["t_stuff_wor2_hide",1];
	};

	stuff_04 =  
	{
		_stuff animate ["t_stuff_hide",0];

		_stuff animate ["t_stuff_ammo1_hide",0];
		_stuff animate ["t_stuff_ammo2_hide",0];
		_stuff animate ["t_stuff_ammo3_hide",1];
		
		_stuff animate ["t_stuff_bag1_hide",1];
		_stuff animate ["t_stuff_bag2_hide",1];
		_stuff animate ["t_stuff_bag3_hide",0];
		_stuff animate ["t_stuff_bag4_hide",0];

		_stuff animate ["t_stuff_kolo1_hide",0];
		_stuff animate ["t_stuff_kolo2_hide",1];
		_stuff animate ["t_stuff_kolo3_hide",1];

		_stuff animate ["t_stuff_wor1_hide",0];
		_stuff animate ["t_stuff_wor2_hide",0];
	};

	stuff_05 = 
	{
		_stuff animate ["t_stuff_hide",0];

		_stuff animate ["t_stuff_ammo1_hide",1];
		_stuff animate ["t_stuff_ammo2_hide",0];
		_stuff animate ["t_stuff_ammo3_hide",0];
		
		_stuff animate ["t_stuff_bag1_hide",0];
		_stuff animate ["t_stuff_bag2_hide",1];
		_stuff animate ["t_stuff_bag3_hide",0];
		_stuff animate ["t_stuff_bag4_hide",0];

		_stuff animate ["t_stuff_kolo1_hide",1];
		_stuff animate ["t_stuff_kolo2_hide",1];
		_stuff animate ["t_stuff_kolo3_hide",1];

		_stuff animate ["t_stuff_wor1_hide",1];
		_stuff animate ["t_stuff_wor2_hide",0];
	};

	stuff_empty = 
	{
		_stuff animate ["t_stuff_hide",1];

		_stuff animate ["t_stuff_ammo1_hide",1];
		_stuff animate ["t_stuff_ammo2_hide",1];
		_stuff animate ["t_stuff_ammo3_hide",1];
		
		_stuff animate ["t_stuff_bag1_hide",1];
		_stuff animate ["t_stuff_bag2_hide",1];
		_stuff animate ["t_stuff_bag3_hide",1];
		_stuff animate ["t_stuff_bag4_hide",1];

		_stuff animate ["t_stuff_kolo1_hide",1];
		_stuff animate ["t_stuff_kolo2_hide",1];
		_stuff animate ["t_stuff_kolo3_hide",1];

		_stuff animate ["t_stuff_wor1_hide",1];
		_stuff animate ["t_stuff_wor2_hide",1];
	};


switch (_this select 1) do 
{
	case "00" : 
	{
		[] call stuff_00;
	};

	case "01" : 
	{
		[] call stuff_01;
	};

	case "02" : 
	{
		[] call stuff_02;
	};

	case "03" : 
	{
		[] call stuff_03;
	};

	case "04" : 
	{
		[] call stuff_04;
	};

	case "05" : 
	{
		[] call stuff_05;
	};

	case "empty" : 
	{
		[] call stuff_empty;
	};

	case "random" :
	{
		//based on DKM Script
		_nr = (((getpos _stuff select 0) + (getpos _stuff select 1)*3)Mod 1000)-1;
		_nr = _nr - (_nr Mod 1);
		_i = _nr Mod 10;

		if (_i == 0) then {[] call stuff_00;};
		if (_i == 1 or _i == 6) then {[] call stuff_01;};
		if (_i == 2 or _i == 7) then {[] call stuff_02;};
		if (_i == 3 or _i == 8) then {[] call stuff_03;};
		if (_i == 4 or _i == 9) then {[] call stuff_04;};
		if (_i == 5) then {[] call stuff_05;};

		_i = ((_nr - _i)/10) Mod 10;

		if (_i == 0) then {[] call stuff_00;};
		if (_i == 1 or _i == 6) then {[] call stuff_01;};
		if (_i == 2 or _i == 7) then {[] call stuff_02;};
		if (_i == 3 or _i == 8) then {[] call stuff_03;};
		if (_i == 4 or _i == 9) then {[] call stuff_04;};
		if (_i == 5) then {[] call stuff_05;};
	};
};