config.cpp 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. #include "../../config_macros.hpp"
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #define unit_addon special_forces
  4. #define patch_name MODNAME##unit_addon##_Patches
  5. #define unit_classname MODNAME##_##unit_addon
  6. #define macro_new_opfor_class(name) unit_classname##_##name
  7. #define macro_new_opfor_uniform_class(name) unit_classname##_uniform_##name
  8. #define macro_new_opfor_item_skin_class(name) unit_classname##_item_skin_##name
  9. class CfgPatches
  10. {
  11. class macro_patch_name(cis_special_forces)
  12. {
  13. addonRootClass=macro_patch_name(units);
  14. requiredAddons[]=
  15. {
  16. macro_patch_name(units)
  17. };
  18. requiredVersion=0.1;
  19. units[]={
  20. macro_new_unit_class(opfor,B1_spec_op),
  21. macro_new_unit_class(opfor,B1_shotgun),
  22. macro_new_unit_class(opfor,IG_88),
  23. macro_new_unit_class(opfor,magna_guard_blackop)
  24. };
  25. weapons[]=
  26. {
  27. macro_new_uniform_class(opfor,B1_Spec_Op),
  28. macro_new_uniform_class(opfor,Manga_Spec_Op)
  29. };
  30. };
  31. };
  32. class cfgWeapons
  33. {
  34. class ItemCore;
  35. class Uniform_Base: ItemCore
  36. {
  37. class ItemInfo;
  38. };
  39. class VestItem;
  40. class UniformItem;
  41. class macro_new_uniform_class(opfor,B1_Spec_Op): Uniform_Base
  42. {
  43. author = "SWOP + RD501";
  44. scope = 2;
  45. displayName = "B1 battledroid (Spec Ops)";
  46. picture = "\SWOP_droids\data\ico\Ico_body.paa";
  47. nakedUniform = "U_BasicBody";
  48. model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
  49. class ItemInfo: UniformItem
  50. {
  51. uniformModel = "-";
  52. uniformClass = macro_new_uniform_skin_class(opfor,B1_Spec_Ops)
  53. armor = 60;
  54. armorStructural = 10;
  55. explosionShielding = 0.001;
  56. impactDamageMultiplier = 0.1;
  57. modelSides[] = {6};
  58. containerClass = "Supply100";
  59. mass = 100;
  60. };
  61. };
  62. class macro_new_uniform_class(opfor,Manga_Spec_Op): Uniform_Base
  63. {
  64. author = "SWOP";
  65. scope = 2;
  66. displayName = "Magnadroid Black Ops";
  67. picture = "\SWOP_droids\SpecDroids\data\ico\magnadroid.paa";
  68. nakedUniform = "U_BasicBody";
  69. model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
  70. class ItemInfo: UniformItem
  71. {
  72. uniformModel = "-";
  73. uniformClass = macro_new_uniform_skin_class(opfor,Magna_Blackops)
  74. armor = 400;
  75. armorStructural = 10;
  76. explosionShielding = 0.001;
  77. impactDamageMultiplier = 0.1;
  78. modelSides[] = {6};
  79. containerClass = "Supply100";
  80. mass = 40;
  81. };
  82. };
  83. // class macro_new_uniform_class(opfor,Manga_Snow): macro_new_uniform_class(opfor,Manga_Spec_Op)
  84. // {
  85. // displayName = "Magnadroid Snow Leopard";
  86. // class ItemInfo: ItemInfo
  87. // {
  88. // uniformClass = macro_new_uniform_skin_class(opfor,Magna_white)
  89. // }
  90. // };
  91. // class macro_new_uniform_class(opfor,Manga_Aqua): macro_new_uniform_class(opfor,Manga_Spec_Op)
  92. // {
  93. // displayName = "Magnadroid Hydro";
  94. // class ItemInfo: ItemInfo
  95. // {
  96. // uniformClass = macro_new_uniform_skin_class(opfor,Magna_blue)
  97. // }
  98. // };
  99. // class macro_new_uniform_class(opfor,Manga_Royal): macro_new_uniform_class(opfor,Manga_Spec_Op)
  100. // {
  101. // displayName = "Magnadroid Royal";
  102. // class ItemInfo: ItemInfo
  103. // {
  104. // uniformClass = macro_new_uniform_skin_class(opfor,Magna_purple)
  105. // }
  106. // };
  107. // class macro_new_uniform_class(opfor,Manga_Medic): macro_new_uniform_class(opfor,Manga_Spec_Op)
  108. // {
  109. // displayName = "Magnadroid Medic";
  110. // class ItemInfo: ItemInfo
  111. // {
  112. // uniformClass = macro_new_uniform_skin_class(opfor,Magna_red)
  113. // }
  114. // };
  115. // class macro_new_uniform_class(opfor,Manga_Blitz): macro_new_uniform_class(opfor,Manga_Spec_Op)
  116. // {
  117. // displayName = "Magnadroid Blitzkreiger";
  118. // class ItemInfo: ItemInfo
  119. // {
  120. // uniformClass = macro_new_uniform_skin_class(opfor,Magna_yellow)
  121. // }
  122. // };
  123. };
  124. class DefaultEventhandlers;
  125. class CfgVehicles
  126. {
  127. class SWOP_CIS_B1_Base;
  128. class SWOP_CIS_droid_mg;
  129. class SWOP_CIS_Base;
  130. class B_Soldier_base_F;
  131. // Skins
  132. class macro_new_uniform_skin_class(opfor,Magna_Blackops): B_Soldier_base_F
  133. {
  134. author = "RD501";
  135. scope = 1;
  136. model = "\SWOP_droids\SpecDroids\Magnadroid.p3d";
  137. modelSides[] = {6};
  138. nakedUniform = "U_BasicBody";
  139. hiddenSelections[] = {"Camo1"};
  140. hiddenSelectionsTextures[] = {macro_unit_skin_textures\CIS\magna\term.paa};
  141. class EventHandlers :DefaultEventhandlers {};
  142. };
  143. class macro_new_unit_class(opfor,IG_88) : SWOP_CIS_B1_Base
  144. {
  145. scope = 2;
  146. faction = macro_cis_faction
  147. editorSubcategory = macro_editor_cat(CIS_SpecOps)
  148. author = "RD501";
  149. displayName = "IG-88 Heavy Assassin";
  150. identityTypes[] = {"B1Droids"};
  151. model = "\A3\characters_F\BLUFOR\b_soldier_01.p3d";
  152. uniformClass = "SWOP_ig88_unifrom";
  153. icon = "iconManAT";
  154. linkeditems[] = {"H_HelmetO_ViperSP_ghex_F","SWOP_rembron","SWOP_STbron", "ItemGPS", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
  155. respawnlinkeditems[] = {"H_HelmetO_ViperSP_ghex_F","SWOP_Clonetrooper_Katarn_armor","SWOP_STbron", "ItemGPS", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
  156. weapons[] = {"SWOP_DTL20BlasterRifle_Scoped", "swop_rg4dpistol", "ElectroBinocularsB_F", "Throw", "Put"};
  157. respawnWeapons[] = {"SWOP_DTL20BlasterRifle_Scoped", "swop_rg4dpistol", "ElectroBinocularsB_F", "Throw", "Put"};
  158. magazines[] = {"SWOP_DTL20BlasterRifle_Mag", "SWOP_DTL20BlasterRifle_Mag", "SWOP_rg4dPistol_Mag", "SWOP_rg4dPistol_Mag", "SWOP_rg4dPistol_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_rg4dPistol_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag", "SWOP_BCCKtermimploder_G", "SWOP_BCCKtermimploder_G","swop_SmokeShell","swop_SmokeShell","swop_mag_flashbang","swop_mag_flashbang"};
  159. respawnMagazines[] = {"SWOP_DTL20BlasterRifle_Mag", "SWOP_DTL20BlasterRifle_Mag","SWOP_rg4dPistol_Mag", "SWOP_rg4dPistol_Mag", "SWOP_rg4dPistol_Mag", "SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag","SWOP_DTL20BlasterRifle_Mag", "SWOP_BCCKtermimploder_G", "SWOP_BCCKtermimploder_G","swop_SmokeShell","swop_SmokeShell","swop_mag_flashbang","swop_mag_flashbang"};
  160. //class EventHandlers :DefaultEventhandlers {};
  161. };
  162. class macro_new_unit_class(opfor,magna_guard_blackop): SWOP_CIS_Base
  163. {
  164. scope = 2;
  165. faction = macro_cis_faction
  166. editorSubcategory = macro_editor_cat(CIS_SpecOps)
  167. author = "RD501";
  168. vehicleClass = "Men";
  169. backpack = "RD501_InvisBag";//macro_new_backpack_class(factionless,invsible)
  170. displayName = "IG-101 MagnaGuard (Black Ops)";
  171. identityTypes[] = {"B1Droids"};
  172. model = "\A3\characters_F\BLUFOR\b_soldier_01.p3d";
  173. uniformClass = macro_new_uniform_class(opfor,Manga_Spec_Op)
  174. linkeditems[] = {"SWOP_ImpNVChip", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
  175. respawnlinkeditems[] = {"SWOP_ImpNVChip", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
  176. weapons[] = {"SWOP_E5M", "Throw", "Put"};
  177. respawnWeapons[] = {"SWOP_E5M", "Throw", "Put"};
  178. magazines[] = {"SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_termDet_G"};
  179. respawnMagazines[] = {"SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_E5M_Mag", "SWOP_termDet_G"};
  180. cost = 800000;
  181. //class EventHandlers :DefaultEventhandlers {};
  182. };
  183. };