config.cpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. "RD501_Squad_Shield"
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers;
  32. class CfgVehicles
  33. {
  34. class Items_base_F;
  35. class macro_new_vehicle(bacta,healing): Items_base_F
  36. {
  37. scope = 2;
  38. scopeCurator=2;
  39. author = "Spartan163";
  40. model = "\SW_medical\bacta_tank.p3d";
  41. displayName = "Bacta Tank Mk.II";
  42. hiddenSelections[] = {};
  43. hiddenSelectionsTextures[] = {};
  44. //vehicleClass = "Objects";
  45. icon = "\SW_medical\data\bt_icon.paa";
  46. vehicleClass = macro_editor_vehicle_type(statics)
  47. editorCategory = macro_editor_cat(statics)
  48. editorSubcategory = macro_editor_cat(static_msc)
  49. class EventHandlers:DefaultEventhandlers {};
  50. class ACE_Actions {
  51. class ACE_MainActions {
  52. displayName = "Bacta Tank";
  53. selection = "";
  54. distance = 4;
  55. condition = "true";
  56. class RD501_Heal_All_Nearby
  57. {
  58. displayName = "Heal Nearby";
  59. statement = "[_player, _target, 10] call rd501_fnc_healAllNearby";
  60. condition = "true";
  61. };
  62. class RD501_Heal_Self
  63. {
  64. displayName = "Heal";
  65. statement = "[_player, _player] call ace_medical_treatment_fnc_fullHeal";
  66. condition = "true";
  67. };
  68. };
  69. };
  70. };
  71. class Land_House_Small_03_V1_ruins_F;
  72. class RD501_Squad_Shield: Land_House_Small_03_V1_ruins_F
  73. {
  74. author="$STR_A3_Bohemia_Interactive";
  75. mapSize=21.1;
  76. class SimpleObject
  77. {
  78. eden=0;
  79. animate[]={};
  80. hide[]={};
  81. verticalOffset=-0.023;
  82. verticalOffsetWorld=0;
  83. init="''";
  84. };
  85. editorPreview="\A3\EditorPreviews_F\Data\CfgVehicles\Land_House_Small_03_V1_ruins_F.jpg";
  86. _generalMacro="Land_House_Small_03_V1_ruins_F";
  87. scope=2;
  88. scopeCurator=2;
  89. displayName="Squad Shield";
  90. model="\RD501_Vehicles\static\bubble.p3d";
  91. icon="iconObject_1x1";
  92. editorCategory="EdCat_Ruins_Altis";
  93. editorSubcategory="EdSubcat_Residential_City";
  94. };
  95. };