config.cpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. //remember to do the flares later on when I do effects.
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers;
  32. class CfgVehicles
  33. {
  34. class Weapon_bag_base;
  35. class JLTS_UAV_prowler_gar_backpack:Weapon_bag_base
  36. {
  37. class assembleInfo;
  38. };
  39. class B_Mortar_01_F;
  40. class macro_new_vehicle(mortar,republic):B_Mortar_01_F
  41. {
  42. displayname = "Republic Plasma Mortar";
  43. crew = "swop_clonetrooper";
  44. forceInGarage = 1;
  45. hiddenSelections[] = {"camo"};
  46. hiddenSelectionsTextures[] = {"LAAT\textures\gunship_2_d.paa"};
  47. availableForSupportTypes[] = {"Artillery"};
  48. class EventHandlers :DefaultEventhandlers {};
  49. faction = macro_republic_faction
  50. editorSubcategory = macro_editor_cat(static_turrets)
  51. vehicleClass = macro_editor_vehicle_type(static_turrets)
  52. class assembleInfo
  53. {
  54. dissasembleTo[]=
  55. {
  56. macro_new_vehicle(stat,mortar_bag)
  57. };
  58. };
  59. };
  60. class macro_new_vehicle(stat,mortar_bag):JLTS_UAV_prowler_gar_backpack
  61. {
  62. displayName="Republic Mortar Bag";
  63. hiddenSelectionsTextures[]=
  64. {
  65. "\RD501_Vehicles\static\data\rd501_backpack_staticweapons_sniper.paa"
  66. };
  67. class assembleInfo: assembleInfo
  68. {
  69. displayName="Republic Mortar";
  70. assembleTo = macro_new_vehicle(mortar,republic)
  71. };
  72. };
  73. };