config.cpp 6.7 KB

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