laatClaymore3.sqf 1.4 KB

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