config.cpp 7.2 KB

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