ywingScylla1.sqf 2.1 KB

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