// Clientside code for ordnance support
if (EGG_EVO_supportcomms == 0) exitwith {hint "Comms disabled, check your comms mast!"};

_type = _this select 0;
_size = _this select 1;
_countdown = _this select 2;
_ord = _this select 3;

//created in core
_bpos = getmarkerpos "btarg";
deleteMarkerLocal "btarg";
//_base = "Land_HelipadEmpty_F" createVehicle _bpos; //edit
_base = createVehicle [(EGG_EVO_HELIPAD select 0),_bpos, [], 0, "NONE"];

EGG_EVO_sup = player;
EGG_EVO_sut = _type;

publicVariable "EGG_EVO_sut";
publicVariable "EGG_EVO_sup";

EGG_EVO_fmission = true;

_mark1 = format["%1Bomb1",time];
_mark2 = format["%1Bomb2",time];
_mark3 = format["%1Bomb3",time];

_bmark3 = createMarkerlocal [_mark3, _bpos];
_bmark3 setMarkerShapelocal "ELLIPSE";
_bmark3 setMarkerTypelocal "hd_destroy";
_bmark3 setMarkerColorlocal "ColorRed";
_bmark3 setMarkerSizelocal [200, 200];

_bmark2 = createMarkerlocal [_mark2, _bpos];
_bmark2 setMarkerShapelocal "ICON";
//_bmark2 setMarkerType "FireMission";
_bmark2 setMarkerTypelocal "b_art";
_bmark2 setMarkerColorlocal "ColorBlack";

_bmark = createMarkerlocal [_mark1, [(_bpos select 0)+3,(_bpos select 1)+3]];
_bmark = createMarkerlocal [_mark1, _bpos];
_bmark setMarkerShapelocal "ICON";
//_bmark setMarkerType "hd_flag";
_bmark setMarkerTypelocal "mil_box";
_bmark setMarkerSizelocal [1.0, 1.0];

_bzone = createTrigger ["EmptyDetector", _bpos];
_bzone setTriggerActivation ["ANY", "PRESENT", false];
_bzone setTriggerArea [_size, _size, 0, true ];

_men = 0;
_car = 0;
_tank = 0;
_score = 0;

_mssg = "";

_bombzone = getmarkerpos _mark1;

EGG_EVO_Nshock = 
{
	_base = _this select 0;
	_xPos = (position _base select 0);
	_yPos = (position _base select 1)-40;

	_howBigA = _this select 1;
	_howBigB = _this select 2;
	_tablesC = _this select 3;
	_angle = _this select 4;
	_i = 0;
	while {_i < 360} do {
		_x = (_howBigA * (sin _i));
		_y = (_howBigB * (cos _i));
		_x_rot = _xPos + _x*(cos _angle) - _y*(sin _angle);
		_y_rot = _yPos + _x*(sin _angle) + _y*(cos _angle);
		_k = createVehicle [(EGG_EVO_Sbombs select 9),[_x_rot, _y_rot,50], [], 0, "NONE"];
		_i = _i + (360/_tablesC);
	};
};

EGG_EVO_CountDead = 
{
	_list = list _bzone;
	if(count _list > 0) then
	{
		{
			if(_x isKindof "Man" and (side _x) == east) then {_men = _men + 1;_score = _score+1};
			if(_x isKindof "Car" and (side _x) == east) then {_car = _car + 1;_score = _score+3};
			if(_x isKindof "Tank" and (side _x) == east) then {_tank = _tank + 1;_score = _score+5};
			if(_x isKindof "Man" and (side _x) == west) then {_men = _men - 1;_score = _score-1};
			if(_x isKindof "Car" and (side _x) == west) then {_car = _car - 1;_score = _score-3};
			if(_x isKindof "Tank" and (side _x) == west) then {_tank = _tank - 1;_score = _score-5};		

		} forEach _list;
	};
};

