arcXiphos.sqf 1.6 KB

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