arcXiphos.sqf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. weaponsList=[
  2. ["magazine_Missile_rim116_x21","weapon_rim116Launcher",4,[-1,0,1]],
  3. ["4Rnd_LG_Jian","missiles_Jian",4,[-1,0,1]],
  4. ["Laserbatteries","Laserdesignator_pilotCamera",1,[-1,0,1]],
  5. ["400Rnd_Pomehi_Mag","PomehiLauncherXT",10,[-1,0,1]],
  6. ["10Rnd_FAST_Cannon_TIE","Cannon_TIE_FAST",100,[1]],
  7. ["SmokeLauncherMag","SmokeLauncher",10,[-1,0,1]],
  8. ["300Rnd_CMFlare_Chaff_Magazine","CMFlareLauncher",10,[-1,0,1]]
  9. ];
  10. for [{_i=0}, {_i<(count weaponsList)}, {_i=_i+1}] do
  11. {
  12. itemList = (weaponsList select _i);
  13. itemWeap= (itemList select 1);
  14. itemMag= (itemList select 0);
  15. itemCount= (itemList select 2);
  16. itemSeat= (itemList select 3);
  17. for [{_j=0}, {_j<itemCount}, {_j=_j+1}] do
  18. {
  19. for [{_k=0}, {_k<(count itemSeat)}, {_k=_k+1}] do
  20. {
  21. _this addMagazineTurret [itemMag ,[itemSeat select _k]];
  22. _this addWeaponTurret[itemWeap, [itemSeat select _k]];
  23. };
  24. };
  25. };
  26. _this addAction ["<t color='#FFFF00'>GET OUT OF VIC------------- U11</t>",
  27. {
  28. (vehicle (_this select 0)) setVehicleLock "UNLOCKED";
  29. (vehicle (_this select 0)) vehicleChat "UNLOCKED";
  30. params["_this","_user"];
  31. moveOut _user ;
  32. },[1],0,false,true,"User12"];
  33. comment "Increment Throttle";
  34. _this addAction ["<t color='#0000FF'>Increment Throttle--------U16</t>",
  35. {
  36. (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01);
  37. },[1],0,false,true,"User16"];
  38. comment "Decrement Throttle";
  39. _this addAction ["<t color='#FF0000'>Decrement Throttle--------U17</t>",
  40. {
  41. (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01);
  42. },[1],0,false,true,"User17"];