config.cpp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /*
  2. //Get this addons macro
  3. //get the macro for the air macro_patch_name(vehicles)
  4. //get generlized macros
  5. #include "../../../RD501_main/config_macros.hpp"
  6. //General name of the vehicle
  7. #define vehicle_addon ship_cannon
  8. #define patch_name MODNAME##vehicle_addon##_Patches
  9. #define vehicle_classname MODNAME##_##vehicle_addon
  10. #define macro_new_ship_cannon_class(name) vehicle_classname##_##name
  11. class CfgPatches
  12. {
  13. class macro_patch_name(ship_cannon)
  14. {
  15. addonRootClass=macro_patch_name(vehicles)
  16. requiredAddons[]=
  17. {
  18. macro_patch_name(vehicles)
  19. };
  20. requiredVersion=0.1;
  21. units[]=
  22. {
  23. macro_new_vehicle(ship_cannon,republic),
  24. macro_new_vehicle(ship_cannon,cis),
  25. macro_new_vehicle(ship_cannon,republic_inv),
  26. macro_new_vehicle(ship_cannon,cis_inv)
  27. };
  28. weapons[]=
  29. {
  30. };
  31. };
  32. };
  33. #include "../../common/sensor_templates.hpp"
  34. class DefaultEventhandlers;
  35. class CfgVehicles
  36. {
  37. class LandVehicle;
  38. class StaticWeapon: LandVehicle
  39. {
  40. class turrets;
  41. };
  42. class OPTRE_Corvette_M910_Turret: StaticWeapon
  43. {
  44. class turrets: turrets
  45. {
  46. class mainturret;
  47. };
  48. };
  49. class macro_new_vehicle(ship_cannon,republic): OPTRE_Corvette_M910_Turret
  50. {
  51. author = "RD501";
  52. scope = 2;
  53. side = 1;
  54. displayname = "Republic Cruiser Battery";
  55. scopeCurator = 2;
  56. crew = "SWOP_L501P1_Fives";
  57. class turrets: turrets
  58. {
  59. class mainturret: mainturret
  60. {
  61. memoryPointGun[] = {"z_gunL_chamber","z_gunR_chamber"};
  62. muzzleEnd[] = {"z_gunL_chamber","z_gunR_chamber"};
  63. muzzlePos[] = {"z_gunL_chamber","z_gunR_chamber"};
  64. weapons[] = {"Cannon_TurboLaserx2"};
  65. magazines[] = {"10000Rnd_Laser_Cannon_TurboLaserx2","10000Rnd_Laser_Cannon_TurboLaserx2"};
  66. };
  67. };
  68. faction = macro_republic_faction
  69. editorSubcategory = macro_editor_cat(turrets)
  70. vehicleClass = macro_editor_vehicle_type(turrets)
  71. };
  72. class macro_new_vehicle(ship_cannon,cis): macro_new_vehicle(ship_cannon,republic)
  73. {
  74. side = 0;
  75. displayname = "CIS Cruiser Battery";
  76. crew = "SWOP_CIS_droid_crew";
  77. faction = macro_cis_faction
  78. };
  79. class macro_new_vehicle(ship_cannon,republic_inv): OPTRE_Corvette_M910_Turret_u
  80. {
  81. author = "RD501";
  82. scope = 2;
  83. side = 1;
  84. displayname = "Republic Cruiser Battery (Inverted)";
  85. scopeCurator = 2;
  86. crew = "SWOP_L501P1_Fives";
  87. class turrets: turrets
  88. {
  89. class mainturret: mainturret
  90. {
  91. weapons[] = {"Cannon_TurboLaserx2"};
  92. magazines[] = {"10000Rnd_Laser_Cannon_TurboLaserx2","10000Rnd_Laser_Cannon_TurboLaserx2"};
  93. };
  94. };
  95. faction = macro_republic_faction
  96. editorSubcategory = macro_editor_cat(turrets)
  97. vehicleClass = macro_editor_vehicle_type(turrets)
  98. };
  99. class macro_new_vehicle(ship_cannon,cis_inv): macro_new_vehicle(ship_cannon,republic_inv)
  100. {
  101. side = 0;
  102. displayname = "CIS Cruiser Battery (Inverted)";
  103. crew = "SWOP_CIS_droid_crew";
  104. faction = macro_cis_faction
  105. };
  106. };
  107. */