config.cpp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 RD501_patch_bacta_tank
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. MACRO_QUOTE(RD501_patch_vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. MACRO_QUOTE(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="kobra\442_misc\bacta\bacta_tank.p3d";
  40. displayName = "Bacta Tank Mk.II";
  41. hiddenSelections[] = {};
  42. hiddenSelectionsTextures[] = {};
  43. //vehicleClass = "Objects";
  44. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(statics));
  45. editorCategory = MACRO_QUOTE(macro_editor_cat(statics));
  46. editorSubcategory = MACRO_QUOTE(macro_editor_cat(static_msc));
  47. class EventHandlers:DefaultEventhandlers {};
  48. class ACE_Actions {
  49. class ACE_MainActions {
  50. displayName = "Bacta Tank";
  51. selection = "";
  52. distance = 4;
  53. condition = "true";
  54. position = "[0,0,1.5]";
  55. class RD501_Heal_All_Nearby
  56. {
  57. displayName = "Heal Nearby";
  58. statement = "[_player, _target, 10] call rd501_fnc_healAllNearby";
  59. condition = "true";
  60. };
  61. class RD501_Heal_Self
  62. {
  63. displayName = "Heal";
  64. statement = "[_player, _player] call ace_medical_treatment_fnc_fullHeal";
  65. condition = "true";
  66. };
  67. };
  68. };
  69. };
  70. };