config.cpp 6.8 KB

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