config.cpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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,republic),
  23. macro_new_vehicle(rocket_ordinance_tank,CIS)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers;
  32. class CfgVehicles
  33. {
  34. #include "inheritance.hpp"
  35. class macro_new_vehicle(rocket_ordinance_tank,republic) : B_MBT_01_mlrs_F
  36. {
  37. displayName = "Republic Catapult";
  38. crew = "SWOP_Clonetrooper_P1";
  39. scope = 2;
  40. side=1;
  41. scopeCurator=2;
  42. faction = macro_republic_faction
  43. editorSubcategory = macro_editor_cat(arty)
  44. vehicleClass = macro_editor_vehicle_type(arty)
  45. author = "RD501";
  46. forceInGarage=1;
  47. class TransportItems
  48. {
  49. };
  50. class TransportMagazines
  51. {
  52. };
  53. class TransportWeapons
  54. {
  55. };
  56. class EventHandlers : DefaultEventhandlers
  57. {
  58. };
  59. textureList[] = {};
  60. hiddenSelectionsTextures[] =
  61. {
  62. "RD501_Vehicles\FE_vehicles\textures\mbt01\mbt01_ext1_mynock_co.paa",
  63. "RD501_Vehicles\FE_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,CIS) : macro_new_vehicle(rocket_ordinance_tank,republic)
  68. {
  69. displayName = "CIS Catapult";
  70. crew = "SWOP_CIS_droid_crew";
  71. //scope = 2;
  72. side = 0;
  73. faction = macro_cis_faction
  74. editorSubcategory = macro_editor_cat(arty)
  75. vehicleClass = macro_editor_vehicle_type(arty)
  76. author = "RD501";
  77. class EventHandlers : DefaultEventhandlers
  78. {
  79. };
  80. hiddenSelectionsTextures[] =
  81. {
  82. "awing\t_awing_03_cw.paa",
  83. "awing\t_awing_03_cw.paa",
  84. "awing\t_awing_03_cw.paa"
  85. };
  86. };
  87. };