Selaa lähdekoodia

prep for xeh cba that puts scripts when obj spawns

prep for xeh cba
Namenai 7 vuotta sitten
vanhempi
commit
337a512302

+ 38 - 0
Scripts/scripts/zeus3denScripts/readme.txt

@@ -0,0 +1,38 @@
+Here is the file path of various scripts,if its not listed here then its probably 1) not ready 100% to be used or 2) we forgot :P
+
+
+//laat weapon
+	"scripts\zeus3denScripts\vehicleBased\vehicleVariants\airBased\LAAT\laatClaymore.sqf"
+	
+//arc-170 weapon
+	"scripts\zeus3denScripts\vehicleBased\vehicleVariants\airBased\ARC\arcXiphos.sqf"
+	
+//arc-170 prevent ejection
+	"scripts\zeus3denScripts\vehicleBased\vehicleVariants\airBased\ARC\removeEject.sqf"
+	
+//y-wing weapons
+	"scripts\zeus3denScripts\vehicleBased\vehicleVariants\airBased\YWING\ywingScylla.sqf"
+
+
+//kappa-cruisie boost
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\forwardKappa.sqf"
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Boost\reverseKappa.sqf"
+
+
+//arc-170 wing tip smoke
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\ARC\arcSmokeTipPrB.sqf"
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\ARC\arcSmokeTipRB.sqf"
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\ARC\arcSmokeTipWB.sqf"
+
+//laat wing tip smoke
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\LAAT\laatSmokeTipPrB.sqf"
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\LAAT\laatSmokeTipRB.sqf"
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\LAAT\laatSmokeTipWB.sqf"
+	"scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\LAAT\laatSmokeTipYwB.sqf"
+
+
+//pilot kill detector
+	"scripts\zeus3denScripts\playerBased\aviation\pilotBased\pilotProtectorBoxEH.sqf"
+	
+//warden resupply ammo
+	"scripts\zeus3denScripts\playerBased\aviation\wardenBased\wardenAmmoBox.sqf"

+ 0 - 79
Scripts/scripts/zeus3denScripts/vehicleBased/Vehicle Variants/Air/ARC/arcXiphos.sqf

@@ -1,79 +0,0 @@
-params["_vic"];
-
-comment "data for weapons";
-comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]";
-weaponData=[
-["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,21,2]]],
-["missiles_Jian","4Rnd_LG_Jian",[[-1,4,1]]],
-["conmis_arc","ConMisarc_mag",[[-1,8,2]]],
-["SmokeLauncher","SmokeLauncherMag",[[-1,2,20]]],
-["CMFlareLauncher","300Rnd_CMFlare_Chaff_Magazine",[[-1,300,10]]],
-["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
-["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
-];
-
-
-
-comment "For each weapon";
-for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
-{
-	itemList=weaponData select _i;
-	itemWeapon=itemList select 0;
-	itemMagType=itemList select 1;
-	itemSeats=itemList select 2;
-
-
-	comment "for each seat";
-	for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
-	{
-
-		seatData=itemSeats select _j;
-		seatIndex=seatData select 0;
-		seatAmmoPerMag=seatData select 1;
-		seatMags=seatData select 2;
-
-		_vic addWeaponTurret[itemWeapon, [seatIndex]];
-		
-		comment "adds mags";
-		for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
-		{
-			_vic  addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
-
-		};
-
-
-
-	};
-
-
-};
-
-
-
-
-comment "gets health";
-_vic   addAction ["<t color='#00FF00'>Damage Report</t>",
-{
-
-
-hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this  select 0)))*100),"%"];
-
-},[1],0,false,true,""," driver  _target == _this "];
-
-
-
-
-comment "Increment Throttle";
-_vic  addAction ["<t color='#0000FF'>Increment Throttle--------U16</t>",
-{
-(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01);
-
-},[1],0,false,true,"User16","driver  _target == _this"];
-
-
-comment "Decrement Throttle";
-_vic  addAction ["<t color='#FF0000'>Decrement Throttle--------U17</t>",
-{
-(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01);	
-
-},[1],0,false,true,"User17","driver  _target == _this"];

+ 0 - 26
Scripts/scripts/zeus3denScripts/vehicleBased/Vehicle Variants/Air/ARC/removeEject.sqf

