config.cpp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. #include "../config_macros.hpp"
  2. #include "config_macros.hpp"
  3. #include "../../RD501_main/config_macros.hpp"
  4. #define unit_addon CIV
  5. #define patch_name MODNAME##unit_addon##_Patches
  6. #define unit_classname MODNAME##_##unit_addon
  7. class CfgPatches
  8. {
  9. class macro_patch_name(civillains)
  10. {
  11. addonRootClass=macro_patch_name(units);
  12. requiredAddons[]=
  13. {
  14. macro_patch_name(units)
  15. };
  16. requiredVersion=0.1;
  17. units[]={
  18. macro_new_unit_class(civ,random_civ),
  19. macro_new_unit_class(civ,MonCalamari),
  20. macro_new_unit_class(civ,Quarren),
  21. macro_new_unit_class(civ,Vurk),
  22. macro_new_unit_class(civ,IshiTib)
  23. };
  24. weapons[]=
  25. {
  26. macro_new_uniform_class(civ,aqua_MonCal),
  27. macro_new_uniform_class(civ,aqua_Quarren),
  28. macro_new_uniform_class(civ,aqua_Vurk),
  29. macro_new_uniform_class(civ,aqua_Vurk)
  30. };
  31. };
  32. };
  33. class cfgWeapons
  34. {
  35. class ItemCore;
  36. class Uniform_Base: ItemCore
  37. {
  38. class ItemInfo;
  39. };
  40. class VestItem;
  41. class SWOP_RebC_mon_calamari_rebelI_CombatUniform:Uniform_Base
  42. {
  43. };
  44. class SWOP_RebC_FKI_CombatUniform:Uniform_Base
  45. {
  46. };
  47. class SWOP_RebC_vurkI_CombatUniform:Uniform_Base
  48. {
  49. };
  50. class SWOP_RebC_FII_CombatUniform:Uniform_Base
  51. {
  52. };
  53. //uniform we find in arsenal
  54. class macro_new_uniform_class(civ,aqua_MonCal): SWOP_RebC_mon_calamari_rebelI_CombatUniform
  55. {
  56. scope=2;
  57. displayname = "(Mon Calamari) Aqua Suit";
  58. picture = "\SWOP_rebels\data\ico\Cloud.paa";
  59. class ItemInfo: ItemInfo
  60. {
  61. Armor = 20;
  62. uniformType = "Neopren";
  63. uniformClass = "SWOP_RebC_mon_calamari_rebel";
  64. containerClass = "Supply100";
  65. mass = 20;
  66. };
  67. };
  68. class macro_new_uniform_class(civ,aqua_Quarren): SWOP_RebC_FKI_CombatUniform
  69. {
  70. scope=2;
  71. displayname = "(Quarren) Aqua Suit";
  72. picture = "\SWOP_rebels\data\ico\Cloud.paa";
  73. class ItemInfo: ItemInfo
  74. {
  75. Armor = 20;
  76. uniformType = "Neopren";
  77. uniformClass = "SWOP_RebC_FK";
  78. containerClass = "Supply100";
  79. mass = 20;
  80. };
  81. };
  82. class macro_new_uniform_class(civ,aqua_Vurk): SWOP_RebC_vurkI_CombatUniform
  83. {
  84. scope=2;
  85. displayname = "(Vurk) Aqua Suit";
  86. picture = "\SWOP_rebels\data\ico\Cloud.paa";
  87. class ItemInfo: ItemInfo
  88. {
  89. Armor = 20;
  90. uniformType = "Neopren";
  91. uniformClass = "SWOP_RebC_vurk";
  92. containerClass = "Supply100";
  93. mass = 20;
  94. };
  95. };
  96. class macro_new_uniform_class(civ,aqua_IshiTib): SWOP_RebC_FII_CombatUniform
  97. {
  98. scope=2;
  99. displayname = "(Ishi Tib) Aqua Suit";
  100. picture = "\SWOP_rebels\data\ico\Cloud.paa";
  101. class ItemInfo: ItemInfo
  102. {
  103. Armor = 20;
  104. uniformType = "Neopren";
  105. uniformClass = "SWOP_RebC_FI";
  106. containerClass = "Supply100";
  107. mass = 20;
  108. };
  109. };
  110. };
  111. class DefaultEventhandlers;
  112. class CfgVehicles
  113. {
  114. class C_Protagonist_VR_F;
  115. class SWOP_501;
  116. //zeus unit
  117. class macro_new_unit_class(civ,random_civ) : C_Protagonist_VR_F //RD501_CIV_random_civ
  118. {
  119. faction = macro_civ_faction
  120. editorSubcategory = macro_editor_cat(civ)
  121. displayName = "Random Star Wars Civilian";
  122. class EventHandlers : DefaultEventhandlers {}
  123. };
  124. class macro_new_unit_class(civ,MonCalamari): SWOP_501
  125. {
  126. displayname = "Mon Calamari Soldier";
  127. respawnWeapons[] = {"RD501_Aqua_A180_Rifle","Throw","Put"};
  128. backpack = "";
  129. uniformClass = macro_new_uniform_class(civ,aqua_MonCal);
  130. magazines[] = {
  131. macro_new_mag(DC15_underwater,40),macro_new_mag(DC15_underwater,40),macro_new_mag(DC15_underwater,40),
  132. macro_new_mag(DC15_underwater,40),macro_new_mag(DC15_underwater,40),macro_new_mag(DC15_underwater,40),macro_new_mag(DC15_underwater,40),
  133. macro_new_mag(DC15_underwater,40),macro_new_mag(DC15_underwater,40),macro_new_mag(DC15_underwater,40)};
  134. weapons[] = {macro_new_weapon(DC,15s),"Throw","Put"};
  135. linkedItems[] = {macro_new_weapon(equipment,Water_Filtration),"g_diving","ItemMap","ItemCompass","ItemWatch","ItemRadio","NVGoggles"};
  136. class EventHandlers : DefaultEventhandlers {}
  137. faction = macro_civ_faction
  138. editorSubcategory = macro_editor_cat(aqua)
  139. side=1;
  140. };
  141. class macro_new_unit_class(civ,Quarren): macro_new_unit_class(civ,MonCalamari)
  142. {
  143. displayname = "Quarren Soldier";
  144. uniformClass = macro_new_uniform_class(civ,aqua_Quarren);
  145. side=0;
  146. };
  147. class macro_new_unit_class(civ,Vurk): macro_new_unit_class(civ,MonCalamari)
  148. {
  149. displayname = "Vurk Soldier";
  150. uniformClass = macro_new_uniform_class(civ,aqua_Vurk);
  151. side=3;
  152. };
  153. class macro_new_unit_class(civ,IshiTib): macro_new_unit_class(civ,MonCalamari)
  154. {
  155. displayname = "Ishi Tib Soldier";
  156. uniformClass = macro_new_uniform_class(civ,aqua_IshiTib);
  157. side=2;
  158. };
  159. };