config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 mortar
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_mortar_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(mortar)
  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(mortar,republic),
  23. macro_new_vehicle(mortar,cis)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. //remember to do the flares later on when I do effects.
  31. #include "../../common/sensor_templates.hpp"
  32. class DefaultEventhandlers;
  33. class CfgVehicles
  34. {
  35. class Weapon_bag_base;
  36. class JLTS_UAV_prowler_gar_backpack:Weapon_bag_base
  37. {
  38. class assembleInfo;
  39. };
  40. class B_Mortar_01_F;
  41. class macro_new_vehicle(mortar,republic):B_Mortar_01_F
  42. {
  43. displayname = "Republic Plasma Mortar";
  44. crew = "swop_clonetrooper";
  45. forceInGarage = 1;
  46. hiddenSelections[] = {"camo"};
  47. hiddenSelectionsTextures[] = {"LAAT\textures\gunship_2_d.paa"};
  48. availableForSupportTypes[] = {"Artillery"};
  49. class EventHandlers :DefaultEventhandlers {};
  50. faction = macro_republic_faction
  51. editorSubcategory = macro_editor_cat(static_turrets)
  52. vehicleClass = macro_editor_vehicle_type(static_turrets)
  53. class assembleInfo
  54. {
  55. dissasembleTo[]=
  56. {
  57. macro_new_vehicle(stat,mortar_bag)
  58. };
  59. };
  60. };
  61. class macro_new_vehicle(mortar,cis):macro_new_vehicle(mortar,republic)
  62. {
  63. displayname = "C.I.S Plasma Mortar";
  64. crew=macro_new_unit_class(opfor,B1_crew)
  65. forceInGarage = 1;
  66. side=0;
  67. faction = macro_cis_faction
  68. editorSubcategory = macro_editor_cat(static_turrets)
  69. vehicleClass = macro_editor_vehicle_type(static_turrets)
  70. hiddenSelections[] = {"camo"};
  71. hiddenSelectionsTextures[] = {"optre_vehicles\hev\data\pod_CO.paa"};
  72. availableForSupportTypes[] = {"Artillery"};
  73. };
  74. class macro_new_vehicle(stat,mortar_bag):JLTS_UAV_prowler_gar_backpack
  75. {
  76. displayName="Republic Mortar Bag";
  77. hiddenSelectionsTextures[]=
  78. {
  79. "\RD501_Vehicles\static\data\rd501_backpack_staticweapons_sniper.paa"
  80. };
  81. class assembleInfo: assembleInfo
  82. {
  83. displayName="Republic Mortar";
  84. assembleTo = macro_new_vehicle(mortar,republic)
  85. };
  86. };
  87. };