config.cpp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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,small_medical),
  25. macro_new_vehicle(resuppy_box,small_ammo)
  26. };
  27. weapons[]=
  28. {
  29. };
  30. };
  31. };
  32. #include "../../common/sensor_templates.hpp"
  33. class DefaultEventhandlers;
  34. class CfgVehicles
  35. {
  36. class plp_ct_HighSecContBlack;
  37. class SWOP_BOX_BASE;
  38. class macro_new_vehicle(resuppy_box,platoon_medical): plp_ct_HighSecContBlack
  39. {
  40. scope = 2;
  41. scopeCurator = 2;
  42. displayName = "Republic Platoon Resupply (Medical)";
  43. hiddenSelections[] = {"camo", "camoB", "camo1", "camo2"};
  44. hiddenSelectionsTextures[] = {"\plp_containers\StcHighSec\plp_ct_HighSecContRed.paa", "", "\plp_containers\StcHighSec\plp_ct_HighSec_LightOrange_co.paa", ""};
  45. 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", ""};
  46. editorCategory = macro_editor_cat(suppplies)
  47. editorSubcategory = macro_editor_cat(resupply)
  48. class TransportItems
  49. {
  50. #include "medical_platoon_items.hpp"
  51. };
  52. class EventHandlers :DefaultEventhandlers{};
  53. };
  54. class macro_new_vehicle(resuppy_box,platoon_ammo): plp_ct_HighSecContBlack
  55. {
  56. scope = 2;
  57. scopeCurator = 2;
  58. displayName = "Republic Platoon Resupply (Ammo)";
  59. hiddenSelections[] = {"camo", "camoB", "camo1", "camo2"};
  60. hiddenSelectionsTextures[] = {"\plp_containers\StcHighSec\plp_ct_HighSecContWhite.paa", "", "\plp_containers\StcHighSec\plp_ct_HighSec_LightBlue_co.paa", ""};
  61. 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", ""};
  62. editorCategory = macro_editor_cat(suppplies)
  63. editorSubcategory = macro_editor_cat(resupply)
  64. class TransportItems
  65. {
  66. #include "ammo_platoon_items.hpp"
  67. };
  68. class TransportMagazines
  69. {
  70. #include"ammo_platoon_mag.hpp"
  71. };
  72. class TransportWeapons
  73. {
  74. #include "ammo_platoon_weap.hpp"
  75. };
  76. class EventHandlers :DefaultEventhandlers{};
  77. };
  78. class macro_new_vehicle(resuppy_box,small_medical): SWOP_BOX_BASE
  79. {
  80. author = "RD501";
  81. class SimpleObject
  82. {
  83. eden = 1;
  84. animate[] = {};
  85. hide[] = {};
  86. verticalOffset = 0.1;
  87. verticalOffsetWorld = 0;
  88. init = "''";
  89. };
  90. scope = 2;
  91. scopeCurator = 2;
  92. displayName = "Republic Squad Resupply (Medical)";
  93. model = "\SWOP_props_new\Containers\BoxMedium3r.p3d";
  94. icon = "iconObject_4x5";
  95. vehicleClass = "Ammo";
  96. editorCategory = macro_editor_cat(suppplies)
  97. editorSubcategory = macro_editor_cat(resupply)
  98. ACE_maxWeightCarry = 20000;
  99. ACE_maxWeightDrag = 20000;
  100. class TransportItems
  101. {
  102. #include "medical_small_items.hpp"
  103. };
  104. class EventHandlers :DefaultEventhandlers{
  105. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  106. };
  107. };
  108. class macro_new_vehicle(resuppy_box,small_ammo): SWOP_BOX_BASE
  109. {
  110. author = "RD501";
  111. class SimpleObject
  112. {
  113. eden = 1;
  114. animate[] = {};
  115. hide[] = {};
  116. verticalOffset = 0.1;
  117. verticalOffsetWorld = 0;
  118. init = "''";
  119. };
  120. scope = 2;
  121. scopeCurator = 2;
  122. displayName = "Republic Squad Resupply (Ammo)";
  123. editorSubcategory = macro_editor_cat(resupply)
  124. model = "\SWOP_props_new\Containers\BoxMedium3w.p3d";
  125. icon = "iconObject_4x5";
  126. vehicleClass = "Ammo";
  127. editorCategory = macro_editor_cat(suppplies)
  128. class TransportItems
  129. {
  130. #include "ammo_small_items.hpp"
  131. };
  132. class TransportMagazines
  133. {
  134. #include "ammo_small_mag.hpp"
  135. };
  136. class TransportWeapons
  137. {
  138. #include "ammo_small_weap.hpp"
  139. };
  140. class EventHandlers :DefaultEventhandlers{
  141. init ="ACE_maxWeightCarry = 20000;ACE_maxWeightDrag = 20000;";
  142. };
  143. };
  144. };