config.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 B_Mortar_01_F;
  36. class macro_new_vehicle(mortar,republic):B_Mortar_01_F
  37. {
  38. displayname = "Republic Plasma Mortar";
  39. crew = "swop_clonetrooper";
  40. forceInGarage = 1;
  41. hiddenSelections[] = {"camo"};
  42. hiddenSelectionsTextures[] = {"LAAT\textures\gunship_2_d.paa"};
  43. availableForSupportTypes[] = {"Artillery"};
  44. class EventHandlers :DefaultEventhandlers {};
  45. faction = macro_republic_faction
  46. editorSubcategory = macro_editor_cat(static_turrets)
  47. vehicleClass = macro_editor_vehicle_type(static_turrets)
  48. };
  49. class macro_new_vehicle(mortar,cis):macro_new_vehicle(mortar,republic)
  50. {
  51. displayname = "C.I.S Plasma Mortar";
  52. crew=macro_new_unit_class(opfor,B1_crew)
  53. forceInGarage = 1;
  54. side=0;
  55. faction = macro_cis_faction
  56. editorSubcategory = macro_editor_cat(static_turrets)
  57. vehicleClass = macro_editor_vehicle_type(static_turrets)
  58. hiddenSelections[] = {"camo"};
  59. hiddenSelectionsTextures[] = {"optre_vehicles\hev\data\pod_CO.paa"};
  60. availableForSupportTypes[] = {"Artillery"};
  61. };
  62. };