config.cpp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. #define COMPONENT nvg
  2. #include "../../RD501_main/config_macros.hpp"
  3. #include "../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(nvg)
  7. {
  8. author=DANKAUTHORS;
  9. addonRootClass= macro_patch_name(weapons)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(weapons)
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon(nvg_integrated,pilot),
  18. macro_new_weapon(nvg_integrated,infantry),
  19. macro_new_weapon(nvg,visor),
  20. macro_new_weapon(nvg,visor_perma_down),
  21. macro_new_weapon(nvg,antenna),
  22. macro_new_weapon(nvg,501_antenna),
  23. macro_new_weapon(nvg,501_visor_perma_down),
  24. macro_new_weapon(nvg_integrated,pilot_test)
  25. };
  26. };
  27. };
  28. class cfgWeapons
  29. {
  30. class Integrated_NVG_TI_1_F;
  31. class NVGoggles;
  32. class macro_new_weapon(nvg_integrated,pilot): Integrated_NVG_TI_1_F
  33. {
  34. scope = 1;
  35. visionMode[] = {"Normal", "NVG", "TI"};
  36. modelOptics = "";
  37. macro_thermal_nvg_default
  38. };
  39. class macro_new_weapon(nvg_integrated,pilot_test): macro_new_weapon(nvg_integrated,pilot)
  40. {
  41. scope = 1;
  42. visionMode[] = {"Normal", "NVG", "TI"};
  43. thermalMode[] = {8};
  44. modelOptics = "";
  45. };
  46. class macro_new_weapon(nvg_integrated,pilot_erlien): macro_new_weapon(nvg_integrated,pilot)
  47. {
  48. scope = 1;
  49. visionMode[] = {"Normal", "NVG", "TI"};
  50. thermalMode[] = {4,8};
  51. modelOptics = "";
  52. };
  53. class macro_new_weapon(nvg_integrated,infantry): Integrated_NVG_TI_1_F
  54. {
  55. scope = 1;
  56. visionMode[] = {"Normal", "NVG"};
  57. thermalMode[] = {};
  58. modelOptics = "";
  59. };
  60. #include "swop_edit.hpp"
  61. class macro_new_weapon(nvg,visor) : SWOP_visor_w
  62. {
  63. modelOptics = "";
  64. useModelOptics = 1;
  65. opticsDisablePeripherialVision = 0;
  66. visionMode[] = {"Normal","NVG","TI"};
  67. macro_thermal_nvg_default
  68. dlc = "rd501";
  69. author= "RD501";
  70. displayName = "Clone Visor 501";
  71. hiddenSelections[] = {"Camo1"};
  72. hiddenSelectionsTextures[] = {
  73. texturepath\nvg\visor_501_co.paa
  74. };
  75. };
  76. class macro_new_weapon(nvg,visor_perma_down) : macro_new_weapon(nvg,visor)
  77. {
  78. displayName = "Clone Visor 501 (perma down)";
  79. macro_thermal_nvg_default
  80. class ItemInfo
  81. {
  82. type = 616;
  83. hmdType = 0;
  84. uniformModel = "SWOP_clones\nvg\visor.p3d";
  85. modelOff = "SWOP_clones\nvg\visor.p3d";
  86. mass = 4;
  87. hiddenSelections[] = {"Camo1"};
  88. hiddenSelectionsTextures[] = {texturepath\nvg\visor_501_co.paa};
  89. };
  90. hiddenSelections[] = {"Camo1"};
  91. hiddenSelectionsTextures[] = {texturepath\nvg\visor_501_co.paa};
  92. };
  93. class macro_new_weapon(nvg,antenna) : SWOP_visor_antenna
  94. {
  95. modelOptics = "";
  96. useModelOptics = 1;
  97. opticsDisablePeripherialVision = 0;
  98. visionMode[] = {"Normal","NVG","TI"};
  99. macro_thermal_nvg_default
  100. opticsZoomMin = 1;
  101. opticsZoomMax = 1300;
  102. opticsZoomInit = 1305;
  103. distanceZoomMin = 100;
  104. distanceZoomMax = 1300;
  105. dlc = "rd501";
  106. author= "RD501";
  107. displayName = "Clone Visor Down + antenna";
  108. class ItemInfo
  109. {
  110. type = 616;
  111. hmdType = 0;
  112. uniformModel = "SWOP_clones\nvg\visor_antenna.p3d";
  113. modelOff = "SWOP_clones\nvg\visor_antenna.p3d";
  114. mass = 4;
  115. hiddenSelections[] = {"Camo1"};
  116. hiddenSelectionsTextures[] = {
  117. texturepath\nvg\visor_501_co.paa
  118. };
  119. };
  120. hiddenSelections[] = {"Camo1"};
  121. hiddenSelectionsTextures[] = {
  122. texturepath\nvg\visor_501_co.paa
  123. };
  124. };
  125. class macro_new_weapon(nvg,501_antenna) : SWOP_visor_antenna
  126. {
  127. modelOptics = "";
  128. useModelOptics = 1;
  129. opticsDisablePeripherialVision = 0;
  130. visionMode[] = {"Normal","NVG","TI"};
  131. macro_thermal_nvg_default
  132. dlc = "rd501";
  133. author= "RD501";
  134. displayName = "Clone Visor 501 + antenna";
  135. class ItemInfo
  136. {
  137. type = 616;
  138. hmdType = 0;
  139. uniformModel = "SWOP_clones\nvg\visor_antenna.p3d";
  140. modelOff = "SWOP_clones\nvg\visorOff_antenna.p3d";
  141. mass = 4;
  142. hiddenSelections[] = {"Camo1"};
  143. hiddenSelectionsTextures[] = {
  144. texturepath\nvg\visor_501_co.paa
  145. };
  146. };
  147. hiddenSelections[] = {"Camo1"};
  148. hiddenSelectionsTextures[] = {
  149. texturepath\nvg\visor_501_co.paa
  150. };
  151. };
  152. class macro_new_weapon(nvg,501_visor_perma_down) : macro_new_weapon(nvg,visor)
  153. {
  154. displayName = "Clone Visor (perma down)";
  155. class ItemInfo
  156. {
  157. type = 616;
  158. hmdType = 0;
  159. uniformModel = "SWOP_clones\nvg\visor.p3d";
  160. modelOff = "SWOP_clones\nvg\visor.p3d";
  161. mass = 4;
  162. };
  163. hiddenSelections[] = {"Camo1"};
  164. hiddenSelectionsTextures[] = {"SWOP_clones\data\spec\Spec2_co.paa"};
  165. macro_thermal_nvg_default
  166. };
  167. class macro_new_weapon(nvg,shock_trooper) : SWOP_NVChip2
  168. {
  169. visionMode[] = {"Normal"};
  170. dlc = "rd501";
  171. author= "RD501";
  172. RD501_isNV = 1;
  173. displayName = "Shock Trooper Chip";
  174. };
  175. class macro_new_weapon(nvg,shock_trooper_enhanced) : SWOP_NVChip2
  176. {
  177. visionMode[] = {"Normal","TI"};
  178. thermalMode[] = {0,2};
  179. dlc = "rd501";
  180. author= "RD501";
  181. RD501_isNV = 1;
  182. displayName = "Shock Trooper Enhanced Chip";
  183. };
  184. };