config.cpp 24 KB

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