switch (_ord) do
{
	 case 1:
	{
		_k = createVehicle ["SmokeShell",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorWhite";
	};
	 case 2:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorRed";
	};
	 case 3:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorRed";
	};
	 case 4:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorRed";
	};
	 case 5:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorRed";
	};
	 case 6:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorYellow";
	};
	 case 7:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorYellow";
	};
	 case 8:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 9:
	{
		_k = createVehicle ["SmokeShellGreen",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorGreen";
	};
	 case 10:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 11:
	{
		_k = createVehicle ["SmokeShell",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlack";
	};
	 case 12:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 13:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 14:
	{
		_k = createVehicle ["SmokeShell",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorWhite";
	};
	 case 15:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 16:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 17:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 18:
	{
		_k = createVehicle ["SmokeShell",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorWhite";
	};
	 case 19:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 20:
	{
		_k = createVehicle ["SmokeShellBlue",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorBlue";
	};
	 case 21:
	{
		_k = createVehicle ["SmokeShellOrange",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorYellow";
	};
	 case 22:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorRed";
	};
	 case 23:
	{
		_k = createVehicle ["SmokeShellRed",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorRed";
	};
	 case 24:
	{
		_k = createVehicle ["SmokeShellOrange",_bpos, [], 0, "NONE"];
		_bmark2 setMarkerColorlocal "ColorRed";
	};

};

_i = _countdown;
while {_i > -1} do 
{
	_mssg = format["%1's %2 :%3",(name player),_type,_i];
	_bmark2 setMarkerTextlocal _mssg;
	_bmark3 setMarkerSizelocal [0, 0];
	_i = _i - 1;
	if((_ord == 7) and _i == 25) then 
	{
//		_base setVehicleInit "[this,6] execVM ""scripts\nuke.sqf""";
//		_base setVehicleInit "[this] execVM ""nuke\nukelaunch.sqs""";
//		Groundzero = "Land_HelipadEmpty_F" createVehicle (position _base);
		Groundzero = createVehicle [(EGG_EVO_HELIPAD select 0),(position _base), [], 0, "NONE"];

		[] exec "nuke\nukeincoming.sqs";
		//processInitCommands;
	};	
	sleep 0.5;
	_bmark3 setMarkerSizelocal [_size, _size];
	sleep 0.5;
};

if (!isNil "_k") then {
	deletevehicle _k;
};

switch (_ord) do
{
	 case 1: //ammo box
	{
		Playsound "Resupply";
		sleep 10;
		_pos = (position _base);
//temp removal
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];		
		_tbox = "B_supplyCrate_F" createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		WaitUntil{(getpos _tbox select 2) < 0.01};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
//adding
		tbox = createVehicle ["B_supplyCrate_F",_pos, [], 0, "NONE"];
		tbox setpos getpos tbox;
		[tbox] execVM "scripts\support\dropdel.sqf";
		[tbox] execVM "scripts\dropbox.sqf";
//		_netID = netID tbox;
//		_sCommand = format ["{(objectFromNetID '%1') [this] call EGG_EVO_DropBox;}", _netID];
//		[_sCommand,"BIS_fnc_spawn",true,true] spawn BIS_fnc_MP;
	};

	 case 2: //precision strike
	{		
		Playsound "Airstrike";
		sleep 20.0;
		[] call EGG_EVO_CountDead;
		_k = createVehicle [(EGG_EVO_Sbombs select 11),[(position _base select 0), (position _base select 1)-50,50], [], 0, "NONE"];
		sleep 10;
	};

	 case 3: //small arty
	{
		Playsound "SmallArty";
		sleep 15.0;
		[] call EGG_EVO_CountDead;
		_i = 0;
		while {_i < 20} do 
		{
			_k = createVehicle [(EGG_EVO_Sbombs select 1),[(position _base select 0), (position _base select 1),50], [], _size, "NONE"];
			_i = _i + 1;
			sleep 1.0;
		};
	};
	 case 4: //cluster bomb
	{
		Playsound "NapalmStrike";
		sleep 5.0;
		[] call EGG_EVO_CountDead;
		_i = 0;
		while {_i < 6} do 
		{
			_k = createVehicle [(EGG_EVO_Sbombs select 10),[(position _base select 0), (position _base select 1)-220,175], [], _size, "NONE"];
			_i = _i + 1;
			sleep 0.2;			
		};
		sleep 10;
	};
	 case 5: // large arty
	{
		Playsound "LargeArty";
		[] call EGG_EVO_CountDead;
		_i = 0;
		while {_i < 40} do 
		{
			_k = createVehicle [(EGG_EVO_Sbombs select 0),[(position _base select 0), (position _base select 1),50], [], _size, "NONE"];
			_i = _i + 1;
			sleep 0.6;
		};		
	};

	 case 6: //Nape
	{	
		Playsound "NapalmStrike";
		sleep 5.0;
		[] call EGG_EVO_CountDead;
		_i = 0;
		while {_i < 8} do 
		{
			_k = createVehicle [(EGG_EVO_Sbombs select 2),[(position _base select 0), (position _base select 1),50], [], _size, "NONE"];
			_i = _i + 1;
			sleep 0.2;
		};		
	};
	 case 7: //nuke
	{
		[] call EGG_EVO_CountDead;
		[] exec "nuke\damage.sqs";
	};
//ok to here

	 case 8: //scout bike
	{
		Playsound "Resupply";
		_pos = (position _base);
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];		
		_tbox = (EGG_EVO_SVECS select 0) createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		WaitUntil{(getpos _tbox select 2) < 0.01};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
//adding
		_tbox = createVehicle [(EGG_EVO_SVECS select 0),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir direction player;
		_tbox engineon false;
		_tbox setDamage 0;
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		//processInitCommands;	
	};
	case 9: //Marker Smoke
	{
		Playsound "MarkerSmokeDist";
		sleep 5;
		_i = 0;
		while {_i < 2} do 
		{
			_k = createVehicle [(EGG_EVO_Ssmoke select 2),[(position _base select 0), (position _base select 1),50], [], _size, "NONE"];
			_i = _i + 1;
			sleep 1.0;
		};	
		sleep 7.0;
		Playsound "MarkerSmoke";
	};

	case 10: //Inflatable Boat
	{
		Playsound "Resupply";
		_pos = (position _base);

//temp removal
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];	
		_tbox = (EGG_EVO_SHIPUNA select 0) createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		WaitUntil{(getpos _tbox select 2) < 0.01};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
//adding
		_tbox = createVehicle [(EGG_EVO_SHIPUNA select 0),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir (direction player-180);
		_tbox engineon false;
		_tbox setDamage 0;
		_tbox setVelocity [0, 0, 0];
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		//processInitCommands;	
	};

	case 11: //Smokescreen
	{
		Playsound "SmokeScreenDist";
		sleep 7;
		Playsound "Resupply";
		_i = 0;
		while {_i < 8} do 
		{
			_k = createVehicle [(EGG_EVO_Ssmoke select 3),[(position _base select 0), (position _base select 1),0], [], _size, "NONE"];
			_i = _i + 1;
			sleep 1.0;
		};
	};

	case 12: //MG Station
	{
		Playsound "Resupply";
		_pos = (position _base);
		_tbox = createVehicle [(EGG_EVO_SWEPS select 1),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir direction player;
		_tbox setDamage 0;
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		//processInitCommands;	
	};

	case 13: //Mortar Station
	{
		Playsound "Resupply";
		_pos = (position _base);

//temp
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];	
		_tbox = (EGG_EVO_SWEPS select 0) createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		WaitUntil{(getpos _tbox select 2) < 0.01};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
//adding
		_tbox = createVehicle [(EGG_EVO_SWEPS select 0),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir direction player;
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		_tbox setDamage 0;
		//processInitCommands;	
	};

	case 14: //Build fortification
	{
		Playsound "Resupply";
		_pos = (position _base);
		_tbox = createVehicle [(EGG_EVO_SVECS select 2),_pos, [], 0, "NONE"];
		_tbox setDir (direction player-180);
		_tbox setDamage 0;
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		//processInitCommands;	
	};

	case 15: //Armoured Boat
	{
		Playsound "Resupply";
		_pos = (position _base);
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];	
		_tbox = (EGG_EVO_SHIPA select 1) createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		WaitUntil{(getpos _tbox select 2) < 0.01};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
//adding
		_tbox = createVehicle [(EGG_EVO_SHIPA select 1),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir direction player;
		_tbox engineon false;
		_tbox setDamage 0;
		_tbox setVelocity [0, 0, 0];
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		//processInitCommands;	
	};

	case 16: //AA Battery
	{
		Playsound "Resupply";
		_pos = (position _base);

//temp removal
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];	
		_tbox = (EGG_EVO_SWEPS select 2) createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		WaitUntil{(getpos _tbox select 2) < 0.01};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
// adding
		_tbox = createVehicle [(EGG_EVO_SWEPS select 2),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir direction player;
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		_tbox setDamage 0;
		//processInitCommands;	
	};
	case 17: //Artillery Cannon
	{
		Playsound "Resupply";
		_pos = (position _base);
//temp removal
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];	
		_tbox = (EGG_EVO_SWEPS select 3) createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		WaitUntil{(getpos _tbox select 2) < 0.01};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
// adding
		_tbox = createVehicle [(EGG_EVO_SWEPS select 3),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir direction player;
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		_tbox setDamage 0;
		//processInitCommands;	

		player moveInGunner _tbox;
//		hint "press Weaponchange button on KeyBoard to switch ammo";
	};
	case 18: //HALO Extraction
	{
		player SideChat localize "str_bardak_caught_b_1";
		sleep 15;
		_hump = [] execVM "actions\parajump.sqf";
	};

	 case 19: //bike
	{
		Playsound "Resupply";
		_pos = (position _base);
//temp removal
		_obj_para = "B_Parachute_02_F" createVehicle [0,0,0];
		_obj_para setpos [_pos select 0,_pos select 1,(_pos select 2) +100];		
		_tbox =  (EGG_EVO_SVECS select 1) createVehicle _pos;
		_tbox attachTo [_obj_para, [0,0,-1.6]];
		sleep 1.0;
		_future = time + 30;
		WaitUntil
		{
			((getpos _tbox select 2) < 0.01) || (time >= _future)
		};
		_pos = position _tbox;
		detach _tbox;		
		deletevehicle _tbox;
		deletevehicle _obj_para;
// adding
		_tbox = createVehicle [(EGG_EVO_SVECS select 1),_pos, [], 0, "NONE"];
		_tbox setpos getpos _tbox;
		_tbox setDir direction player;
		_tbox engineon false;
		_tbox setDamage 0;
		[_tbox] execVM "scripts\support\dropdelm.sqf";
		//processInitCommands;	
	};
	 case 20: // Illumination
	{
		Playsound "Resupply";
		_pos = (position _base);
		while {_i < 30} do
		{
			_rand_flare = random 100;
			_flare =  createVehicle [(EGG_EVO_Sillum select 0),[(_pos select 0)+(_rand_flare-50), (_pos select 1)+(_rand_flare-50), 200],[], 0, "NONE"];
			_i = _i + 1;
			sleep 10+((_rand_flare+10)/10);
		}; 
	};
	 case 21: // Bombardment
	{
		Playsound "NapalmStrike";
		[] call EGG_EVO_CountDead;
		_bomb_max = (count EGG_EVO_Sbombs)-1;
		_i=0;
		while {_i < 40} do
		{
			_thebomb = EGG_EVO_Sbombs select (round random _bomb_max);
			_rand_bomb = random 200;
			_bombard = _thebomb createVehicle [(getPos _base select 0)+(_rand_bomb-100), (getPos _base select 1)+(_rand_bomb-100), 180];
			_i = _i + 1;
			sleep 5+(random 10);
		}; 
	};
	 case 22: // Minefield
	{
		Playsound "Resupply";
		_i=0;
		while {_i < 20} do
		{
			_bombard = createVehicle [(EGG_EVO_SWEPS select 4),[(position _base select 0), (position _base select 1),0], [], 50, "NONE"];
			_i = _i + 1;
			sleep 1;
		}; 
		[_base] execVM "scripts\support\dropdelmines.sqf";
	};
	 case 23: //mortar barrage
	{
		Playsound "MortarBarrage";
		sleep 21;			
		[] call EGG_EVO_CountDead;
		_i = 0;
		while {_i < 2} do 
		{
			_k = createVehicle [(EGG_EVO_Sbombs select 4),[(position _base select 0), (position _base select 1),50], [], _size, "NONE"];
			_i = _i + 1;
			sleep 2.5;
		};
		_i = 0;
		while {_i < 10} do 
		{
			_k = createVehicle [(EGG_EVO_Sbombs select 3),[(position _base select 0), (position _base select 1),50], [], _size, "NONE"];
			_i = _i + 1;
			sleep 2.5;
		};
	};

	 case 24: // Trap field
	{
		Playsound "Resupply";
		_i=0;
		_bomb_max = (count EGG_EVO_Trapweapons)-1;
		while {_i < 20} do
		{
			_thebomb = EGG_EVO_Trapweapons select (round random _bomb_max);
			_bombard = createVehicle [_thebomb,[(position _base select 0), (position _base select 1),0], [], 40, "NONE"];
			_i = _i + 1;
			sleep 1;
		}; 
		[_base] execVM "scripts\support\dropdelmines.sqf";
	};
};

deletevehicle _bzone;
deletemarkerlocal _mark1;
deletemarkerlocal _mark2;
deletemarkerlocal _mark3;
EGG_EVO_fmission = false;

if(_ord != 1 and _ord != 8 and _ord != 9 and _ord != 10 and _ord != 11 and _ord != 12 and _ord != 13 and _ord != 14 and _ord != 15 and _ord != 16 and _ord != 17 and _ord != 18 and _ord != 19 and _ord != 20 and _ord != 22 and _ord != 24) then
{
	if(_ord == 2 or _ord == 4) then {sleep 5}; // Time to drop 50m
	_name = parseText format["<t color='#FFFFCC'>%1</t>",localize "STR_M04t92"];
	_separator1 = parseText "<br /><br />";
	_imen = parseText format["<t color='#FFFFFF'>%1 %2</t><br />",_men,localize "STR_M04t93"];
	_icar = parseText format["<t color='#FFFFFF'>%1 %2</t><br />",_car,localize "STR_M04t94"];
	_itank = parseText format["<t color='#FFFFFF'>%1 %2</t><br />",_tank,localize "STR_M04t95"];
	_tally = format["+%1 %2",_score,localize "STR_M04t0_5"];
	_iscore = parseText format["<t color='#FFFFFF'>%1</t><br />",_tally];
	_txt = composeText [_name,_separator1,_imen,_icar,_itank,_iscore];
	hint _txt;
	EGG_EVO_lunit = player;
	EGG_EVO_lrew  = _score;
	publicVariable "EGG_EVO_lrew";
	publicVariable "EGG_EVO_lunit";
};
sleep 60;
deletevehicle _base;

/*
******ord numbers*******
1 ammo crate 
9 marker smoke 
10 inflatable boat 
11 smokescreen 
2 precision strike 
8 scout bike 
12 MG station
3 small artillery
13 mortar station
14 build fortification
4 cluster bomb
15 armoured boat
16 aa battery
5 large artillery
17 artillery cannon
6 chemical strike
18 HALO extraction
7 ICBM
*********colours********
ColorWhite		//ammo fort HALO
ColorBlue		//vehicle
ColorBlack		//smokescreen
ColourGreen		//marker
ColorRed 		//incoming munition
ColorYellow		//WMD
*/
