1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- weaponsList=[
- ["1000Rnd_Laser_Cannon_LAAT","Cannon_LAAT",2,[-1]],
- ["4Rnd_LG_Jian","missiles_Jian",8,[-1]],
- ["magazine_Missile_rim116_x21","weapon_rim116Launcher",1,[0]],
- ["SmokeLauncherMag","SmokeLauncher",10,[-1,0]],
- ["300Rnd_CMFlare_Chaff_Magazine","CMFlareLauncher",10,[-1,0]],
- ["400Rnd_Pomehi_Mag","PomehiLauncherXT",10,[-1,0]],
- ["10Rnd_FAST_Cannon_TIE","Cannon_TIE_FAST",100,[1,2]],
- ["Laserbatteries","Laserdesignator_pilotCamera",1,[-1,0]]
- ];
- 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]];
- };
- comment "adds the weapons";
- comment "goes through each weapon";
- for [{_i=0}, {_i<(count weaponsList)}, {_i=_i+1}] do
- {
- itemList = (weaponsList select _i);
- itemWeap= (itemList select 1);
- itemMag= (itemList select 0);
- itemCount= (itemList select 2);
- itemSeat= (itemList select 3);
- comment "goes through each mag count,aka add magz";
- for [{_j=0}, {_j<itemCount}, {_j=_j+1}] do
- {
- comment "goes through each seat,aka add 1 mag to each seat";
- for [{_k=0}, {_k<(count itemSeat)}, {_k=_k+1}] do
- {
- _this addMagazineTurret [itemMag ,[itemSeat select _k]];
- _this addWeaponTurret[itemWeap, [itemSeat select _k]];
- };
- };
- };
- comment "gets health";
- _this addAction ["<t color='#00FF00'>Damage Report</t>",
- {
- hint parseText format["<t color='#0099FF'> Damage status is :%1</t>",((1-(damage (_this select 0)))*100)];
- },[1],0,false,true,""," driver _target == _this "];
|