@@ -1,26 +0,0 @@
-
-_this addEventHandler ["GetIn",{
-(vehicle (_this select 0)) setVehicleLock "LOCKED";
-(vehicle (_this select 0)) vehicleChat "LOCKED";
-}];
-
-
-_this  addAction ["<t color='#FF0000'>LOCK--------U14</t>",
-{
-
-
-(vehicle (_this select 0)) setVehicleLock "LOCKED";
-(vehicle (_this select 0)) vehicleChat "LOCKED";
-
-
-},[1],0,false,true,"User14"," driver  _target == _this"];
-
-
-_this  addAction ["<t color='#00FF00'>UNLOCK--------U15</t>",
-{
-
-
-(vehicle (_this select 0)) setVehicleLock "UNLOCKED";
-(vehicle (_this select 0)) vehicleChat "UNLOCKED";
-
-},[1],0,false,true,"User15"];

+ 0 - 68
Scripts/scripts/zeus3denScripts/vehicleBased/Vehicle Variants/Air/ARC/removeEject2.sqf

@@ -1,68 +0,0 @@
-params["_vic"];
-_vic setVehicleLock "LOCKED";
-
-
-_vic  addAction ["<t color='#FFFF00'>GET IN PILOT------------- U10</t>",
-{
-
-params["_this","_user"];
-_user moveInDriver (vehicle(_this));
-
-},[1],0,false,true];
-
-
-_vic  addAction ["<t color='#00FFFF'>GET IN GUNNER------------- U10</t>",
-{
-
-params["_this","_user"];
-_user moveInTurret [ (vehicle(_this)),[0]];
-
-},[1],0,false,true];
-
-
-_vic  addAction ["<t color='#0000FF'>GET IN NAV------------- U10</t>",
-{
-
-params["_this","_user"];
-_user moveInTurret [ (vehicle(_this)),[1]];
-
-},[1],0,false,true];
-
-
-
-
-
-
-
-_vic  addAction ["<t color='#FF00FF'>GET OUT OF VIC------------- U11</t>",
-{
-
-params["_this","_user"];
-moveOut _user ;
-},[1],0,false,true,"User12"];
-
-
-
-
-
-_vic  addAction ["<t color='#FF0000'>LOCK--------U14</t>",
-{
-
-
-(vehicle (_this select 0)) setVehicleLock "LOCKED";
-(vehicle (_this select 0)) vehicleChat "LOCKED";
-
-
-},[1],0,false,true];
-
-
-
-
-_vic  addAction ["<t color='#00FF00'>UNLOCK--------U15</t>",
-{
-
-
-(vehicle (_this select 0)) setVehicleLock "UNLOCKED";
-(vehicle (_this select 0)) vehicleChat "UNLOCKED";
-
-},[1],0,false,true,"User15"];

+ 0 - 71
Scripts/scripts/zeus3denScripts/vehicleBased/Vehicle Variants/Air/LAAT/laatClaymore.sqf

@@ -1,71 +0,0 @@
-params["_vic"];
-
-comment "data for weapons";
-comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]";
-weaponData=[
-["Cannon_LAAT","1000Rnd_Laser_Cannon_LAAT",[[-1,1000,2]]],
-["missiles_Jian","4Rnd_LG_Jian",[[-1,10,8],[0,1,1]]],
-["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,8,1],[0,21,1]]],
-["SmokeLauncher","SmokeLauncherMag",[[-1,2,20]]],
-["CMFlareLauncher","300Rnd_CMFlare_Chaff_Magazine",[[-1,300,10]]],
-["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
-["Cannon_TIE_FAST","10Rnd_FAST_Cannon_TIE",[[1,10,100],[2,10,100]]],
-["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
-];
-
-
-
-comment "remove torpedos";
-for [{_i=0}, {_i<2}, {_i=_i+1}] do
-{
-	_vic removeMagazineTurret ["laat_proton_torpedo" ,[-1]];  
-	_vic removeWeaponTurret["laat_proton_torpedo_launcher", [-1]];
-};
-
-
-
-comment "For each weapon";
-for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
-{
-	itemList=weaponData select _i;
-	itemWeapon=itemList select 0;
-	itemMagType=itemList select 1;
-	itemSeats=itemList select 2;
-
-
-	comment "for each seat";
-	for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
-	{
-
-		seatData=itemSeats select _j;
-		seatIndex=seatData select 0;
-		seatAmmoPerMag=seatData select 1;
-		seatMags=seatData select 2;
-
-		_vic addWeaponTurret[itemWeapon, [seatIndex]];
-		
-		comment "adds mags";
-		for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
-		{
-			_vic  addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
-
-		};
-
-
-
-	};
-
-
-};
-
-
-
-
-comment "gets health";
-_vic   addAction ["<t color='#00FF00'>Damage Report</t>",
-{
-
-
-hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this  select 0)))*100),"%"];
-
-},[1],0,false,true,""," driver  _target == _this "];

