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