config.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #define COMPONENT vehicle_weapons
  2. #include "script_component.hpp"
  3. class CfgPatches
  4. {
  5. class RD501_patch_vehicle_weapons
  6. {
  7. author=DANKAUTHORS;
  8. requiredAddons[]=
  9. {
  10. macro_lvl1_req,
  11. "3AS_LAAT"
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(pylon_laser,v_wing),
  17. macro_new_weapon(pylon_generic,kannon)
  18. };
  19. };
  20. };
  21. //scopes
  22. class CfgWeapons
  23. {
  24. class macro_new_weapon(generic,green_dual_aircraft_laser);
  25. class macro_new_weapon(pylon_laser,v_wing) : macro_new_weapon(generic,green_dual_aircraft_laser)
  26. {
  27. displayName = "Laser gun (Pylon)";
  28. displayNameShort = "Laser";
  29. magazines[]={macro_new_mag(pylon_generic_aircraft_gun_asg,3000)};
  30. };
  31. };
  32. class CfgMagazineWells
  33. {
  34. class macro_new_magwell(generic_aircraft_laser)
  35. {
  36. macro_new_magwell(generic_aircraft_colors)[]=
  37. {
  38. macro_new_mag(generic_aircraft_gun,1000),
  39. macro_new_mag(generic_aircraft_gun_blue,1000),
  40. macro_new_mag(generic_aircraft_gun_green,1000),
  41. macro_new_mag(generic_aircraft_gun_purple,1000),
  42. macro_new_mag(generic_aircraft_gun_preatorian,1000)
  43. };
  44. };
  45. class macro_new_magwell(generic_aircraft_cannon)
  46. {
  47. macro_new_magwell(generic_aircraft_colors)[]=
  48. {
  49. macro_new_mag(generic_aircraft_cannon_red,1000),
  50. macro_new_mag(generic_aircraft_cannon_green,1000),
  51. macro_new_mag(generic_aircraft_cannon_blue,1000),
  52. macro_new_mag(generic_aircraft_cannon_plasma_red,1000),
  53. macro_new_mag(generic_aircraft_cannon_plasma_blue,1000),
  54. macro_new_mag(generic_aircraft_cannon_purple,1000)
  55. };
  56. };
  57. };