+ 0 - 80
Scripts/scripts/zeus3denScripts/vehicleBased/Vehicle Variants/Air/YWING/ywingScylla1.sqf

@@ -1,80 +0,0 @@
-params["_vic"];
-
-comment "data for weapons";
-comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]";
-weaponData=[
-["ProtonBombW","ProtonBombM",[[-1,8,3]]],
-["ProtonBombWCLUSTER","ProtonBombMCluster",[[-1,8,6]]],
-["Mg7_proton_torpedo_launcher","Mg7_proton_torpedo",[[-1,8,6]]],
-["missiles_Jian","4Rnd_LG_Jian",[[-1,4,3]]],
-["Bomb_04_Plane_CAS_01_F","4Rnd_Bomb_04_F",[[-1,4,1]]],
-["BombCluster_01_F","PylonMissile_1Rnd_BombCluster_01_F",[[-1,4,2]]],
-["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,4,1]]],
-["SmokeLauncher","SmokeLauncherMag",[[-1,2,20]]],
-["CMFlareLauncher","300Rnd_CMFlare_Chaff_Magazine",[[-1,300,10]]],
-["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
-["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
-];
-
-
-
-comment "For each weapon";
-for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
-{
-	itemList=weaponData select _i;
-	itemWeapon=itemList select 0;
-	itemMagType=itemList select 1;
-	itemSeats=itemList select 2;
-
-
-	comment "for each seat";
-	for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
-	{
-
-		seatData=itemSeats select _j;
-		seatIndex=seatData select 0;
-		seatAmmoPerMag=seatData select 1;
-		seatMags=seatData select 2;
-
-		_vic addWeaponTurret[itemWeapon, [seatIndex]];
-		
-		comment "adds mags";
-		for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
-		{
-			_vic  addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
-
-		};
-
-
-
-	};
-
-
-};
-
-
-
-
-comment "gets health";
-_vic   addAction ["<t color='#00FF00'>Damage Report</t>",
-{
-
-
-hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this  select 0)))*100),"%"];
-
-},[1],0,false,true,""," driver  _target == _this "];
-
-
-comment "Increment Throttle";
-_vic  addAction ["<t color='#0000FF'>Increment Throttle--------U16</t>",
-{
-(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01);
-
-},[1],0,false,true,"User16","driver  _target == _this"];
-
-comment "Decrement Throttle";
-_vic  addAction ["<t color='#FF0000'>Decrement Throttle--------U17</t>",
-{
-(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01);	
-
-},[1],0,false,true,"User17","driver  _target == _this"];

+ 83 - 0
Scripts/scripts/zeus3denScripts/vehicleBased/vehicleVariants/airBased/ARC/arcXiphos.sqf

