config.cpp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. //Get this addons macro
  2. //get the macro for the air RD501_patch_vehicles
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon resuppy_box
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_rs_box_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class RD501_patch_resuppy_box
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. RD501_patch_vehicles
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {,
  22. macro_new_vehicle(resuppy_box,small_medical),
  23. macro_new_vehicle(resuppy_box,small_ammo),
  24. macro_new_vehicle(resuppy_box,small_uav),
  25. macro_new_vehicle(resuppy_box,platoon_medical_tent)
  26. };
  27. weapons[]=
  28. {
  29. };
  30. };
  31. };
  32. #include "../../common/sensor_templates.hpp"
  33. class DefaultEventhandlers;
  34. class CfgVehicles
  35. {
  36. class 442_box5_1;
  37. class 442_box10;
  38. class 442_box4;
  39. class macro_new_vehicle(resuppy_box,small_medical): 442_box5_1
  40. {
  41. author = "RD501";
  42. class SimpleObject
  43. {
  44. eden = 1;
  45. animate[] = {};
  46. hide[] = {};
  47. verticalOffset = 0.1;
  48. verticalOffsetWorld = 0;
  49. init = "''";
  50. };
  51. scope = 2;
  52. scopeCurator = 2;
  53. displayName = "Republic Squad Resupply (Medical)";
  54. icon = "iconObject_4x5";
  55. vehicleClass = "Ammo";
  56. editorCategory = MACRO_QUOTE(macro_editor_cat(suppplies));
  57. editorSubcategory = MACRO_QUOTE(macro_editor_cat(resupply));
  58. ACE_maxWeightCarry = 20000;
  59. ACE_maxWeightDrag = 20000;
  60. ace_cargo_size = 1;
  61. class TransportItems
  62. {
  63. #include "medical_small_items.hpp"
  64. };
  65. class TransportMagazines{};
  66. class TransportBackpacks{};
  67. class EventHandlers :DefaultEventhandlers{
  68. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  69. };
  70. };
  71. class macro_new_vehicle(resuppy_box,small_ammo): 442_box10
  72. {
  73. author = "RD501";
  74. class SimpleObject
  75. {
  76. eden = 1;
  77. animate[] = {};
  78. hide[] = {};
  79. verticalOffset = 0.1;
  80. verticalOffsetWorld = 0;
  81. init = "''";
  82. };
  83. scope = 2;
  84. scopeCurator = 2;
  85. displayName = "Republic Squad Resupply (Ammo)";
  86. editorSubcategory = MACRO_QUOTE(macro_editor_cat(resupply));
  87. icon = "iconObject_4x5";
  88. vehicleClass = "Ammo";
  89. editorCategory = MACRO_QUOTE(macro_editor_cat(suppplies));
  90. ace_cargo_size = 1;
  91. class TransportItems
  92. {
  93. };
  94. class TransportMagazines
  95. {
  96. #include "ammo_small_mag.hpp"
  97. };
  98. class TransportWeapons
  99. {
  100. #include "ammo_small_weap.hpp"
  101. };
  102. class TransportBackpacks{};
  103. };
  104. class macro_new_vehicle(resuppy_box,small_uav): 442_box4
  105. {
  106. author = "RD501";
  107. class SimpleObject
  108. {
  109. eden = 1;
  110. animate[] = {};
  111. hide[] = {};
  112. verticalOffset = 0.1;
  113. verticalOffsetWorld = 0;
  114. init = "''";
  115. };
  116. scope = 2;
  117. scopeCurator = 2;
  118. displayName = "Republic UAV Resupply";
  119. editorSubcategory = MACRO_QUOTE(macro_editor_cat(resupply));
  120. vehicleClass = "Ammo";
  121. editorCategory = MACRO_QUOTE(macro_editor_cat(suppplies));
  122. maxload=1000000000;
  123. ace_cargo_size = 2;
  124. ace_cargo_canLoad = 1;
  125. class TransportBackpacks
  126. {
  127. class _transport_r2
  128. {
  129. backpack=MACRO_QUOTE(macro_new_vehicle(drone,Clone_Recon_bag));
  130. count=1;
  131. };
  132. class _transport_eddie
  133. {
  134. backpack="B_UGV_02_Demining_backpack_F";
  135. count=1;
  136. };
  137. class TransportMagazines{};
  138. };
  139. class TransportItems{};
  140. class TransportMagazines{};
  141. class TransportWeapons{};
  142. class EventHandlers :DefaultEventhandlers{
  143. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  144. };
  145. };
  146. };