config.cpp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. };
  29. weapons[]=
  30. {
  31. };
  32. };
  33. };
  34. #include "../../common/sensor_templates.hpp"
  35. class DefaultEventhandlers;
  36. class CfgVehicles
  37. {
  38. class plp_ct_HighSecContBlack;
  39. class SWOP_BOX_BASE;
  40. class plp_ct_HighSecBigBlack;
  41. class macro_new_vehicle(resuppy_box,platoon_medical): plp_ct_HighSecContBlack
  42. {
  43. scope = 2;
  44. scopeCurator = 2;
  45. displayName = "Republic Platoon Resupply (Medical)";
  46. hiddenSelections[] = {"camo", "camoB", "camo1", "camo2"};
  47. hiddenSelectionsTextures[] = {"\plp_containers\StcHighSec\plp_ct_HighSecContRed.paa", "", "\plp_containers\StcHighSec\plp_ct_HighSec_LightOrange_co.paa", ""};
  48. 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", ""};
  49. editorCategory = macro_editor_cat(suppplies)
  50. editorSubcategory = macro_editor_cat(resupply)
  51. class TransportItems
  52. {
  53. #include "medical_platoon_items.hpp"
  54. };
  55. class EventHandlers :DefaultEventhandlers{};
  56. };
  57. class macro_new_vehicle(resuppy_box,platoon_ammo): plp_ct_HighSecContBlack
  58. {
  59. scope = 2;
  60. scopeCurator = 2;
  61. displayName = "Republic Platoon Resupply (Ammo)";
  62. hiddenSelections[] = {"camo", "camoB", "camo1", "camo2"};
  63. hiddenSelectionsTextures[] = {"\plp_containers\StcHighSec\plp_ct_HighSecContWhite.paa", "", "\plp_containers\StcHighSec\plp_ct_HighSec_LightBlue_co.paa", ""};
  64. 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", ""};
  65. editorCategory = macro_editor_cat(suppplies)
  66. editorSubcategory = macro_editor_cat(resupply)
  67. class TransportItems
  68. {
  69. #include "ammo_platoon_items.hpp"
  70. };
  71. class TransportMagazines
  72. {
  73. #include"ammo_platoon_mag.hpp"
  74. };
  75. class TransportWeapons
  76. {
  77. #include "ammo_platoon_weap.hpp"
  78. };
  79. class EventHandlers :DefaultEventhandlers{};
  80. };
  81. class macro_new_vehicle(resuppy_box,platoon_joint): plp_ct_HighSecContBlack
  82. {
  83. scope = 2;
  84. scopeCurator = 2;
  85. displayName = "Republic Platoon Resupply (Joint)";
  86. model = "plp_containers\StcHighSec\plp_cts_HighSecContBlack.p3d";
  87. editorCategory = macro_editor_cat(suppplies)
  88. editorSubcategory = macro_editor_cat(resupply)
  89. class TransportItems
  90. {
  91. #include "ammo_platoon_items.hpp"
  92. #include "medical_platoon_items.hpp"
  93. };
  94. class TransportMagazines
  95. {
  96. #include"ammo_platoon_mag.hpp"
  97. };
  98. class TransportWeapons
  99. {
  100. #include "ammo_platoon_weap.hpp"
  101. };
  102. class EventHandlers :DefaultEventhandlers{};
  103. };
  104. class macro_new_vehicle(resuppy_box,small_medical): SWOP_BOX_BASE
  105. {
  106. author = "RD501";
  107. class SimpleObject
  108. {
  109. eden = 1;
  110. animate[] = {};
  111. hide[] = {};
  112. verticalOffset = 0.1;
  113. verticalOffsetWorld = 0;
  114. init = "''";
  115. };
  116. scope = 2;
  117. scopeCurator = 2;
  118. displayName = "Republic Squad Resupply (Medical)";
  119. model = "\SWOP_props_new\Containers\BoxMedium3r.p3d";
  120. icon = "iconObject_4x5";
  121. vehicleClass = "Ammo";
  122. editorCategory = macro_editor_cat(suppplies)
  123. editorSubcategory = macro_editor_cat(resupply)
  124. ACE_maxWeightCarry = 20000;
  125. ACE_maxWeightDrag = 20000;
  126. ace_cargo_size = 1;
  127. class TransportItems
  128. {
  129. #include "medical_small_items.hpp"
  130. };
  131. class EventHandlers :DefaultEventhandlers{
  132. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  133. };
  134. };
  135. class macro_new_vehicle(resuppy_box,small_ammo): 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 (Ammo)";
  150. editorSubcategory = macro_editor_cat(resupply)
  151. model = "\SWOP_props_new\Containers\BoxMedium3w.p3d";
  152. icon = "iconObject_4x5";
  153. vehicleClass = "Ammo";
  154. editorCategory = macro_editor_cat(suppplies)
  155. ace_cargo_size = 1;
  156. class TransportItems
  157. {
  158. #include "ammo_small_items.hpp"
  159. #include "medical_small_items.hpp"
  160. };
  161. class TransportMagazines
  162. {
  163. #include "ammo_small_mag.hpp"
  164. };
  165. class TransportWeapons
  166. {
  167. #include "ammo_small_weap.hpp"
  168. };
  169. };
  170. class macro_new_vehicle(resuppy_box,small_joint): plp_ct_HighSecBigBlack
  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 (Joint)";
  185. editorSubcategory = macro_editor_cat(resupply)
  186. vehicleClass = "Ammo";
  187. editorCategory = macro_editor_cat(suppplies)
  188. maxload=1000000000;
  189. ace_cargo_size = 2;
  190. ace_cargo_canLoad = 1;
  191. class TransportItems
  192. {
  193. #include "ammo_small_items.hpp"
  194. };
  195. class TransportMagazines
  196. {
  197. #include "ammo_small_mag.hpp"
  198. };
  199. class TransportWeapons
  200. {
  201. #include "ammo_small_weap.hpp"
  202. };
  203. class EventHandlers :DefaultEventhandlers{
  204. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  205. };
  206. };
  207. };