@@ -0,0 +1,83 @@
+xiphosI={
+	params["_vic"];
+
+	comment "data for weapons";
+	comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]";
+	weaponData=[
+	["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,21,2]]],
+	["missiles_Jian","4Rnd_LG_Jian",[[-1,4,1]]],
+	["conmis_arc","ConMisarc_mag",[[-1,8,2]]],
+	["SmokeLauncher","SmokeLauncherMag",[[-1,2,20]]],
+	["CMFlareLauncher","300Rnd_CMFlare_Chaff_Magazine",[[-1,300,10]]],
+	["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
+	["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
+	];
+
+
+
+	comment "For each weapon";
+	for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
+	{
+		itemList=weaponData select _i;
+		itemWeapon=itemList select 0;
+		itemMagType=itemList select 1;
+		itemSeats=itemList select 2;
+
+
+		comment "for each seat";
+		for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
+		{
+
+			seatData=itemSeats select _j;
+			seatIndex=seatData select 0;
+			seatAmmoPerMag=seatData select 1;
+			seatMags=seatData select 2;
+
+			_vic addWeaponTurret[itemWeapon, [seatIndex]];
+			
+			comment "adds mags";
+			for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
+			{
+				_vic  addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
+
+			};
+
+
+
+		};
+
+
+	};
+
+
+
+
+	comment "gets health";
+	_vic   addAction ["<t color='#00FF00'>Damage Report</t>",
+	{
+
+
+	hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this  select 0)))*100),"%"];
+
+	},[1],0,false,true,""," driver  _target == _this "];
+
+
+
+
+	comment "Increment Throttle";
+	_vic  addAction ["<t color='#0000FF'>Increment Throttle--------U16</t>",
+	{
+	(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01);
+
+	},[1],0,false,true,"User16","driver  _target == _this"];
+
+
+	comment "Decrement Throttle";
+	_vic  addAction ["<t color='#FF0000'>Decrement Throttle--------U17</t>",
+	{
+	(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01);	
+
+	},[1],0,false,true,"User17","driver  _target == _this"];
+};
+
+["swop_arc_t", "init",xiphosI, true, [], true] call CBA_fnc_addClassEventHandler; 

+ 73 - 0
Scripts/scripts/zeus3denScripts/vehicleBased/vehicleVariants/airBased/ARC/removeEject.sqf

@@ -0,0 +1,73 @@
+removeEjectARC={
+	params["_vic"];
+	_vic setVehicleLock "LOCKED";
+
+
+	_vic  addAction ["<t color='#FFFF00'>GET IN PILOT------------- U10</t>",
+	{
+
+	params["_this","_user"];
+	_user moveInDriver (vehicle(_this));
+
+	},[1],0,false,true];
+
+
+	_vic  addAction ["<t color='#00FFFF'>GET IN GUNNER------------- U10</t>",
+	{
+
+	params["_this","_user"];
+	_user moveInTurret [ (vehicle(_this)),[0]];
+
+	},[1],0,false,true];
+
+
+	_vic  addAction ["<t color='#0000FF'>GET IN NAV------------- U10</t>",
+	{
+
+	params["_this","_user"];
+	_user moveInTurret [ (vehicle(_this)),[1]];
+
+	},[1],0,false,true];
+
+
+
+
+
+
+
+	_vic  addAction ["<t color='#FF00FF'>GET OUT OF VIC------------- U11</t>",
+	{
+
+	params["_this","_user"];
+	moveOut _user ;
+	},[1],0,false,true,"User12"];
+
+
+
+
+
+	_vic  addAction ["<t color='#FF0000'>LOCK--------U14</t>",
+	{
+
+
+	(vehicle (_this select 0)) setVehicleLock "LOCKED";
+	(vehicle (_this select 0)) vehicleChat "LOCKED";
+
+
+	},[1],0,false,true];
+
+
+
+
+	_vic  addAction ["<t color='#00FF00'>UNLOCK--------U15</t>",
+	{
+
+
+	(vehicle (_this select 0)) setVehicleLock "UNLOCKED";
+	(vehicle (_this select 0)) vehicleChat "UNLOCKED";
+
+	},[1],0,false,true,"User15"];
+
+};
+
+["swop_arc_t", "init",removeEjectARC, true, [], true] call CBA_fnc_addClassEventHandler; 

+ 77 - 0
Scripts/scripts/zeus3denScripts/vehicleBased/vehicleVariants/airBased/LAAT/laatClaymore.sqf

