config.cpp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. #define COMPONENT muzzleacc
  2. #define scope_magnification(zoom) 0.25/zoom
  3. #include "../../RD501_main/config_macros.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(accxxx)
  7. {
  8. author="RD501";
  9. addonRootClass= macro_patch_name(weapons)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(weapons)
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. "RD501_muzzle_flash"
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class muzzle_snds_H;
  24. class muzzle_snds_M:muzzle_snds_H
  25. {
  26. class ItemInfo;
  27. };
  28. class RD501_muzzle_flash:muzzle_snds_M
  29. {
  30. scope=2;
  31. scopeInArsenal=2;
  32. author="RD501";
  33. displayName="Flash Hider Chip";
  34. model="";
  35. picture="\RD501_Weapons\_acc\data\icon_flashhider.paa";
  36. class ItemInfo: ItemInfo
  37. {
  38. mass=10;
  39. class MagazineCoef
  40. {
  41. initSpeed=1.0;
  42. };
  43. class AmmoCoef
  44. {
  45. hit=1;
  46. typicalSpeed=1;
  47. airFriction=1;
  48. visibleFire=1;
  49. audibleFire=1;
  50. visibleFireTime=1;
  51. audibleFireTime=1;
  52. cost = 1.0;
  53. };
  54. soundTypeIndex=0;
  55. muzzleEnd="zaslehPoint";
  56. alternativeFire="Zasleh2";
  57. class MuzzleCoef
  58. {
  59. dispersionCoef=1.0;
  60. artilleryDispersionCoef=1.0;
  61. fireLightCoef=0.1;
  62. recoilCoef=1.0;
  63. recoilProneCoef=1.0;
  64. minRangeCoef=1.0;
  65. minRangeProbabCoef=1.0;
  66. midRangeCoef=1.0;
  67. midRangeProbabCoef=1.0;
  68. maxRangeCoef=1.0;
  69. maxRangeProbabCoef=1.0;
  70. };
  71. };
  72. inertia=0.1;
  73. };
  74. /////////////////////////////////////////////////////////////////
  75. ////////////////////////////Optics///////////////////////////////
  76. /////////////////////////////////////////////////////////////////
  77. class ItemCore;
  78. class optic_Hamr:ItemCore
  79. {
  80. class ItemInfo;
  81. };
  82. class RD501_RCO: optic_Hamr
  83. {
  84. author="RD501";
  85. scope=2;
  86. displayName="Short Range Scope A";
  87. picture="RD501_Weapons\_acc\data\rd501_ico_sr_01_ca.paa";
  88. model="RD501_Weapons\_acc\data\rd501_hamr_1.p3d";
  89. descriptionShort="HAMR SR 2-4x Scope";
  90. weaponInfoType="RscOptics_sos";
  91. class ItemInfo: ItemInfo
  92. {
  93. mass=8;
  94. opticType=1;
  95. optics=1;
  96. modelOptics="RD501_Weapons\_acc\data\rd501_hamr_scope_1";
  97. class OpticsModes
  98. {
  99. class Hamr2Collimator
  100. {
  101. opticsID=1;
  102. useModelOptics=0;
  103. opticsPPEffects[]=
  104. {
  105. "Default"
  106. };
  107. opticsFlare=0;
  108. opticsDisablePeripherialVision=0;
  109. opticsZoomMin=0.25;
  110. opticsZoomMax=1.25;
  111. opticsZoomInit=0.75;
  112. memoryPointCamera="eye";
  113. visionMode[]={};
  114. distanceZoomMin=200;
  115. distanceZoomMax=200;
  116. };
  117. class Hamr2Scope
  118. {
  119. opticsID=2;
  120. useModelOptics=0;//0
  121. opticsPPEffects[]=
  122. {
  123. "OpticsCHAbera5",
  124. "OpticsBlur5"
  125. };
  126. opticsFlare=1;
  127. opticsDisablePeripherialVision=1;//1
  128. opticsZoomMin=scope_magnification(2);
  129. opticsZoomMax=scope_magnification(4);
  130. opticsZoomInit=scope_magnification(2);
  131. discreteinitIndex = 0;
  132. discretefov[] = {scope_magnification(2),scope_magnification(4)};
  133. discreteDistanceInitIndex = 1;
  134. memoryPointCamera="opticView";
  135. visionMode[]={};
  136. distanceZoomMin=300;
  137. distanceZoomMax=300;
  138. };
  139. };
  140. };
  141. inertia=0.1;
  142. };
  143. class RD501_RCO_2: RD501_RCO
  144. {
  145. picture="RD501_Weapons\_acc\data\rd501_ico_sr_02_ca.paa";
  146. model="RD501_Weapons\_acc\data\rd501_hamr_2.p3d";
  147. displayName="Short Range Scope B";
  148. class ItemInfo: ItemInfo
  149. {
  150. modelOptics="RD501_Weapons\_acc\data\RD501_hamr_scope_2";
  151. };
  152. };
  153. class RD501_RCO_3: RD501_RCO
  154. {
  155. picture="RD501_Weapons\_acc\data\rd501_ico_sr_03_ca.paa";
  156. model="RD501_Weapons\_acc\data\rd501_hamr_3.p3d";
  157. displayName="Short Range Scope C";
  158. class ItemInfo: ItemInfo
  159. {
  160. modelOptics="RD501_Weapons\_acc\data\RD501_hamr_scope_3";
  161. };
  162. };
  163. class optic_MRCO: ItemCore
  164. {
  165. class ItemInfo;
  166. };
  167. class RD501_MRCO: optic_MRCO
  168. {
  169. author="RD501";
  170. scope=2;
  171. displayName="Medium Range Scope A";
  172. picture="RD501_Weapons\_acc\data\rd501_ico_mr_01_ca.paa";
  173. model="RD501_Weapons\_acc\data\rd501_mrco_1.p3d";
  174. descriptionShort="MRCO MR 2-6x Scope";
  175. weaponInfoType="RscOptics_sos";
  176. class ItemInfo: ItemInfo
  177. {
  178. mass=8;
  179. opticType=1;
  180. optics=1;
  181. modelOptics="RD501_Weapons\_acc\data\rd501_mrco_scope_1.p3d";
  182. class OpticsModes
  183. {
  184. class MRCOcq
  185. {
  186. opticsID=1;
  187. useModelOptics=0;
  188. opticsPPEffects[]=
  189. {
  190. "Default"
  191. };
  192. opticsFlare=0;
  193. opticsDisablePeripherialVision=0;
  194. opticsZoomMin=0.25;
  195. opticsZoomMax=1.25;
  196. opticsZoomInit=0.75;
  197. memoryPointCamera="eye";
  198. visionMode[]={};
  199. distanceZoomMin=300;
  200. distanceZoomMax=300;
  201. };
  202. class MRCOscope
  203. {
  204. opticsID=2;
  205. useModelOptics=0;
  206. opticsPPEffects[]=
  207. {
  208. "OpticsCHAbera5",
  209. "OpticsBlur5"
  210. };
  211. opticsFlare=1;
  212. opticsDisablePeripherialVision=1;
  213. opticsZoomMin = scope_magnification(6);
  214. opticsZoomMax = scope_magnification(2);
  215. opticsZoomInit = scope_magnification(2);
  216. discreteinitIndex = 0;
  217. discretefov[] = {scope_magnification(2),scope_magnification(6)};
  218. discreteDistanceInitIndex = 1;
  219. memoryPointCamera="opticView";
  220. visionMode[]={};
  221. distanceZoomMin=300;
  222. distanceZoomMax=300;
  223. };
  224. };
  225. };
  226. inertia=0.1;
  227. };
  228. class RD501_MRCO_2: RD501_MRCO
  229. {
  230. picture="RD501_Weapons\_acc\data\rd501_ico_mr_02_ca.paa";
  231. model="RD501_Weapons\_acc\data\rd501_mrco_2.p3d";
  232. displayName="Medium Range Scope B";
  233. class ItemInfo: ItemInfo
  234. {
  235. modelOptics="RD501_Weapons\_acc\data\RD501_MRCO_scope_2";
  236. };
  237. };
  238. class RD501_MRCO_3: RD501_MRCO
  239. {
  240. picture="RD501_Weapons\_acc\data\rd501_ico_mr_03_ca.paa";
  241. model="RD501_Weapons\_acc\data\rd501_mrco_3.p3d";
  242. displayName="Medium Range Scope C";
  243. class ItemInfo: ItemInfo
  244. {
  245. modelOptics="RD501_Weapons\_acc\data\RD501_MRCO_scope_3";
  246. };
  247. };
  248. class optic_Holosight:ItemCore
  249. {
  250. class ItemInfo;
  251. };
  252. class RD501_Holosight: optic_Holosight
  253. {
  254. author="RD501";
  255. scope=2;
  256. displayName="Holo Sight A";
  257. picture="RD501_Weapons\_acc\data\rd501_ico_holo_01_ca.paa";
  258. model="RD501_Weapons\_acc\data\rd501_holo_1.p3d";
  259. descriptionShort="Holo 1x Scope";
  260. weaponInfoType="RscWeaponZeroing";
  261. class ItemInfo: ItemInfo
  262. {
  263. mass=6;
  264. modelOptics="\A3\Weapons_F\empty";
  265. optics=1;
  266. class OpticsModes
  267. {
  268. class ACO
  269. {
  270. opticsID=1;
  271. useModelOptics=0;
  272. opticsZoomMin=0.25;
  273. opticsZoomMax=1.25;
  274. opticsZoomInit=0.75;
  275. memoryPointCamera="eye";
  276. opticsFlare=0;
  277. opticsDisablePeripherialVision=0;
  278. distanceZoomMin=200;
  279. distanceZoomMax=200;
  280. cameraDir="";
  281. visionMode[]={};
  282. opticsPPEffects[]=
  283. {
  284. "OpticsBlur1"
  285. };
  286. };
  287. };
  288. };
  289. inertia=0;
  290. };
  291. class RD501_Holosight_2: RD501_Holosight
  292. {
  293. picture="RD501_Weapons\_acc\data\rd501_ico_holo_02_ca.paa";
  294. model="RD501_Weapons\_acc\data\rd501_holo_2.p3d";
  295. displayName="Holo Sight B";
  296. };
  297. class RD501_Holosight_3: RD501_Holosight
  298. {
  299. picture="RD501_Weapons\_acc\data\rd501_ico_holo_03_ca.paa";
  300. model="RD501_Weapons\_acc\data\rd501_holo_3.p3d";
  301. displayName="Holo Sight C";
  302. };
  303. class optic_DMS:ItemCore
  304. {
  305. class ItemInfo;
  306. };
  307. class RD501_DMS: optic_DMS
  308. {
  309. author="RD501";
  310. _generalMacro="optic_DMS";
  311. scope=2;
  312. displayName="DMS LR 6-12x Scope A";
  313. picture="RD501_Weapons\_acc\data\rd501_ico_lr_01_ca.paa";
  314. model="RD501_Weapons\_acc\data\rd501_dms.p3d";
  315. descriptionShort="Long Range Scope";
  316. class ItemInfo: ItemInfo
  317. {
  318. mass=12;
  319. opticType=2;
  320. optics=1;
  321. modelOptics="RD501_Weapons\_acc\data\RD501_scope_DMS";
  322. class OpticsModes
  323. {
  324. class Snip
  325. {
  326. opticsID=1;
  327. useModelOptics=1;
  328. opticsPPEffects[]=
  329. {
  330. "OpticsCHAbera2",
  331. "OpticsBlur3"
  332. };
  333. opticsZoomMin = scope_magnification(12);
  334. opticsZoomMax = scope_magnification(6);
  335. opticsZoomInit = scope_magnification(6);
  336. discreteinitIndex = 0;
  337. discretefov[] = {scope_magnification(6),scope_magnification(12)};
  338. discreteDistanceInitIndex = 1;
  339. distanceZoomMin=300;
  340. distanceZoomMax=1200;
  341. memoryPointCamera="opticView";
  342. visionMode[]=
  343. {
  344. "Normal",
  345. "NVG",
  346. "Ti"
  347. };
  348. thermalMode[]={5,6};
  349. opticsFlare=1;
  350. opticsDisablePeripherialVision=0;
  351. cameraDir="";
  352. };
  353. class Iron: Snip
  354. {
  355. opticsID=2;
  356. useModelOptics=0;
  357. opticsPPEffects[]=
  358. {
  359. "",
  360. ""
  361. };
  362. opticsFlare=0;
  363. opticsDisablePeripherialVision=0;
  364. opticsZoomMin=0.25;
  365. opticsZoomMax=1.25;
  366. opticsZoomInit=0.75;
  367. memoryPointCamera="opticView";
  368. visionMode[]={};
  369. discretefov[]={};
  370. distanceZoomMin=200;
  371. distanceZoomMax=200;
  372. discreteDistance[]={200};
  373. discreteDistanceInitIndex=0;
  374. };
  375. };
  376. };
  377. inertia=0.2;
  378. };
  379. class RD501_DMS_2: RD501_DMS
  380. {
  381. picture="RD501_Weapons\_acc\data\rd501_ico_lr_02_ca.paa";
  382. model="RD501_Weapons\_acc\data\rd501_dms_2.p3d";
  383. displayName="DMS LR 6-12x Scope B";
  384. class ItemInfo: ItemInfo
  385. {
  386. modelOptics="RD501_Weapons\_acc\data\RD501_scope2_DMS";
  387. };
  388. };
  389. class RD501_DMS_3: RD501_DMS
  390. {
  391. picture="RD501_Weapons\_acc\data\rd501_ico_lr_03_ca.paa";
  392. model="RD501_Weapons\_acc\data\rd501_dms_3.p3d";
  393. displayName="DMS LR 6-12x Scope C";
  394. class ItemInfo: ItemInfo
  395. {
  396. modelOptics="RD501_Weapons\_acc\data\RD501_scope3_DMS";
  397. };
  398. };
  399. class RD501_DMS_4: RD501_DMS
  400. {
  401. picture="RD501_Weapons\_acc\data\rd501_ico_lr_03_ca.paa";
  402. model="RD501_Weapons\_acc\data\rd501_dms_4.p3d";
  403. displayName="DMS LR 6-12x Scope D";
  404. class ItemInfo: ItemInfo
  405. {
  406. modelOptics="RD501_Weapons\_acc\data\RD501_scope4_DMS";
  407. };
  408. };
  409. class optic_MRD:ItemCore
  410. {
  411. class ItemInfo;
  412. }
  413. class RD501_pistol: optic_MRD
  414. {
  415. author="RD501";
  416. scope=2;
  417. displayName="Pistol Holo A";
  418. picture="RD501_Weapons\_acc\data\rd501_ico_pistol_01_ca.paa";
  419. model="RD501_Weapons\_acc\data\rd501_pistol_1.p3d";
  420. descriptionShort="Pistol Scope";
  421. class ItemInfo: ItemInfo
  422. {
  423. mass=2;
  424. modelOptics="\A3\Weapons_F\empty";
  425. optics=1;
  426. class OpticsModes
  427. {
  428. class ACO
  429. {
  430. opticsID=1;
  431. useModelOptics=0;
  432. opticsZoomMin=0.25;
  433. opticsZoomMax=1.25;
  434. opticsZoomInit=0.75;
  435. memoryPointCamera="eye";
  436. opticsFlare=0;
  437. opticsDisablePeripherialVision=0;
  438. distanceZoomMin=50;
  439. distanceZoomMax=50;
  440. cameraDir="";
  441. visionMode[]={};
  442. opticsPPEffects[]=
  443. {
  444. "Default"
  445. };
  446. };
  447. };
  448. };
  449. inertia=0;
  450. };
  451. class RD501_pistol_2: RD501_pistol
  452. {
  453. picture="RD501_Weapons\_acc\data\rd501_ico_pistol_03_ca.paa";
  454. model="RD501_Weapons\_acc\data\rd501_pistol_3.p3d";
  455. displayName="Pistol Holo B";
  456. };
  457. ////////////////////////////////////////////////////////////////////////////
  458. ///////////////////////////Lights///////////////////////////////////////////
  459. ////////////////////////////////////////////////////////////////////////////
  460. };