config.cpp 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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 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 macro_patch_name(resuppy_box)
  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(resuppy_box,platoon_medical),
  23. macro_new_vehicle(resuppy_box,platoon_ammo),
  24. macro_new_vehicle(resuppy_box,platoon_joint),
  25. macro_new_vehicle(resuppy_box,small_medical),
  26. macro_new_vehicle(resuppy_box,small_ammo),
  27. macro_new_vehicle(resuppy_box,small_uav),
  28. macro_new_vehicle(resuppy_box,platoon_medical_tent)
  29. };
  30. weapons[]=
  31. {
  32. };
  33. };
  34. };
  35. #include "../../common/sensor_templates.hpp"
  36. class DefaultEventhandlers;
  37. class CfgVehicles
  38. {
  39. class plp_ct_HighSecContBlack;
  40. class 442_box5_1;
  41. class 442_box10;
  42. class 442_box4;
  43. class SWOP_BOX_BASE;
  44. class plp_ct_HighSecBigBlack;
  45. class macro_new_vehicle(resuppy_box,platoon_medical): plp_ct_HighSecContBlack
  46. {
  47. scope = 2;
  48. scopeCurator = 2;
  49. displayName = "Republic Platoon Resupply (Medical)";
  50. hiddenSelections[] = {"camo", "camoB", "camo1", "camo2"};
  51. hiddenSelectionsTextures[] = {"\plp_containers\StcHighSec\plp_ct_HighSecContRed.paa", "", "\plp_containers\StcHighSec\plp_ct_HighSec_LightOrange_co.paa", ""};
  52. hiddenSelectionsMaterials[] = {"\plp_containers\StcHighSec\plp_ct_HighSecCont_Metal.rvmat", "\plp_containers\StcHighSec\plp_ct_HighSecCont_MetalB.rvmat", "\plp_containers\StcHighSec\plp_ct_HighSec_Light.rvmat", ""};
  53. editorCategory = macro_editor_cat(suppplies)
  54. editorSubcategory = macro_editor_cat(resupply)
  55. RD501_magclamp_small_offset[]={0.0,0.0,-0.4};
  56. class TransportItems
  57. {
  58. #include "medical_platoon_items.hpp"
  59. };
  60. class EventHandlers :DefaultEventhandlers{};
  61. };
  62. class macro_new_vehicle(resuppy_box,platoon_medical_tent): plp_ct_HighSecContBlack
  63. {
  64. scope = 2;
  65. scopeCurator = 2;
  66. displayName = "Republic M*A*S*H";
  67. hiddenSelections[] = {"camo", "camoB", "camo1", "camo2"};
  68. hiddenSelectionsTextures[] = {"\plp_containers\StcHighSec\plp_ct_HighSecContRed.paa", "", "\plp_containers\StcHighSec\plp_ct_HighSec_LightOrange_co.paa", ""};
  69. hiddenSelectionsMaterials[] = {"\plp_containers\StcHighSec\plp_ct_HighSecCont_Metal.rvmat", "\plp_containers\StcHighSec\plp_ct_HighSecCont_MetalB.rvmat", "\plp_containers\StcHighSec\plp_ct_HighSec_Light.rvmat", ""};
  70. editorCategory = macro_editor_cat(suppplies)
  71. editorSubcategory = macro_editor_cat(resupply)
  72. RD501_magclamp_small_offset[]={0.0,0.0,-0.4};
  73. class TransportItems{};
  74. class EventHandlers :DefaultEventhandlers{};
  75. class ACE_Actions {
  76. class ACE_MainActions {
  77. displayName = "Deployable CCP";
  78. condition = "true";
  79. distance = 4;
  80. class rd501_deploy_medical_ccp {
  81. displayName = "Deploy";
  82. statement = "_this call rd501_fnc_deployCCP";
  83. icon = "rd501_main\ui_icons\medical_emblem.paa";
  84. exceptions[] = {};
  85. };
  86. };
  87. };
  88. };
  89. class macro_new_vehicle(resuppy_box,platoon_ammo): plp_ct_HighSecContBlack
  90. {
  91. scope = 2;
  92. scopeCurator = 2;
  93. displayName = "Republic Platoon Resupply (Ammo)";
  94. hiddenSelections[] = {"camo", "camoB", "camo1", "camo2"};
  95. hiddenSelectionsTextures[] = {"\plp_containers\StcHighSec\plp_ct_HighSecContWhite.paa", "", "\plp_containers\StcHighSec\plp_ct_HighSec_LightBlue_co.paa", ""};
  96. hiddenSelectionsMaterials[] = {"\plp_containers\StcHighSec\plp_ct_HighSecCont_Metal.rvmat", "\plp_containers\StcHighSec\plp_ct_HighSecCont_MetalB.rvmat", "\plp_containers\StcHighSec\plp_ct_HighSec_Light.rvmat", ""};
  97. editorCategory = macro_editor_cat(suppplies)
  98. editorSubcategory = macro_editor_cat(resupply)
  99. RD501_magclamp_small_offset[]={0.0,0.0,-0.4};
  100. class TransportItems
  101. {
  102. //#include "ammo_platoon_items.hpp"
  103. };
  104. class TransportMagazines
  105. {
  106. //#include"ammo_platoon_mag.hpp"
  107. };
  108. class TransportWeapons
  109. {
  110. //#include "ammo_platoon_weap.hpp"
  111. };
  112. class EventHandlers :DefaultEventhandlers{};
  113. };
  114. class macro_new_vehicle(resuppy_box,platoon_joint): plp_ct_HighSecContBlack
  115. {
  116. scope = 2;
  117. scopeCurator = 2;
  118. displayName = "Republic Platoon Resupply (Joint)";
  119. model = "plp_containers\StcHighSec\plp_cts_HighSecContBlack.p3d";
  120. editorCategory = macro_editor_cat(suppplies)
  121. editorSubcategory = macro_editor_cat(resupply)
  122. RD501_magclamp_small_offset[]={0.0,0.0,-0.4};
  123. class TransportItems
  124. {
  125. //#include "ammo_platoon_items.hpp"
  126. //#include "medical_platoon_items.hpp"
  127. };
  128. class TransportMagazines
  129. {
  130. //#include"ammo_platoon_mag.hpp"
  131. };
  132. class TransportWeapons
  133. {
  134. //#include "ammo_platoon_weap.hpp"
  135. };
  136. class EventHandlers :DefaultEventhandlers{};
  137. };
  138. class macro_new_vehicle(resuppy_box,small_medical): 442_box5_1
  139. {
  140. author = "RD501";
  141. class SimpleObject
  142. {
  143. eden = 1;
  144. animate[] = {};
  145. hide[] = {};
  146. verticalOffset = 0.1;
  147. verticalOffsetWorld = 0;
  148. init = "''";
  149. };
  150. scope = 2;
  151. scopeCurator = 2;
  152. displayName = "Republic Squad Resupply (Medical)";
  153. icon = "iconObject_4x5";
  154. vehicleClass = "Ammo";
  155. editorCategory = macro_editor_cat(suppplies)
  156. editorSubcategory = macro_editor_cat(resupply)
  157. ACE_maxWeightCarry = 20000;
  158. ACE_maxWeightDrag = 20000;
  159. ace_cargo_size = 1;
  160. class TransportItems
  161. {
  162. #include "medical_small_items.hpp"
  163. };
  164. class TransportMagazines{};
  165. class TransportBackpacks{};
  166. class EventHandlers :DefaultEventhandlers{
  167. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  168. };
  169. };
  170. class macro_new_vehicle(resuppy_box,small_ammo): 442_box10
  171. {
  172. author = "RD501";
  173. class SimpleObject
  174. {
  175. eden = 1;
  176. animate[] = {};
  177. hide[] = {};
  178. verticalOffset = 0.1;
  179. verticalOffsetWorld = 0;
  180. init = "''";
  181. };
  182. scope = 2;
  183. scopeCurator = 2;
  184. displayName = "Republic Squad Resupply (Ammo)";
  185. editorSubcategory = macro_editor_cat(resupply)
  186. icon = "iconObject_4x5";
  187. vehicleClass = "Ammo";
  188. editorCategory = macro_editor_cat(suppplies)
  189. ace_cargo_size = 1;
  190. class TransportItems
  191. {
  192. };
  193. class TransportMagazines
  194. {
  195. #include "ammo_small_mag.hpp"
  196. };
  197. class TransportWeapons
  198. {
  199. #include "ammo_small_weap.hpp"
  200. };
  201. class TransportBackpacks{};
  202. };
  203. class macro_new_vehicle(resuppy_box,small_uav): 442_box4
  204. {
  205. author = "RD501";
  206. class SimpleObject
  207. {
  208. eden = 1;
  209. animate[] = {};
  210. hide[] = {};
  211. verticalOffset = 0.1;
  212. verticalOffsetWorld = 0;
  213. init = "''";
  214. };
  215. scope = 2;
  216. scopeCurator = 2;
  217. displayName = "Republic UAV Resupply";
  218. editorSubcategory = macro_editor_cat(resupply)
  219. vehicleClass = "Ammo";
  220. editorCategory = macro_editor_cat(suppplies)
  221. maxload=1000000000;
  222. ace_cargo_size = 2;
  223. ace_cargo_canLoad = 1;
  224. class TransportBackpacks
  225. {
  226. class _transport_r2
  227. {
  228. backpack=macro_new_vehicle(drone,Clone_Recon_bag)
  229. count=1;
  230. };
  231. class _transport_eddie
  232. {
  233. backpack="B_UGV_02_Demining_backpack_F";
  234. count=1;
  235. };
  236. class TransportMagazines{};
  237. };
  238. class TransportItems{};
  239. class TransportMagazines{};
  240. class TransportWeapons{};
  241. class EventHandlers :DefaultEventhandlers{
  242. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  243. };
  244. };
  245. };