config.cpp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //Get this addons macro
  2. //get the macro for the air subaddon
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon bacta_tank
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_bacta_tank_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(bacta_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(bacta,healing)
  23. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. #include "../../common/sensor_templates.hpp"
  30. class DefaultEventhandlers;
  31. class CfgVehicles
  32. {
  33. class Items_base_F;
  34. class macro_new_vehicle(bacta,healing): Items_base_F
  35. {
  36. scope = 2;
  37. scopeCurator=2;
  38. author = "Spartan163";
  39. model = "\SW_medical\bacta_tank.p3d";
  40. displayName = "Bacta Tank Mk.II";
  41. hiddenSelections[] = {};
  42. hiddenSelectionsTextures[] = {};
  43. //vehicleClass = "Objects";
  44. icon = "\SW_medical\data\bt_icon.paa";
  45. vehicleClass = macro_editor_vehicle_type(statics)
  46. editorCategory = macro_editor_cat(statics)
  47. editorSubcategory = macro_editor_cat(static_msc)
  48. class EventHandlers:DefaultEventhandlers {};
  49. class ACE_Actions {
  50. class ACE_MainActions {
  51. class RD501_Heal_All_Nearby
  52. {
  53. displayName = "Heal Nearby";
  54. statement = "[_player, _target, 10] call rd501_fnc_healAllNearby";
  55. condition = "true";
  56. };
  57. };
  58. };
  59. };
  60. };