config.cpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(vehicles)
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon rocket_ordinance_tank
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_rot_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(rocket_ordinance_tank)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(rocket_ordinance_tank,Mynock),
  23. macro_new_vehicle(rocket_ordinance_tank,republic),
  24. macro_new_vehicle(rocket_ordinance_tank,CIS)
  25. };
  26. weapons[]=
  27. {
  28. };
  29. };
  30. };
  31. #include "../../common/sensor_templates.hpp"
  32. class DefaultEventhandlers;
  33. class CfgVehicles
  34. {
  35. #include "inheritance.hpp"
  36. class macro_new_vehicle(rocket_ordinance_tank,Mynock) : B_MBT_01_mlrs_F
  37. {
  38. displayName = "Republic Catapult (Mynock)";
  39. crew = "SWOP_Clonetrooper_P1";
  40. author="RD501"
  41. scope = 2;
  42. side=1;
  43. scopeCurator=2;
  44. faction = macro_republic_faction
  45. editorSubcategory = macro_editor_cat(arty)
  46. vehicleClass = macro_editor_vehicle_type(arty)
  47. author = "RD501";
  48. forceInGarage=1;
  49. #include "../Mynock/common_stuff_mynock.hpp"
  50. class TransportItems
  51. {
  52. };
  53. class TransportMagazines
  54. {
  55. };
  56. class TransportWeapons
  57. {
  58. };
  59. textureList[] = {};
  60. hiddenSelectionsTextures[] =
  61. {
  62. "RD501_Vehicles\textures\mbt01\mbt01_ext1_mynock_co.paa",
  63. "RD501_Vehicles\textures\mbt01\catapult\catapult_ext2_mynock_co.paa",
  64. "A3\Armor_F\Data\camonet_NATO_Green_CO.paa"
  65. };
  66. };
  67. class macro_new_vehicle(rocket_ordinance_tank,republic) : macro_new_vehicle(rocket_ordinance_tank,Mynock) {
  68. displayName = "Republic Catapult";
  69. hiddenSelectionsTextures[] =
  70. {
  71. "RD501_Vehicles\textures\mbt01\mbt01_ext1_republic_co.paa",
  72. "RD501_Vehicles\textures\mbt01\catapult\catapult_ext2_republic_co.paa",
  73. "A3\Armor_F\Data\camonet_NATO_Green_CO.paa"
  74. };
  75. }
  76. class macro_new_vehicle(rocket_ordinance_tank,CIS) : macro_new_vehicle(rocket_ordinance_tank,Mynock)
  77. {
  78. displayName = "CIS Catapult";
  79. crew=macro_new_unit_class(opfor,B1_crew)
  80. //scope = 2;
  81. side = 0;
  82. faction = macro_cis_faction
  83. editorSubcategory = macro_editor_cat(arty)
  84. vehicleClass = macro_editor_vehicle_type(arty)
  85. author = "RD501";
  86. hiddenSelectionsTextures[] =
  87. {
  88. "RD501_Vehicles\textures\mbt01\mbt01_ext1_cis_co.paa",
  89. "RD501_Vehicles\textures\mbt01\catapult\catapult_ext2_cis_co.paa",
  90. "A3\Armor_F\Data\camonet_NATO_Green_CO.paa"
  91. };
  92. };
  93. };