arcXiphos.sqf 1.6 KB

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