config.cpp.old 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. #include "../../config_macros.hpp"
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../../RD501_main/config_macros.hpp"
  4. #define unit_addon B2
  5. #define patch_name MODNAME##unit_addon##_Patches
  6. #define unit_classname MODNAME##_##unit_addon
  7. class CfgPatches
  8. {
  9. class macro_patch_name(b2_units)
  10. {
  11. addonRootClass=macro_patch_name(units);
  12. requiredAddons[]=
  13. {
  14. macro_patch_name(units)
  15. };
  16. requiredVersion=0.1;
  17. units[]={
  18. "SWOP_CIS_superdroid_B2",
  19. macro_new_unit_class(opfor,B2_droid_Standard),
  20. macro_new_unit_class(opfor,B2_droid_Rocket),
  21. macro_new_unit_class(opfor,B2_super_droid_Rocket),
  22. macro_new_unit_class(opfor,B2_aqua),
  23. macro_new_unit_class(opfor,B2_droid_Test),
  24. macro_new_uniform_class(opfor,B2_Armor),
  25. macro_new_uniform_class(opfor,B2_Aqua),
  26. macro_new_uniform_class(opfor,B2_Armor_Test),
  27. macro_new_uniform_skin_class(opfor,B2_Rocket),
  28. macro_new_uniform_skin_class(opfor,B2_Aqua),
  29. macro_new_uniform_skin_class(opfor,B2_Test)
  30. };
  31. weapons[]=
  32. {
  33. };
  34. };
  35. };
  36. class cfgWeapons
  37. {
  38. /**
  39. * UNIFORMS
  40. * the item the unit wears in the uniform slot
  41. */
  42. class ItemCore;
  43. class Uniform_Base: ItemCore
  44. {
  45. class ItemInfo;
  46. };
  47. class VestItem;
  48. class UniformItem;
  49. class SWOP_B2_superdroid_F_Spec;
  50. class macro_new_uniform_class(opfor,B2_Armor): SWOP_B2_superdroid_F_Spec
  51. {
  52. author = "SWOP";
  53. scope = 2;
  54. displayName = "B2 battledroid (Rocket)";
  55. picture = "\SWOP_droids\data\ico\B2ico.paa";
  56. nakedUniform = "U_BasicBody";
  57. model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
  58. JLTS_isDroid = 1;
  59. JLTS_hasEMPProtection = 0;
  60. JLTS_deathSounds = "DeathDroid";
  61. JLTS_isDroid = 1;
  62. JLTS_hasEMPProtection = 0;
  63. JLTS_deathSounds = "DeathDroid";
  64. class ItemInfo: UniformItem
  65. {
  66. uniformModel = "-";
  67. uniformClass = macro_new_unit_class(opfor,B2_droid_Standard);
  68. modelSides[] = {6};
  69. containerClass = "Supply100";
  70. mass = 400;
  71. };
  72. };
  73. class macro_new_uniform_class(opfor,B2_Armor_Test): Uniform_Base
  74. {
  75. author = "SWOP";
  76. scope = 2;
  77. displayName = "B2 battledroid (TEST B2)";
  78. picture = "\SWOP_droids\data\ico\B2ico.paa";
  79. nakedUniform = "U_BasicBody";
  80. model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
  81. JLTS_isDroid = 1;
  82. JLTS_hasEMPProtection = 0;
  83. JLTS_deathSounds = "DeathDroid";
  84. class ItemInfo: UniformItem
  85. {
  86. uniformModel = "-";
  87. uniformClass = macro_new_uniform_skin_class(opfor,B2_Test); //ties to @2
  88. armor = 100;
  89. armorStructural = 20;//30;//20;
  90. explosionShielding = 0.001;
  91. impactDamageMultiplier = 0.001;
  92. modelSides[] = {6};
  93. containerClass = "Supply100";
  94. mass = 400;
  95. };
  96. };
  97. class macro_new_uniform_class(opfor,B2_Aqua):SWOP_B2_superdroid_F_Spec
  98. {
  99. scope=2;
  100. author= "RD501";
  101. displayname = "B2 Aqua Suit (Waterbound Enforcement Technician)";
  102. picture = "\SWOP_droids\data\ico\B2ico.paa";
  103. nakedUniform = "U_BasicBody";
  104. hiddenSelections[] = {"Camo1","Camo2","Camo3"};
  105. hiddenSelectionsMaterials[] = {};
  106. hiddenUnderwaterSelections[] = {};
  107. hiddenUnderwaterSelectionsTextures[] = {};
  108. JLTS_isDroid = 1;
  109. JLTS_hasEMPProtection = 0;
  110. JLTS_deathSounds = "DeathDroid";
  111. class ItemInfo: UniformItem
  112. {
  113. uniformModel = "-";
  114. uniformClass = macro_new_uniform_skin_class(opfor,B2_Aqua);
  115. Armor = .1;
  116. modelSides[] = {6};
  117. uniformType = "Neopren";
  118. containerClass = "Supply100";
  119. mass = 40;
  120. armorStructural = 1;
  121. };
  122. };
  123. };
  124. class DefaultEventhandlers;
  125. class CfgVehicles
  126. {
  127. class O_Soldier_base_F;
  128. class SWOP_CIS_Base: O_Soldier_base_F
  129. {
  130. class HitPoints;
  131. };
  132. /**
  133. * UNIFORM SKINS
  134. * units that only act as skins for the uniform
  135. */
  136. class SWOP_B2_superdroid: SWOP_CIS_Base
  137. {
  138. #include "armor_uniform.hpp"
  139. };
  140. #include "B2_Reskins.hpp"
  141. /**
  142. * UNITS
  143. * the actual unit running around under the uniform
  144. */
  145. class SWOP_CIS_superdroid_B2: SWOP_CIS_Base
  146. {
  147. class EventHandlers : DefaultEventhandlers {};
  148. };
  149. class macro_new_unit_class(opfor,B2_droid_Standard): SWOP_CIS_superdroid_B2
  150. {
  151. scope=2;
  152. author= "RD501";
  153. faction= macro_cis_faction
  154. editorSubcategory = macro_editor_cat(B2)
  155. uniformClass = macro_new_uniform_class(opfor,B2_Armor)
  156. displayname = "B2 (Blaster)";
  157. class EventHandlers : DefaultEventhandlers {};
  158. armor=2;
  159. armorStructural=1;
  160. #include "armor_unit.hpp"
  161. };
  162. class macro_new_unit_class(opfor,B2_droid_Rocket): macro_new_unit_class(opfor,B2_droid_Standard)
  163. {
  164. displayname = "B2 (Rocket)";
  165. author= "RD501";
  166. magazines[] = {"SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag"};
  167. respawnMagazines[] = {"SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag"};
  168. uniformClass = macro_new_uniform_class(opfor,B2_Armor);
  169. };
  170. class macro_new_unit_class(opfor,B2_super_droid_Rocket) : macro_new_unit_class(opfor,B2_droid_Rocket)
  171. {
  172. scope=2;
  173. displayname = "Super B2 (Rocket)";
  174. };
  175. class macro_new_unit_class(opfor,B2_droid_Test): macro_new_unit_class(opfor,B2_droid_Standard)
  176. {
  177. displayname = "B2 (TEST)";
  178. author= "RD501";
  179. magazines[] = {"SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag"};
  180. respawnMagazines[] = {"SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag", "SWOP_B2rocket_Mag"};
  181. uniformClass = macro_new_uniform_class(opfor,B2_Armor_Test);
  182. };
  183. class macro_new_unit_class(opfor,B2_aqua): macro_new_unit_class(opfor,B2_droid_Standard)
  184. {
  185. displayname = "B2 (Water Enforcement Technician)";
  186. side=0;
  187. scope=2;
  188. scopeCurator=2;
  189. scopeArsenal=2;
  190. author= "RD501";
  191. faction= macro_cis_faction
  192. editorSubcategory = macro_editor_cat(aqua)
  193. respawnWeapons[] = {"SWOP_B2gun_Aqua","Throw","Put"};
  194. uniformClass = macro_new_uniform_class(opfor,B2_Aqua);
  195. magazines[] = {"SWOP_b2gun_Mag","SWOP_b2gun_Mag","SWOP_b2gun_Mag","SWOP_b2gun_Mag"};
  196. weapons[] = {macro_new_weapon(b2,aqua_gun),"Throw","Put"};
  197. linkedItems[] = {macro_new_weapon(equipment,Water_Filtration),"ItemMap","ItemCompass","ItemWatch","ItemRadio","NVGoggles"};
  198. };
  199. };