config.cpp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. #define COMPONENT DC_17
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_17)
  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(DC,17),
  18. macro_new_weapon(DC,17a),
  19. macro_new_weapon(DC,r17),
  20. macro_new_weapon(DC,r17a)
  21. };
  22. };
  23. };
  24. class cfgWeapons
  25. {
  26. class Mode_FullAuto;
  27. class Pistol_Base_F;
  28. class SWOP_DC17Pistol: Pistol_Base_F
  29. {
  30. class Single;
  31. };
  32. class macro_new_weapon(DC,17):SWOP_DC17Pistol
  33. {
  34. displayName="DC-17";
  35. scope=2;
  36. scopeArsenal=2;
  37. weaponPoolAvailable = 1;
  38. selectionFireAnim="zasleh";
  39. dlc = "RD501";
  40. author= "RD501";
  41. baseWeapon = macro_new_weapon(DC,17);
  42. model="\MRC\JLTS\weapons\DC17SA\DC17SA.p3d";
  43. hiddenSelections[]=
  44. {
  45. "camo1",
  46. "illum"
  47. };
  48. hiddenSelectionsTextures[]=
  49. {
  50. "\MRC\JLTS\weapons\DC17SA\data\DC17SA_co.paa"
  51. };
  52. hiddenSelectionsMaterials[]=
  53. {
  54. "",
  55. "\a3\characters_f_bootcamp\common\data\vrarmoremmisive.rvmat"
  56. };
  57. DC_Family_Flashlight
  58. magazines[]={macro_new_mag(DC17,20),"DCStun_Mag"};
  59. magazineWell[] = {macro_new_magwell(DC17_GL_Mags)};
  60. ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
  61. ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
  62. ACE_Overheating_JamChance = DC15a_Overheat_JamChance
  63. ACE_overheating_mrbs = DC15a_Overheat_mrbs
  64. ACE_overheating_allowSwapBarrel = 1;
  65. ACE_clearJamAction = "ReloadMagazine";
  66. class Single:Single
  67. {
  68. dispersion =DC17_accuracy;
  69. reloadTime = DC17_reloadtime;
  70. };
  71. };
  72. class macro_new_weapon(DC,17a):macro_new_weapon(DC,17)
  73. {
  74. baseWeapon = macro_new_weapon(DC,17a);
  75. displayName="DC-17a";
  76. magazines[]+={ macro_new_mag(DC17,40)};
  77. magazineWell[] = {};
  78. // recoil="";
  79. // recoilProne="";
  80. class Single:Single
  81. {
  82. dispersion =DC17_accuracy;
  83. reloadTime = DC17_reloadtime/2;
  84. autoFire=1;
  85. };
  86. };
  87. class Pistol_Base_F;
  88. class SWOP_DC15SAPistol:Pistol_Base_F
  89. {
  90. class Single;
  91. };
  92. class RD501_stun_muzzle;
  93. class hgun_P07_F;
  94. class JLTS_DC17SA:hgun_P07_F
  95. {
  96. class Single;
  97. };
  98. class macro_new_weapon(DC,r17):JLTS_DC17SA
  99. {
  100. displayName="Republic DC-17";
  101. reloadAction="GestureReloadPistol";
  102. baseWeapon=macro_new_weapon(DC,r17)
  103. JLTS_hasElectronics=0;
  104. magazines[]=
  105. {
  106. macro_new_mag(5mw,10)
  107. };
  108. muzzles[]=
  109. {
  110. "this",
  111. "Stun"
  112. };
  113. class Stun: RD501_stun_muzzle
  114. {
  115. displayName="High Energy StunMode";
  116. magazines[]=
  117. {
  118. macro_new_mag(pistolstun,5)
  119. };
  120. };
  121. class Single : Single
  122. {
  123. reloadTime=0.1;
  124. };
  125. };
  126. class macro_new_weapon(DC,r17a):JLTS_DC17SA
  127. {
  128. displayName="Republic DC-17A";
  129. baseWeapon=macro_new_weapon(DC,r17a)
  130. JLTS_hasElectronics=0;
  131. magazines[]=
  132. {
  133. macro_new_mag(2mw,30)
  134. };
  135. modes[] = {"FullAuto"};
  136. muzzles[]=
  137. {
  138. "this",
  139. "Stun"
  140. };
  141. class Stun: RD501_stun_muzzle
  142. {
  143. displayName="High Energy StunMode";
  144. reloadAction="GestureReloadPistol";
  145. magazines[]=
  146. {
  147. macro_new_mag(pistolstun,5)
  148. };
  149. };
  150. class FullAuto : Single
  151. {
  152. autoFire=1;
  153. reloadTime=0.055;
  154. displayName="$STR_DN_MODE_FULLAUTO";
  155. textureType="fullAuto";
  156. recoil="recoil_auto_primary_3outof10";
  157. recoilProne="recoil_auto_primary_prone_3outof10";
  158. aiDispersionCoefY=3;
  159. aiDispersionCoefX=2;
  160. soundBurst=0;
  161. burst=3;
  162. };
  163. };
  164. class RD501_DC_15_RB:SWOP_DC15SAPistol
  165. {
  166. scope=2;
  167. author = "RD501";
  168. displayname = "DC-15 'Razor Blade'";
  169. descriptionShort = "Namenai is here";
  170. recoil = macro_new_recoil(dc15_rb)
  171. magazines[] = {
  172. macro_new_mag(DC15_razor_blade,9)
  173. };
  174. fireSpreadAngle = 3;
  175. class FlashLight
  176. {
  177. color[] = {7000, 7500, 20000};//{7000, 7500, 10000};
  178. ambient[] = {6, 9, 9};
  179. intensity = 5;//2.5;
  180. size = 1;
  181. innerAngle = 20;
  182. outerAngle = 80;
  183. coneFadeCoef = 10;
  184. position = "flash_dir";
  185. direction = "flash_pos";
  186. useFlare = 1;
  187. flareSize = 1.5;
  188. flareMaxDistance = "600.0f";
  189. dayLight = 1;
  190. class Attenuation
  191. {
  192. start = 2;//0.5;
  193. constant = 1;
  194. linear = 0;
  195. quadratic = 0;//1
  196. hardLimitStart = 200;
  197. hardLimitEnd = 300;
  198. };
  199. scale[] = {0};
  200. };
  201. class Single: Single
  202. {
  203. sounds[] = {"StandardSound"};
  204. class BaseSoundModeType
  205. {
  206. closure1[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_01", 0.158489, 1, 10};
  207. closure2[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Closure_Rook40_02", 0.158489, 1.1, 10};
  208. soundClosure[] = {"closure1", 0.5, "closure2", 0.5};
  209. };
  210. class StandardSound: BaseSoundModeType
  211. {
  212. weaponSoundEffect = "DefaultRifle";
  213. begin1[] = {"SW_CloneWarsWeapons\DC17M\dc17msniper1.ogg",1.2,1,2000};
  214. begin2[] = {"SW_CloneWarsWeapons\DC17M\dc17msniper2.ogg",1.2,1,2000};
  215. begin3[] = {"SW_CloneWarsWeapons\DC17M\dc17msniper3.ogg",1.2,1,2000};
  216. soundBegin[] = {"begin1", 0.5, "begin2", 0.5, "begin3", 0.5};
  217. class SoundTails
  218. {
  219. class TailInterior
  220. {
  221. sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_interior", 1.41254, 1, 1200};
  222. frequency = 1;
  223. volume = "interior";
  224. };
  225. class TailTrees
  226. {
  227. sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_trees", 1, 1, 1200};
  228. frequency = 1;
  229. volume = "(1-interior/1.4)*trees";
  230. };
  231. class TailForest
  232. {
  233. sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_forest", 1, 1, 1200};
  234. frequency = 1;
  235. volume = "(1-interior/1.4)*forest";
  236. };
  237. class TailMeadows
  238. {
  239. sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_meadows", 1, 1, 1200};
  240. frequency = 1;
  241. volume = "(1-interior/1.4)*(meadows/2 max sea/2)";
  242. };
  243. class TailHouses
  244. {
  245. sound[] = {"A3\Sounds_F\arsenal\weapons\Pistols\Rook40\Rook40_tail_houses", 1, 1, 1200};
  246. frequency = 1;
  247. volume = "(1-interior/1.4)*houses";
  248. };
  249. };
  250. };
  251. // recoil = "DC_15_RB_Recoil";
  252. // recoilProne = "DC_15_RB_Recoil";
  253. reloadTime = 0.5;
  254. minRange = 5;
  255. minRangeProbab = 0.3;
  256. midRange = 25;
  257. midRangeProbab = 0.6;
  258. maxRange = 50;
  259. maxRangeProbab = 0.1;
  260. aiRateOfFire = 2;
  261. aiRateOfFireDistance = 25;
  262. dispersion = 0.0001;
  263. };
  264. };
  265. };