laatClaymore.sqf 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. weaponsList=[
  2. ["1000Rnd_Laser_Cannon_LAAT","Cannon_LAAT",2,[-1],1000],
  3. ["4Rnd_LG_Jian","missiles_Jian",8,[-1],4],
  4. ["magazine_Missile_rim116_x21","weapon_rim116Launcher",1,[0],21],
  5. ["magazine_Missile_rim116_x21","weapon_rim116Launcher",1,[-1],8],
  6. ["SmokeLauncherMag","SmokeLauncher",10,[-1,0],2],
  7. ["300Rnd_CMFlare_Chaff_Magazine","CMFlareLauncher",10,[-1,0],300],
  8. ["400Rnd_Pomehi_Mag","PomehiLauncherXT",10,[-1,0],400],
  9. ["10Rnd_FAST_Cannon_TIE","Cannon_TIE_FAST",100,[1,2],10],
  10. ["Laserbatteries","Laserdesignator_pilotCamera",1,[-1],1]
  11. ];
  12. comment "remove torpedos";
  13. for [{_i=0}, {_i<2}, {_i=_i+1}] do
  14. {
  15. _this removeMagazineTurret ["laat_proton_torpedo" ,[-1]];
  16. _this removeWeaponTurret["laat_proton_torpedo_launcher", [-1]];
  17. };
  18. comment "adds the weapons";
  19. comment "goes through each weapon";
  20. for [{_i=0}, {_i<(count weaponsList)}, {_i=_i+1}] do
  21. {
  22. itemList = (weaponsList select _i);
  23. itemWeap= (itemList select 1);
  24. itemMag= (itemList select 0);
  25. itemCount= (itemList select 2);
  26. itemSeat= (itemList select 3);
  27. ammoCount=(itemList select 4);
  28. comment "goes through each mag count,aka add magz";
  29. for [{_j=0}, {_j<itemCount}, {_j=_j+1}] do
  30. {
  31. comment "goes through each seat,aka add 1 mag to each seat";
  32. for [{_k=0}, {_k<(count itemSeat)}, {_k=_k+1}] do
  33. {
  34. _this addMagazineTurret [itemMag ,[itemSeat select _k],ammoCount];
  35. _this addWeaponTurret[itemWeap, [itemSeat select _k]];
  36. };
  37. };
  38. };
  39. comment "gets health";
  40. _this addAction ["<t color='#00FF00'>Damage Report</t>",
  41. {
  42. hint parseText format["<t color='#0099FF'> Damage status is :%1</t>",((1-(damage (_this select 0)))*100)];
  43. },[1],0,false,true,""," driver _target == _this "];