arcXiphos.sqf 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. comment "data for weapons";
  2. weaponData=[
  3. ["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,21,2]]],
  4. ["missiles_Jian","4Rnd_LG_Jian",[[-1,4,1]]],
  5. ["conmis_arc","ConMisarc_mag",[[-1,8,2]]],
  6. ["SmokeLauncher","SmokeLauncherMag",[[-1,2,20]]],
  7. ["CMFlareLauncher","300Rnd_CMFlare_Chaff_Magazine",[[-1,300,10]]],
  8. ["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
  9. ["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
  10. ];
  11. comment "For each weapon";
  12. for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
  13. {
  14. itemList=weaponData select _i;
  15. itemWeapon=itemList select 0;
  16. itemMagType=itemList select 1;
  17. itemSeats=itemList select 2;
  18. comment "for each seat";
  19. for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
  20. {
  21. seatData=itemSeats select _j;
  22. seatIndex=seatData select 0;
  23. seatAmmoPerMag=seatData select 1;
  24. seatMags=seatData select 2;
  25. _this addWeaponTurret[itemWeapon, [seatIndex]];
  26. comment "adds mags";
  27. for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
  28. {
  29. _this addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
  30. };
  31. };
  32. };
  33. comment "gets health";
  34. _this addAction ["<t color='#00FF00'>Damage Report</t>",
  35. {
  36. hint parseText format["<t color='#0099FF'> Damage status is :%1</t>",((1-(damage (_this select 0)))*100)];
  37. },[1],0,false,true,""," driver _target == _this "];
  38. comment "Increment Throttle";
  39. _this addAction ["<t color='#0000FF'>Increment Throttle--------U16</t>",
  40. {
  41. (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01);
  42. },[1],0,false,true,"User16","driver _target == _this"];
  43. comment "Decrement Throttle";
  44. _this addAction ["<t color='#FF0000'>Decrement Throttle--------U17</t>",
  45. {
  46. (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01);
  47. },[1],0,false,true,"User17","driver _target == _this"];