1
0

config.cpp 1.5 KB

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