config.cpp 7.1 KB

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