|
@@ -1,4 +1,7 @@
|
|
|
+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]]],
|
|
@@ -15,8 +18,8 @@ weaponData=[
|
|
|
comment "remove torpedos";
|
|
|
for [{_i=0}, {_i<2}, {_i=_i+1}] do
|
|
|
{
|
|
|
-_this removeMagazineTurret ["laat_proton_torpedo" ,[-1]];
|
|
|
-_this removeWeaponTurret["laat_proton_torpedo_launcher", [-1]];
|
|
|
+ _vic removeMagazineTurret ["laat_proton_torpedo" ,[-1]];
|
|
|
+ _vic removeWeaponTurret["laat_proton_torpedo_launcher", [-1]];
|
|
|
};
|
|
|
|
|
|
|
|
@@ -24,32 +27,33 @@ _this 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;
|
|
|
+ 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
|
|
|
-{
|
|
|
+ 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;
|
|
|
+ seatData=itemSeats select _j;
|
|
|
+ seatIndex=seatData select 0;
|
|
|
+ seatAmmoPerMag=seatData select 1;
|
|
|
+ seatMags=seatData select 2;
|
|
|
|
|
|
-_this addWeaponTurret[itemWeapon, [seatIndex]];
|
|
|
-comment "adds mags";
|
|
|
-for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
|
|
|
-{
|
|
|
-_this addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
|
|
|
+ _vic addWeaponTurret[itemWeapon, [seatIndex]];
|
|
|
+
|
|
|
+ comment "adds mags";
|
|
|
+ for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
|
|
|
+ {
|
|
|
+ _vic addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
|
|
|
|
|
|
-};
|
|
|
+ };
|
|
|
|
|
|
|
|
|
|
|
|
-};
|
|
|
+ };
|
|
|
|
|
|
|
|
|
};
|
|
@@ -58,10 +62,10 @@ _this addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
|
|
|
|
|
|
|
|
|
comment "gets health";
|
|
|
-_this addAction ["<t color='#00FF00'>Damage Report</t>",
|
|
|
+_vic addAction ["<t color='#00FF00'>Damage Report</t>",
|
|
|
{
|
|
|
|
|
|
|
|
|
-hint parseText format["<t color='#0099FF'> Damage status is :%1</t>",((1-(damage (_this select 0)))*100)];
|
|
|
+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 "];
|