arcXiphos.sqf 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. xiphosI={
  2. params["_vic"];
  3. //if (!(_vic getVariable ["namReconfigured", false])) then
  4. //{
  5. comment "data for weapons";
  6. comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]";
  7. weaponData=[
  8. ["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,16,1]]],
  9. ["missiles_Jian","4Rnd_LG_Jian",[[-1,4,1]]],
  10. ["conmis_arc","ConMisarc_mag",[[-1,8,2]]],
  11. ["GBU12BombLauncher","2Rnd_GBU12_LGB",[[-1,2,1]]],
  12. ["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]],
  13. ["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]]
  14. ];
  15. comment "For each weapon";
  16. for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do
  17. {
  18. itemList=weaponData select _i;
  19. itemWeapon=itemList select 0;
  20. itemMagType=itemList select 1;
  21. itemSeats=itemList select 2;
  22. comment "for each seat";
  23. for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do
  24. {
  25. seatData=itemSeats select _j;
  26. seatIndex=seatData select 0;
  27. seatAmmoPerMag=seatData select 1;
  28. seatMags=seatData select 2;
  29. _vic addWeaponTurret[itemWeapon, [seatIndex]];
  30. comment "adds mags";
  31. for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do
  32. {
  33. _vic addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag];
  34. };
  35. };
  36. };
  37. // _vic setVariable ["namReconfigured", true, true];
  38. // }
  39. // else {};
  40. // function as file
  41. _vic addAction ["<t color='#886688'>Smoker--------U13</t>",
  42. {[_this select 0] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\ARC\arcSmokeTip.sqf";}
  43. ,[1],0,false,true,"User13"," driver _target == _this"];
  44. comment "gets health";
  45. _vic addAction ["<t color='#00FF00'>Damage Report</t>",
  46. {
  47. hint parseText format["<t color='#0099FF'> Hull Integrity is :%1%2</t>",((1-(damage (_this select 0)))*100),"%"];
  48. },[1],0,false,true,""," driver _target == _this "];
  49. comment "Increment Throttle";
  50. _vic addAction ["<t color='#0000FF'>Increment Throttle--------U16</t>",
  51. {
  52. (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01);
  53. },[1],0,false,true,"User16","driver _target == _this"];
  54. comment "Decrement Throttle";
  55. _vic addAction ["<t color='#FF0000'>Decrement Throttle--------U17</t>",
  56. {
  57. (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01);
  58. },[1],0,false,true,"User17","driver _target == _this"];
  59. [_vic] execVm "scripts\zeus3denScripts\vehicleBased\vehicleVariants\airBased\ARC\removeEject.sqf";
  60. };
  61. ["swop_arc_t", "init",xiphosI, true, [], true] call CBA_fnc_addClassEventHandler;