1
0

config.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. forceInGarage = 1;
  44. availableForSupportTypes[] = {"Artillery"};
  45. class EventHandlers :DefaultEventhandlers {};
  46. faction = macro_republic_faction
  47. editorSubcategory = macro_editor_cat(static_turrets)
  48. vehicleClass = macro_editor_vehicle_type(static_turrets)
  49. class assembleInfo
  50. {
  51. dissasembleTo[]=
  52. {
  53. macro_new_vehicle(stat,mortar_bag)
  54. };
  55. };
  56. };
  57. class macro_new_vehicle(stat,mortar_bag):JLTS_UAV_prowler_gar_backpack
  58. {
  59. displayName="Republic Mortar Bag";
  60. hiddenSelectionsTextures[]=
  61. {
  62. "\RD501_Vehicles\static\data\rd501_backpack_staticweapons_sniper.paa"
  63. };
  64. class assembleInfo: assembleInfo
  65. {
  66. displayName="Republic Mortar";
  67. assembleTo = macro_new_vehicle(mortar,republic)
  68. };
  69. };
  70. };