@@ -0,0 +1,77 @@
+ if (!isServer) exitWith {};
+
+laatClaymoreIV={
+    params ["_vic"];
+
+	comment "data for weapons";
+	comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]";
+	weaponData=[
+	["Cannon_LAAT","1000Rnd_Laser_Cannon_LAAT",[[-1,1000,2]]],
+	["missiles_Jian","4Rnd_LG_Jian",[[-1,10,8],[0,1,1]]],
+	["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,8,1],[0,21,1]]],
+	["SmokeLauncher","SmokeLauncherMag",[[-1,2,20]]],
+	["CMFlareLauncher","300Rnd_CMFlare_Chaff_Magazine",[[-1,300,10]]],
+	["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
+	["Cannon_TIE_FAST","10Rnd_FAST_Cannon_TIE",[[1,10,100],[2,10,100]]],
+	["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
+	];
+
+
+
+	comment "remove torpedos";
+	for [{_i=0}, {_i<2}, {_i=_i+1}] do
+	{
+		_vic removeMagazineTurret ["laat_proton_torpedo" ,[-1]];  
+		_vic removeWeaponTurret["laat_proton_torpedo_launcher", [-1]];
+	};
+
+
+
+	comment "For each weapon";
+	for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
+	{
+		itemList=weaponData select _i;
+		itemWeapon=itemList select 0;
+		itemMagType=itemList select 1;
+		itemSeats=itemList select 2;
+
+
+		comment "for each seat";
+		for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
+		{
+
+			seatData=itemSeats select _j;
+			seatIndex=seatData select 0;
+			seatAmmoPerMag=seatData select 1;
+			seatMags=seatData select 2;
+
+			_vic addWeaponTurret[itemWeapon, [seatIndex]];
+			
+			comment "adds mags";
+			for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
+			{
+				_vic addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
+
+			};
+
+
+
+		};
+
+
+	};
+
+
+
+
+	comment "gets health";
+	_vic addAction ["<t color='#00FF00'>Damage Report</t>",
+	{
+
+
+	hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this  select 0)))*100),"%"];
+
+	},[1],0,false,true,""," driver  _target == _this "];
+};
+
+["swop_LAAT", "init",laatClaymoreIV, true, [], true] call CBA_fnc_addClassEventHandler; 

+ 84 - 0
Scripts/scripts/zeus3denScripts/vehicleBased/vehicleVariants/airBased/YWING/ywingScylla.sqf

@@ -0,0 +1,84 @@
+scylla={
+	params["_vic"];
+
+	comment "data for weapons";
+	comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]";
+	weaponData=[
+	["ProtonBombW","ProtonBombM",[[-1,8,3]]],
+	["ProtonBombWCLUSTER","ProtonBombMCluster",[[-1,8,6]]],
+	["Mg7_proton_torpedo_launcher","Mg7_proton_torpedo",[[-1,8,6]]],
+	["missiles_Jian","4Rnd_LG_Jian",[[-1,4,3]]],
+	["Bomb_04_Plane_CAS_01_F","4Rnd_Bomb_04_F",[[-1,4,1]]],
+	["BombCluster_01_F","PylonMissile_1Rnd_BombCluster_01_F",[[-1,4,2]]],
+	["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,4,1]]],
+	["SmokeLauncher","SmokeLauncherMag",[[-1,2,20]]],
+	["CMFlareLauncher","300Rnd_CMFlare_Chaff_Magazine",[[-1,300,10]]],
+	["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
+	["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
+	];
+
+
+
+	comment "For each weapon";
+	for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
+	{
+		itemList=weaponData select _i;
+		itemWeapon=itemList select 0;
+		itemMagType=itemList select 1;
+		itemSeats=itemList select 2;
+
+
+		comment "for each seat";
+		for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
+		{
+
+			seatData=itemSeats select _j;
+			seatIndex=seatData select 0;
+			seatAmmoPerMag=seatData select 1;
+			seatMags=seatData select 2;
+
+			_vic addWeaponTurret[itemWeapon, [seatIndex]];
+			
+			comment "adds mags";
+			for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
+			{
+				_vic  addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
+
+			};
+
+
+
+		};
+
+
+	};
+
+
+
+
+	comment "gets health";
+	_vic   addAction ["<t color='#00FF00'>Damage Report</t>",
+	{
+
+
+	hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this  select 0)))*100),"%"];
+
+	},[1],0,false,true,""," driver  _target == _this "];
+
+
+	comment "Increment Throttle";
+	_vic  addAction ["<t color='#0000FF'>Increment Throttle--------U16</t>",
+	{
+	(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01);
+
+	},[1],0,false,true,"User16","driver  _target == _this"];
+
+	comment "Decrement Throttle";
+	_vic  addAction ["<t color='#FF0000'>Decrement Throttle--------U17</t>",
+	{
+	(_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01);	
+
+	},[1],0,false,true,"User17","driver  _target == _this"];
+};
+
+["swop_ywclone", "init",scylla, true, [], true] call CBA_fnc_addClassEventHandler;