config.cpp 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168
  1. //Get this addons macro
  2. //get the macro for the air subaddon
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon Y_Wing
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_y_wing_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(Y_Wing)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(Y_wing,MkII),
  23. macro_new_vehicle(Y_wing,Rebels_MkII),
  24. macro_new_vehicle(LAAT,vtol)
  25. };
  26. weapons[]=
  27. {
  28. };
  29. };
  30. };
  31. #include "../../common/sensor_templates.hpp"
  32. class CBA_Extended_EventHandlers_base;
  33. class CfgVehicles
  34. {
  35. class Plane_Base_F;
  36. class swop_ywing_base: Plane_Base_F
  37. {
  38. class Turrets;
  39. };
  40. class swop_ywclones: swop_ywing_base
  41. {
  42. class Turrets:Turrets
  43. {
  44. class MainTurret;
  45. };
  46. class AnimationSources;
  47. class ViewCargo;
  48. class NewTurret;
  49. class ACE_SelfActions;
  50. };
  51. class macro_new_vehicle(Y_wing,MkII):swop_ywclones
  52. {
  53. side=1;
  54. scope=2;
  55. displayName = "Y-Wing";
  56. forceInGarage = 1;
  57. armor=300;
  58. faction = macro_republic_faction
  59. editorSubcategory = macro_editor_cat_air(Republic_vtol)
  60. vehicleClass = macro_editor_vehicle_type_air(Republic)
  61. class UserActions
  62. {
  63. class fRepulsorBrake
  64. {
  65. condition = "";
  66. displayName = "";
  67. displayNameDefault = "";
  68. hideonuse = 1;
  69. onlyForPlayer = 0;
  70. position = "";
  71. priority = 1e+011;
  72. radius = ;
  73. shortcut = "";
  74. statement = """";
  75. textToolTip = "";
  76. userActionID = ;
  77. };
  78. #include "../../common/universal_dmg_report.hpp"
  79. };
  80. class EventHandlers
  81. {
  82. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  83. init = "[_this select 0] execVM '\ywing\initturbine.sqf';";
  84. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  85. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  86. };
  87. #include "common.hpp"
  88. class Sounds;
  89. class SoundsExt;
  90. class pilotCamera
  91. {
  92. class OpticsIn
  93. {
  94. class Wide
  95. {
  96. opticsDisplayName="WFOV";
  97. initAngleX=0;
  98. minAngleX=-10;
  99. maxAngleX=90;
  100. initAngleY=0;
  101. minAngleY=-90;
  102. maxAngleY=90;
  103. initFov=0.425;//"(30 / 120)";
  104. minFov=0.425;//"(30 / 120)";
  105. maxFov=0.425;//"(30 / 120)";
  106. directionStabilized=1;
  107. thermalMode[] = {0,1,2,3,4,5};
  108. visionMode[]=
  109. {
  110. "Normal",
  111. "NVG",
  112. "Ti"
  113. };
  114. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
  115. opticsPPEffects[]=
  116. {
  117. "OpticsCHAbera2",
  118. "OpticsBlur2"
  119. };
  120. };
  121. class zoomx4: Wide
  122. {
  123. opticsDisplayName="NFOV";
  124. initFov="(0.425/4)";//"(3.75 / 120)";
  125. minFov="(0.425/4)";//"(3.75 / 120)";
  126. maxFov="(0.425/4)";//"(3.75 / 120)";
  127. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  128. };
  129. class zoomX8: Wide
  130. {
  131. opticsDisplayName="NFOV";
  132. initFov="(0.42/8)";//"(.375 / 120)";
  133. minFov="(0.42/8)";//"(.375 / 120)";
  134. maxFov="(0.42/8)";//"(.375 / 120)";
  135. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  136. };
  137. class zoomX20: Wide
  138. {
  139. opticsDisplayName="NFOV";
  140. initFov="(0.42/20)";//"(.375 / 120)";
  141. minFov="(0.42/20)";//"(.375 / 120)";
  142. maxFov="(0.42/20)";//"(.375 / 120)";
  143. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  144. };
  145. class zoomX50: Wide
  146. {
  147. opticsDisplayName="NFOV";
  148. initFov="(0.42/50)";//"(.375 / 120)";
  149. minFov="(0.42/50)";//"(.375 / 120)";
  150. maxFov="(0.42/50)";//"(.375 / 120)";
  151. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  152. };
  153. class zoomX70: Wide
  154. {
  155. opticsDisplayName="NFOV";
  156. initFov="(0.42/70)";//"(.375 / 120)";
  157. minFov="(0.42/70)";//"(.375 / 120)";
  158. maxFov="(0.42/70)";//"(.375 / 120)";
  159. gunnerOpticsModel="\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
  160. };
  161. showMiniMapInOptics=1;
  162. showUAVViewInOptics=0;
  163. showSlingLoadManagerInOptics=1;
  164. };
  165. minTurn=-180;
  166. maxTurn=180;
  167. initTurn=0;
  168. minElev=-10;
  169. maxElev=90;
  170. initElev=-10;
  171. maxXRotSpeed=0.30000001;
  172. maxYRotSpeed=0.30000001;
  173. pilotOpticsShowCursor=1;
  174. controllable=1;
  175. };
  176. weapons[] = {
  177. macro_basic_air_weapons,
  178. macro_new_weapon(voltic,y_wing),
  179. macro_new_weapon(wynd,agm),
  180. macro_new_weapon(wynd,lgm),
  181. macro_new_weapon(bomb,SDB),
  182. macro_new_weapon(bomb,LGB),
  183. macro_new_weapon(bomb,cluster),
  184. macro_new_weapon(bomb,carpet_I)
  185. };
  186. magazines[] = {
  187. macro_basic_air_mags,
  188. macro_new_mag(voltic,200),
  189. macro_new_mag(voltic,200),
  190. macro_new_mag(voltic,200),
  191. macro_new_mag(voltic,200),
  192. macro_new_mag(voltic,200),
  193. macro_new_mag(agm,6),
  194. macro_new_mag(agm,6),
  195. macro_new_mag(agm,6),
  196. macro_new_mag(agm,6),
  197. macro_new_mag(agm,6),
  198. macro_new_mag(lgm,4),
  199. macro_new_mag(lgm,4),
  200. macro_new_mag(lgm,4),
  201. macro_new_mag(carpet_I_bomb_mag,20),
  202. macro_new_mag(carpet_I_bomb_mag,20),
  203. macro_new_mag(cluster_bomb,4),
  204. macro_new_mag(cluster_bomb,4),
  205. macro_new_mag(cluster_bomb,4),
  206. macro_new_mag(sdb_bomb,4),
  207. macro_new_mag(sdb_bomb,4),
  208. macro_new_mag(sdb_bomb,4),
  209. macro_new_mag(lgb_bomb,4),
  210. macro_new_mag(lgb_bomb,4),
  211. macro_new_mag(lgb_bomb,4)
  212. };
  213. };
  214. // class VTOL_02_infantry_base_F;
  215. // class VTOL_02_infantry_dynamicLoadout_base_F:VTOL_02_infantry_base_F
  216. // {
  217. // class Turrets;
  218. // class HitPoints;
  219. // };
  220. // class O_T_VTOL_02_infantry_dynamicLoadout_F:VTOL_02_infantry_dynamicLoadout_base_F
  221. // {
  222. // class Turrets: Turrets
  223. // {
  224. // class GunnerTurret;
  225. // class MainTurret;
  226. // class CargoTurret;
  227. // class CopilotTurret;
  228. // //class CargoTurret_01;
  229. // };
  230. // class HitPoints:HitPoints
  231. // {
  232. // class HitHull;
  233. // class HitFuel;
  234. // class HitHRotor;
  235. // class HitVRotor;
  236. // };
  237. // class AnimationSources;
  238. // };
  239. class macro_new_vehicle(LAAT,vtol): macro_new_vehicle(Y_wing,MkII)
  240. {
  241. displayName="VTOL LAAT Mk.II";
  242. gearsUpFrictionCoef=0;
  243. model="\LAAT\LAAT.p3d";
  244. hiddenSelections[] = {"camo1","camo2"};
  245. hiddenSelectionsTextures[]=
  246. {
  247. "RD501_Laat\textures\laat\Laat501stcxx\Laat501stBodyCXX_lightning.paa",
  248. "RD501_Laat\textures\laat\Laat501stcxx\Laat501stWingCXX.paa"
  249. };
  250. forceInGarage=1;
  251. availableForSupportTypes[] = {};
  252. weapons[] = {
  253. macro_basic_air_weapons,
  254. macro_new_weapon(generic,republic_aircraft_cannon),
  255. macro_new_weapon(generic,kannon),
  256. macro_new_weapon(wynd,a2a),
  257. macro_new_weapon(wynd,agm),
  258. macro_new_weapon(wynd,ugm),
  259. };
  260. magazines[] = {
  261. macro_new_mag(generic_aircraft_cannon_green,1000),
  262. macro_new_mag(a2a,4),
  263. macro_new_mag(agm,6),
  264. macro_new_mag(ugm,10),
  265. macro_basic_air_mags,
  266. macro_new_mag(Kannon,100)
  267. };
  268. armor=550;
  269. class Sounds: Sounds
  270. {
  271. class EngineExt
  272. {
  273. sound[]=
  274. {
  275. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  276. 1.25893,
  277. 1,
  278. 400
  279. };
  280. frequency="rotorSpeed";
  281. volume="camPos*((rotorSpeed-0.72)*4)";
  282. };
  283. class RotorExt
  284. {
  285. sound[]=
  286. {
  287. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  288. 1,
  289. 1,
  290. 4000
  291. };
  292. frequency="rotorSpeed * (1-rotorThrust/5)";
  293. volume="camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  294. cone[]={1.6,3.1400001,1.6,0.94999999};
  295. };
  296. class RotorNoiseExt
  297. {
  298. sound[]=
  299. {
  300. "",
  301. "db0",
  302. 1,
  303. 400
  304. };
  305. frequency=1;
  306. volume="(camPos*(rotorThrust factor [0.6, 1]))";
  307. cone[]={0.69999999,1.3,1,0};
  308. };
  309. class EngineInt
  310. {
  311. sound[]=
  312. {
  313. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  314. 0.30000001,
  315. 1
  316. };
  317. frequency="rotorSpeed";
  318. volume="2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  319. };
  320. class RotorInt
  321. {
  322. sound[]=
  323. {
  324. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  325. 0.30000001,
  326. 1
  327. };
  328. frequency="rotorSpeed * (1-rotorThrust/5)";
  329. volume="(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  330. };
  331. };
  332. class SoundsExt: SoundsExt
  333. {
  334. class Sounds: Sounds
  335. {
  336. class EngineExt
  337. {
  338. sound[]=
  339. {
  340. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  341. 1.25893,
  342. 1,
  343. 400
  344. };
  345. frequency="rotorSpeed";
  346. volume="camPos*((rotorSpeed-0.72)*4)";
  347. };
  348. class RotorExt
  349. {
  350. sound[]=
  351. {
  352. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  353. 1,
  354. 1,
  355. 4000
  356. };
  357. frequency="rotorSpeed * (1-rotorThrust/5)";
  358. volume="camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  359. cone[]={1.6,3.1400001,1.6,0.94999999};
  360. };
  361. class RotorNoiseExt
  362. {
  363. sound[]=
  364. {
  365. "",
  366. "db0",
  367. 1,
  368. 400
  369. };
  370. frequency=1;
  371. volume="(camPos*(rotorThrust factor [0.6, 1]))";
  372. cone[]={0.69999999,1.3,1,0};
  373. };
  374. class EngineInt
  375. {
  376. sound[]=
  377. {
  378. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  379. 0.30000001,
  380. 1
  381. };
  382. frequency="rotorSpeed";
  383. volume="2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  384. };
  385. class RotorInt
  386. {
  387. sound[]=
  388. {
  389. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  390. 0.30000001,
  391. 1
  392. };
  393. frequency="rotorSpeed * (1-rotorThrust/5)";
  394. volume="(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  395. };
  396. };
  397. };
  398. class Turrets: Turrets
  399. {
  400. class CopilotTurret: MainTurret
  401. {
  402. class ViewGunner
  403. {
  404. visionMode[]=
  405. {
  406. "Normal",
  407. "NVG"
  408. };
  409. gunnerOpticsEffect[]={};
  410. stabilizedInAxes=0;
  411. directionStabilized=0;
  412. horizontallyStabilized=0;
  413. initFov=1;
  414. minFov=0.60000002;
  415. maxFov=0.85000002;
  416. initAngleX=-10;
  417. minAngleX=-35;
  418. maxAngleX=85;
  419. initAngleY=0;
  420. minAngleY=-130;
  421. maxAngleY=130;
  422. minMoveX=-0.1;
  423. maxMoveX=0.1;
  424. minMoveY=-0.025;
  425. maxMoveY=0.1;
  426. minMoveZ=-0.1;
  427. maxMoveZ=0.1;
  428. gunnerOpticsModel="";
  429. };
  430. visionMode[]=
  431. {
  432. "Normal",
  433. "NVG",
  434. "Ti"
  435. };
  436. class Reflectors
  437. {
  438. class cabin
  439. {
  440. color[]={830,100,100};
  441. ambient[]={5,0,0};
  442. class Attenuation
  443. {
  444. start=0;
  445. constant=0;
  446. linear=1;
  447. quadratic=50;
  448. hardLimitStart=1;
  449. hardLimitEnd=1.5;
  450. };
  451. intensity=9;
  452. size=1;
  453. innerAngle=90;
  454. outerAngle=165;
  455. coneFadeCoef=1;
  456. position="cabin_light";
  457. direction="cabin_light_dir";
  458. hitpoint="cabin_light";
  459. selection="cabin_light";
  460. useFlare=1;
  461. flareSize=1;
  462. flareMaxDistance=5;
  463. dayLight=1;
  464. blinking=0;
  465. };
  466. class cabin2
  467. {
  468. color[]={830,100,100};
  469. ambient[]={5,0,0};
  470. class Attenuation
  471. {
  472. start=0;
  473. constant=0;
  474. linear=1;
  475. quadratic=50;
  476. hardLimitStart=1;
  477. hardLimitEnd=1.5;
  478. };
  479. intensity=9;
  480. size=1;
  481. innerAngle=90;
  482. outerAngle=165;
  483. coneFadeCoef=1;
  484. position="cabin_light2";
  485. direction="cabin_light2_dir";
  486. hitpoint="cabin_light2";
  487. selection="cabin_light2";
  488. useFlare=1;
  489. flareSize=1;
  490. flareMaxDistance=5;
  491. dayLight=1;
  492. blinking=0;
  493. };
  494. class cargo_light_1: cabin
  495. {
  496. color[]={830,100,100};
  497. class Attenuation
  498. {
  499. start=0;
  500. constant=0;
  501. linear=1;
  502. quadratic=70;
  503. hardLimitStart=2;
  504. hardLimitEnd=2.5;
  505. };
  506. position="cargo_light_1";
  507. direction="cargo_light_1_dir";
  508. hitpoint="cargo_light_1";
  509. selection="cargo_light_1";
  510. intensity=21;
  511. useFlare=0;
  512. coneFadeCoef=0.1;
  513. };
  514. class cargo_light_2: cargo_light_1
  515. {
  516. position="cargo_light_2";
  517. direction="cargo_light_2_dir";
  518. hitpoint="cargo_light_2";
  519. selection="cargo_light_2";
  520. };
  521. };
  522. discreteDistance[]={100,200,300,400,500,600,700,800,1000,1200,1500,1800,2100,2400};
  523. magazines[]=
  524. {
  525. "Laserbatteries",
  526. "1000Rnd_Laser_Cannon_LAAT",
  527. "1000Rnd_Laser_Cannon_LAAT"
  528. };
  529. weapons[]=
  530. {
  531. "Laserdesignator_mounted",
  532. "Cannon_LAAT"
  533. };
  534. class Viewoptics
  535. {
  536. visionMode[]=
  537. {
  538. "Normal",
  539. "NVG",
  540. "Ti"
  541. };
  542. minAngleX=0;
  543. maxAngleX=0;
  544. initAngleX=0;
  545. minAngleY=-15;
  546. maxAngleY=15;
  547. initAngleY=0;
  548. initFov=0.75;
  549. minFov=0.25;
  550. maxFov=0.75;
  551. };
  552. class OpticsIn
  553. {
  554. class Wide
  555. {
  556. visionMode[]=
  557. {
  558. "Normal",
  559. "NVG",
  560. "Ti"
  561. };
  562. thermalMode[]={0,1};
  563. initAngleX=0;
  564. minAngleX=0;
  565. maxAngleX=0;
  566. initAngleY=0;
  567. minAngleY=-15;
  568. maxAngleY=15;
  569. initFov=0.46599999;
  570. minFov=0.46599999;
  571. maxFov=0.46599999;
  572. opticsDisplayName="W";
  573. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_wide_F";
  574. };
  575. class Medium: Wide
  576. {
  577. initFov=0.093000002;
  578. minFov=0.093000002;
  579. maxFov=0.093000002;
  580. opticsDisplayName="M";
  581. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_medium_F";
  582. };
  583. class Narrow: Wide
  584. {
  585. initFov=0.028999999;
  586. minFov=0.028999999;
  587. maxFov=0.028999999;
  588. opticsDisplayName="N";
  589. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_narrow_F";
  590. };
  591. };
  592. class OpticsOut
  593. {
  594. class Monocular
  595. {
  596. visionMode[]=
  597. {
  598. "Normal",
  599. "NVG"
  600. };
  601. gunnerOpticsEffect[]={};
  602. initAngleX=-10;
  603. minAngleX=-30;
  604. maxAngleX=30;
  605. initAngleY=0;
  606. minAngleY=-100;
  607. maxAngleY=100;
  608. minFov=0.25;
  609. maxFov=1.25;
  610. initFov=0.75;
  611. gunnerOpticsModel="";
  612. };
  613. };
  614. class Components
  615. {
  616. class VehicleSystemsDisplayManagerComponentLeft: DefaultVehicleSystemsDisplayManagerLeft
  617. {
  618. class Components: components
  619. {
  620. class VehiclePrimaryGunnerDisplay
  621. {
  622. componentType="TransportFeedDisplayComponent";
  623. source="PrimaryGunner";
  624. };
  625. class VehicleMissileDisplay
  626. {
  627. componentType="TransportFeedDisplayComponent";
  628. source="Missile";
  629. };
  630. class SensorDisplay
  631. {
  632. range[]={4000,2000,16000,8000};
  633. componentType="SensorsDisplayComponent";
  634. resource="RscCustomInfoSensors";
  635. };
  636. };
  637. };
  638. class VehicleSystemsDisplayManagerComponentRight: DefaultVehicleSystemsDisplayManagerRight
  639. {
  640. class Components: components
  641. {
  642. class VehiclePrimaryGunnerDisplay
  643. {
  644. componentType="TransportFeedDisplayComponent";
  645. source="PrimaryGunner";
  646. };
  647. class VehicleMissileDisplay
  648. {
  649. componentType="TransportFeedDisplayComponent";
  650. source="Missile";
  651. };
  652. class SensorDisplay
  653. {
  654. range[]={4000,2000,16000,8000};
  655. componentType="SensorsDisplayComponent";
  656. resource="RscCustomInfoSensors";
  657. };
  658. };
  659. defaultDisplay="SensorDisplay";
  660. };
  661. };
  662. soundServo[]=
  663. {
  664. "",
  665. 0.0099999998,
  666. 1
  667. };
  668. gunnerOpticsEffect[]=
  669. {
  670. "TankCommanderOptics1",
  671. "BWTV"
  672. };
  673. primaryObserver=0;
  674. primaryGunner=1;
  675. primary=1;
  676. usePip=1;
  677. turretFollowFreeLook=0;
  678. gunnerCompartments="Compartment2";
  679. body="mainTurret";
  680. gun="mainGun";
  681. gunBeg="Usti hlavne";
  682. gunEnd="konec hlavne";
  683. animationSourceBody="mainTurret";
  684. animationSourceGun="mainGun";
  685. gunnerLeftHandAnimName="";
  686. gunnerRightHandAnimName="";
  687. maxHorizontalRotSpeed=5;
  688. maxVerticalRotSpeed=5;
  689. proxyindex=1;
  690. isCopilot=1;
  691. gunnerName="Co-Pilot";
  692. showHMD=1;
  693. castCargoShadow=0;
  694. viewCargoShadow=0;
  695. castDriverShadow=0;
  696. viewDriverShadow=0;
  697. CanEject=1;
  698. hideWeaponsGunner=1;
  699. memoryPointsGetInGunner="pos driver";
  700. memoryPointsGetInGunnerDir="pos driver dir";
  701. memoryPointGunnerOutOptics="gunnerviewout";
  702. discreteDistanceInitIndex=5;
  703. gunnerAction="Driver_mid01";
  704. gunnerInAction="Driver_mid01";
  705. gunnerGetInAction="GetInLow";
  706. gunnerGetOutAction="GetOutLow";
  707. gunnerUsesPilotView=0;
  708. commanding=-1;
  709. startEngine=0;
  710. stabilizedInAxes="StabilizedInAxesBoth";
  711. showAllTargets=4;
  712. minElev=-15;
  713. maxElev=15;
  714. initElev=0;
  715. minTurn=0;
  716. maxTurn=0;
  717. initTurn=0;
  718. memoryPointLRocket="RocketL";
  719. memoryPointRRocket="RocketR";
  720. memoryPointLMissile="RocketL";
  721. memoryPointRMissile="RocketR";
  722. selectionFireAnim="";
  723. SWOP_JumpMasterTurretIndex=1;
  724. outGunnerMayFire=1;
  725. memoryPointGunnerOptics="gunner1";
  726. castGunnerShadow=0;
  727. viewGunnerShadow=0;
  728. gunnerOpticsModel="";
  729. gunnerForceOptics=0;
  730. turretInfoType="RscOptics_Heli_Attack_01_gunner";
  731. gunnerNotSpawned=1;
  732. gunnerLeftLegAnimName="pedalL";
  733. gunnerRightLegAnimName="pedalR";
  734. turretCanSee="1 + 2 + 4 + 8 + 16";
  735. };
  736. class GunnerTurret1: MainTurret
  737. {
  738. soundServo[]=
  739. {
  740. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner",
  741. 0.36234099,
  742. 1,
  743. 20
  744. };
  745. soundServoVertical[]=
  746. {
  747. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner_vertical",
  748. 0.36234099,
  749. 1,
  750. 30
  751. };
  752. weapons[]=
  753. {
  754. "Cannon_LAAT_Turret1"
  755. };
  756. magazines[]=
  757. {
  758. "500Rnd_Cannon_LAAT_TURRET",
  759. "500Rnd_Cannon_LAAT_TURRET"
  760. };
  761. class ViewOptics
  762. {
  763. initAngleX=0;
  764. minAngleX=-30;
  765. maxAngleX=30;
  766. initAngleY=0;
  767. minAngleY=-100;
  768. maxAngleY=100;
  769. initFov=0.69999999;
  770. minFov=0.25;
  771. maxFov=1.1;
  772. };
  773. class OpticsIn
  774. {
  775. class Wide
  776. {
  777. visionMode[]=
  778. {
  779. "Normal",
  780. "NVG",
  781. "Ti"
  782. };
  783. thermalMode[]={0,1};
  784. opticsDisplayName="W";
  785. initAngleX=0;
  786. minAngleX=-45;
  787. maxAngleX=45;
  788. initAngleY=0;
  789. minAngleY=-100;
  790. maxAngleY=100;
  791. initFov=0.46599999;
  792. minFov=0.46599999;
  793. maxFov=0.46599999;
  794. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  795. };
  796. class Medium: Wide
  797. {
  798. opticsDisplayName="M";
  799. initFov=0.093000002;
  800. minFov=0.093000002;
  801. maxFov=0.093000002;
  802. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_m_F";
  803. };
  804. class Narrow: Wide
  805. {
  806. opticsDisplayName="N";
  807. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_n_F";
  808. initFov=0.028999999;
  809. minFov=0.028999999;
  810. maxFov=0.028999999;
  811. };
  812. };
  813. isCopilot=0;
  814. proxyIndex=2;
  815. commanding=-4;
  816. primaryObserver=0;
  817. primaryGunner=0;
  818. body="mainTurret2";
  819. gun="mainGun2";
  820. minElev=-60;
  821. maxElev=60;
  822. initElev=0;
  823. minTurn=0;
  824. maxTurn=110;
  825. initTurn=0;
  826. turretFollowFreeLook=0;
  827. isPersonTurret=0;
  828. memoryPointGunnerOptics="gunnerview2";
  829. memoryPointGun="machinegun2";
  830. animationSourceHatch="";
  831. stabilizedInAxes="StabilizedInAxesNone";
  832. selectionFireAnim="";
  833. animationSourceBody="MainTurret2";
  834. animationSourceGun="MainGun2";
  835. gunBeg="muzzle_2";
  836. gunEnd="chamber_2";
  837. gunnerName="Ball Turret (Left)";
  838. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  839. gunnerOutOpticsShowCursor=1;
  840. gunnerOpticsShowCursor=1;
  841. gunnerAction="Driver_mid01";
  842. gunnerInAction="Driver_mid01";
  843. gunnerlefthandanimname="";
  844. gunnerrighthandanimname="";
  845. gunnerLeftLegAnimName="";
  846. gunnerRightLegAnimName="";
  847. gunnerGetInAction="GetInLow";
  848. gunnerGetOutAction="GetOutLow";
  849. gunnerForceOptics=0;
  850. inGunnerMayFire=1;
  851. gunnerFireAlsoInInternalCamera=1;
  852. outGunnerMayFire=1;
  853. gunnerCompartments="Compartment4";
  854. memoryPointsGetInGunner="pos driver";
  855. memoryPointsGetInGunnerDir="pos driver dir";
  856. turretinfotype="RscOptics_APC_Tracked_01_gunner";
  857. };
  858. class GunnerTurret2: GunnerTurret1
  859. {
  860. soundServo[]=
  861. {
  862. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner",
  863. 0.36234099,
  864. 1,
  865. 20
  866. };
  867. soundServoVertical[]=
  868. {
  869. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner_vertical",
  870. 0.36234099,
  871. 1,
  872. 30
  873. };
  874. weapons[]=
  875. {
  876. "Cannon_LAAT_Turret2"
  877. };
  878. magazines[]=
  879. {
  880. "500Rnd_Cannon_LAAT_TURRET",
  881. "500Rnd_Cannon_LAAT_TURRET"
  882. };
  883. isCopilot=0;
  884. body="mainTurret3";
  885. gun="mainGun3";
  886. minTurn=-110;
  887. maxTurn=0;
  888. initTurn=0;
  889. inGunnerMayFire=1;
  890. gunnerFireAlsoInInternalCamera=1;
  891. outGunnerMayFire=1;
  892. animationSourceBody="MainTurret3";
  893. animationSourceGun="MainGun3";
  894. gunBeg="muzzle_3";
  895. gunEnd="chamber_3";
  896. gunnerlefthandanimname="";
  897. gunnerrighthandanimname="";
  898. gunnerLeftLegAnimName="";
  899. gunnerRightLegAnimName="";
  900. stabilizedInAxes="StabilizedInAxesNone";
  901. selectionFireAnim="";
  902. proxyIndex=3;
  903. commanding=-5;
  904. primaryObserver=0;
  905. primaryGunner=0;
  906. turretFollowFreeLook=0;
  907. isPersonTurret=0;
  908. gunnerOutOpticsShowCursor=1;
  909. gunnerOpticsShowCursor=1;
  910. gunnerName="Ball Turret (Right)";
  911. memoryPointGun="machinegun3";
  912. memoryPointGunnerOptics="gunnerview3";
  913. gunnerCompartments="Compartment5";
  914. memoryPointsGetInGunner="pos driver";
  915. memoryPointsGetInGunnerDir="pos driver dir";
  916. };
  917. class CargoTurret_01: MainTurret
  918. {
  919. weapons[]=
  920. {
  921. };
  922. magazines[]=
  923. {
  924. };
  925. gunnerAction="passenger_inside_3";
  926. gunnerGetInAction="GetInLow";
  927. gunnerGetOutAction="GetOutLow";
  928. memoryPointsGetInGunner="pos cargo";
  929. memoryPointsGetInGunnerDir="pos cargo dir";
  930. gunnerName="Passenger (left-back)";
  931. gunnerCompartments="Compartment6";
  932. memoryPointGunnerOptics="";
  933. LODTurnedIn=1;
  934. LODTurnedOut=1;
  935. proxyIndex=42;
  936. maxElev=45;
  937. minElev=-35;
  938. maxTurn=61;
  939. minTurn=-65;
  940. castGunnerShadow=0;
  941. viewGunnerShadow=0;
  942. castCargoShadow=1;
  943. viewCargoShadow=1;
  944. castDriverShadow=0;
  945. viewDriverShadow=0;
  946. enabledByAnimationSource="";
  947. isCopilot=0;
  948. };
  949. class CargoTurret_02: CargoTurret_01
  950. {
  951. gunnerAction="passenger_inside_3";
  952. gunnerName="Passenger (left-front)";
  953. gunnerCompartments="Compartment6";
  954. memoryPointsGetInGunner="pos cargo";
  955. memoryPointsGetInGunnerDir="pos cargo dir";
  956. proxyIndex=43;
  957. castGunnerShadow=0;
  958. viewGunnerShadow=0;
  959. castCargoShadow=1;
  960. viewCargoShadow=1;
  961. castDriverShadow=0;
  962. viewDriverShadow=0;
  963. enabledByAnimationSource="";
  964. };
  965. class CargoTurret_03: CargoTurret_01
  966. {
  967. gunnerAction="passenger_inside_3";
  968. gunnerName="Passenger (left-middle)";
  969. gunnerCompartments="Compartment6";
  970. memoryPointsGetInGunner="pos cargo";
  971. memoryPointsGetInGunnerDir="pos cargo dir";
  972. proxyIndex=44;
  973. castGunnerShadow=0;
  974. viewGunnerShadow=0;
  975. castCargoShadow=1;
  976. viewCargoShadow=1;
  977. castDriverShadow=0;
  978. viewDriverShadow=0;
  979. enabledByAnimationSource="";
  980. };
  981. class CargoTurret_04: CargoTurret_01
  982. {
  983. gunnerAction="passenger_inside_3";
  984. gunnerName="Passenger (right-back)";
  985. gunnerCompartments="Compartment6";
  986. memoryPointsGetInGunner="pos cargo";
  987. memoryPointsGetInGunnerDir="pos cargo dir";
  988. proxyIndex=45;
  989. castGunnerShadow=0;
  990. viewGunnerShadow=0;
  991. castCargoShadow=1;
  992. viewCargoShadow=1;
  993. castDriverShadow=0;
  994. viewDriverShadow=0;
  995. enabledByAnimationSource="";
  996. };
  997. class CargoTurret_05: CargoTurret_01
  998. {
  999. gunnerAction="passenger_inside_3";
  1000. gunnerName="Passenger (right-front)";
  1001. gunnerCompartments="Compartment6";
  1002. memoryPointsGetInGunner="pos cargo";
  1003. memoryPointsGetInGunnerDir="pos cargo dir";
  1004. proxyIndex=46;
  1005. castGunnerShadow=0;
  1006. viewGunnerShadow=0;
  1007. castCargoShadow=1;
  1008. viewCargoShadow=1;
  1009. castDriverShadow=0;
  1010. viewDriverShadow=0;
  1011. enabledByAnimationSource="";
  1012. };
  1013. class CargoTurret_06: CargoTurret_01
  1014. {
  1015. gunnerAction="passenger_inside_3";
  1016. gunnerName="Passenger (right-middle)";
  1017. gunnerCompartments="Compartment6";
  1018. memoryPointsGetInGunner="pos cargo";
  1019. memoryPointsGetInGunnerDir="pos cargo dir";
  1020. proxyIndex=47;
  1021. castGunnerShadow=0;
  1022. viewGunnerShadow=0;
  1023. castCargoShadow=1;
  1024. viewCargoShadow=1;
  1025. castDriverShadow=0;
  1026. viewDriverShadow=0;
  1027. enabledByAnimationSource="";
  1028. };
  1029. };
  1030. thrustCoef[]=
  1031. {
  1032. "1.16*2.4",
  1033. "1.15*1.75",
  1034. "1.14*1.5",
  1035. "1.14*1.1",
  1036. "1.13*1",
  1037. "1.12*1",
  1038. "1.1*1",
  1039. "1.07*1",
  1040. "0.99*1",
  1041. "0.2*1",
  1042. 0,
  1043. 0,
  1044. 0
  1045. };
  1046. thrustDelay=0;
  1047. };
  1048. //#include "_vtol_laat.hpp"
  1049. class swop_yw: swop_ywing_base
  1050. {
  1051. class Turrets:Turrets
  1052. {
  1053. class MainTurret;
  1054. };
  1055. class ACE_SelfActions;
  1056. }
  1057. class macro_new_vehicle(Y_wing,Rebels_MkII) : swop_yw
  1058. {
  1059. faction = macro_rebel_faction
  1060. editorSubcategory = macro_editor_cat_air(Rebel_vtol)
  1061. vehicleClass = macro_editor_vehicle_type_air(Rebel)
  1062. scope = 2;
  1063. altFullForce = 6000;
  1064. airBrakeFrictionCoef = 80.4;
  1065. altNoForce = 9000;
  1066. forceInGarage=1;
  1067. displayname = "Y-Wing Rebels Mk.II";
  1068. visualTarget = 1;
  1069. visualTargetSize = 1;
  1070. reportOwnPosition = true;
  1071. radarTargetSize = 1;
  1072. radarTarget = 1;
  1073. nvTarget = 1;
  1074. laserTarget = 1;
  1075. laserScanner = 0;
  1076. irTarget = 1;
  1077. irTargetSize = 1;
  1078. countermeasureActivationRadius = 2000;
  1079. armor=800;
  1080. #include "common.hpp"
  1081. class EventHandlers
  1082. {
  1083. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  1084. init = "[_this select 0] execVM '\ywing\initturbine.sqf';";
  1085. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  1086. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  1087. };
  1088. weapons[] = {
  1089. macro_basic_air_weapons,
  1090. macro_new_weapon(voltic,y_wing),
  1091. macro_new_weapon(wynd,a2a),
  1092. macro_new_weapon(wynd,agm),
  1093. macro_new_weapon(wynd,ugm),
  1094. macro_new_weapon(bomb,cluster),
  1095. macro_new_weapon(bomb,SDB),
  1096. macro_new_weapon(bomb,LGB),
  1097. };
  1098. magazines[] = {
  1099. macro_basic_air_mags,
  1100. macro_new_mag(voltic,200),
  1101. macro_new_mag(voltic,200),
  1102. macro_new_mag(voltic,200),
  1103. macro_new_mag(voltic,200),
  1104. macro_new_mag(voltic,200),
  1105. macro_new_mag(a2a,4),
  1106. macro_new_mag(a2a,4),
  1107. macro_new_mag(agm,6),
  1108. macro_new_mag(ugm,10),
  1109. macro_new_mag(cluster_bomb,4),
  1110. macro_new_mag(cluster_bomb,4),
  1111. macro_new_mag(cluster_bomb,4),
  1112. macro_new_mag(sdb_bomb,4),
  1113. macro_new_mag(sdb_bomb,4),
  1114. macro_new_mag(sdb_bomb,4),
  1115. macro_new_mag(lgb_bomb,4),
  1116. macro_new_mag(lgb_bomb,4),
  1117. macro_new_mag(lgb_bomb,4)
  1118. };
  1119. };
  1120. };