config.cpp 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175
  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. forceInGarage=1;
  245. availableForSupportTypes[] = {};
  246. weapons[]=
  247. {
  248. macro_new_weapon(cannon,laat),
  249. macro_new_weapon(wynd,a2a),
  250. "CMFlareLauncher",
  251. "SmokeLauncher",
  252. "Laserdesignator_pilotCamera"
  253. };
  254. magazines[]=
  255. {
  256. "300Rnd_CMFlare_Chaff_Magazine",
  257. "300Rnd_CMFlare_Chaff_Magazine",
  258. "300Rnd_CMFlare_Chaff_Magazine",
  259. macro_new_mag(a2a,4),
  260. macro_new_mag(a2a,4),
  261. macro_new_mag(a2a,4),
  262. "SmokeLauncherMag",
  263. macro_new_mag(laat_cannon,100),
  264. macro_new_mag(laat_cannon,100),
  265. macro_new_mag(laat_cannon,100),
  266. macro_new_mag(laat_cannon,100),
  267. "SmokeLauncherMag",
  268. "SmokeLauncherMag",
  269. "SmokeLauncherMag",
  270. "SmokeLauncherMag",
  271. "SmokeLauncherMag",
  272. "SmokeLauncherMag",
  273. "Laserbatteries"
  274. };
  275. armor=550;
  276. class Sounds: Sounds
  277. {
  278. class EngineExt
  279. {
  280. sound[]=
  281. {
  282. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  283. 1.25893,
  284. 1,
  285. 400
  286. };
  287. frequency="rotorSpeed";
  288. volume="camPos*((rotorSpeed-0.72)*4)";
  289. };
  290. class RotorExt
  291. {
  292. sound[]=
  293. {
  294. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  295. 1,
  296. 1,
  297. 4000
  298. };
  299. frequency="rotorSpeed * (1-rotorThrust/5)";
  300. volume="camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  301. cone[]={1.6,3.1400001,1.6,0.94999999};
  302. };
  303. class RotorNoiseExt
  304. {
  305. sound[]=
  306. {
  307. "",
  308. "db0",
  309. 1,
  310. 400
  311. };
  312. frequency=1;
  313. volume="(camPos*(rotorThrust factor [0.6, 1]))";
  314. cone[]={0.69999999,1.3,1,0};
  315. };
  316. class EngineInt
  317. {
  318. sound[]=
  319. {
  320. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  321. 0.30000001,
  322. 1
  323. };
  324. frequency="rotorSpeed";
  325. volume="2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  326. };
  327. class RotorInt
  328. {
  329. sound[]=
  330. {
  331. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  332. 0.30000001,
  333. 1
  334. };
  335. frequency="rotorSpeed * (1-rotorThrust/5)";
  336. volume="(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  337. };
  338. };
  339. class SoundsExt: SoundsExt
  340. {
  341. class Sounds: Sounds
  342. {
  343. class EngineExt
  344. {
  345. sound[]=
  346. {
  347. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  348. 1.25893,
  349. 1,
  350. 400
  351. };
  352. frequency="rotorSpeed";
  353. volume="camPos*((rotorSpeed-0.72)*4)";
  354. };
  355. class RotorExt
  356. {
  357. sound[]=
  358. {
  359. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  360. 1,
  361. 1,
  362. 4000
  363. };
  364. frequency="rotorSpeed * (1-rotorThrust/5)";
  365. volume="camPos*(0 max (rotorSpeed-0.1))*(1 + rotorThrust)";
  366. cone[]={1.6,3.1400001,1.6,0.94999999};
  367. };
  368. class RotorNoiseExt
  369. {
  370. sound[]=
  371. {
  372. "",
  373. "db0",
  374. 1,
  375. 400
  376. };
  377. frequency=1;
  378. volume="(camPos*(rotorThrust factor [0.6, 1]))";
  379. cone[]={0.69999999,1.3,1,0};
  380. };
  381. class EngineInt
  382. {
  383. sound[]=
  384. {
  385. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  386. 0.30000001,
  387. 1
  388. };
  389. frequency="rotorSpeed";
  390. volume="2 * (1-camPos)*(rotorSpeed factor[0.4,1])";
  391. };
  392. class RotorInt
  393. {
  394. sound[]=
  395. {
  396. "RD501_Vehicles\sounds\LAAT\laat_Idle.ogg",
  397. 0.30000001,
  398. 1
  399. };
  400. frequency="rotorSpeed * (1-rotorThrust/5)";
  401. volume="(1-camPos) * (rotorSpeed factor[0.3, 1]) * (1 + rotorThrust)";
  402. };
  403. };
  404. };
  405. class Turrets: Turrets
  406. {
  407. class CopilotTurret: MainTurret
  408. {
  409. class ViewGunner
  410. {
  411. visionMode[]=
  412. {
  413. "Normal",
  414. "NVG"
  415. };
  416. gunnerOpticsEffect[]={};
  417. stabilizedInAxes=0;
  418. directionStabilized=0;
  419. horizontallyStabilized=0;
  420. initFov=1;
  421. minFov=0.60000002;
  422. maxFov=0.85000002;
  423. initAngleX=-10;
  424. minAngleX=-35;
  425. maxAngleX=85;
  426. initAngleY=0;
  427. minAngleY=-130;
  428. maxAngleY=130;
  429. minMoveX=-0.1;
  430. maxMoveX=0.1;
  431. minMoveY=-0.025;
  432. maxMoveY=0.1;
  433. minMoveZ=-0.1;
  434. maxMoveZ=0.1;
  435. gunnerOpticsModel="";
  436. };
  437. visionMode[]=
  438. {
  439. "Normal",
  440. "NVG",
  441. "Ti"
  442. };
  443. class Reflectors
  444. {
  445. class cabin
  446. {
  447. color[]={830,100,100};
  448. ambient[]={5,0,0};
  449. class Attenuation
  450. {
  451. start=0;
  452. constant=0;
  453. linear=1;
  454. quadratic=50;
  455. hardLimitStart=1;
  456. hardLimitEnd=1.5;
  457. };
  458. intensity=9;
  459. size=1;
  460. innerAngle=90;
  461. outerAngle=165;
  462. coneFadeCoef=1;
  463. position="cabin_light";
  464. direction="cabin_light_dir";
  465. hitpoint="cabin_light";
  466. selection="cabin_light";
  467. useFlare=1;
  468. flareSize=1;
  469. flareMaxDistance=5;
  470. dayLight=1;
  471. blinking=0;
  472. };
  473. class cabin2
  474. {
  475. color[]={830,100,100};
  476. ambient[]={5,0,0};
  477. class Attenuation
  478. {
  479. start=0;
  480. constant=0;
  481. linear=1;
  482. quadratic=50;
  483. hardLimitStart=1;
  484. hardLimitEnd=1.5;
  485. };
  486. intensity=9;
  487. size=1;
  488. innerAngle=90;
  489. outerAngle=165;
  490. coneFadeCoef=1;
  491. position="cabin_light2";
  492. direction="cabin_light2_dir";
  493. hitpoint="cabin_light2";
  494. selection="cabin_light2";
  495. useFlare=1;
  496. flareSize=1;
  497. flareMaxDistance=5;
  498. dayLight=1;
  499. blinking=0;
  500. };
  501. class cargo_light_1: cabin
  502. {
  503. color[]={830,100,100};
  504. class Attenuation
  505. {
  506. start=0;
  507. constant=0;
  508. linear=1;
  509. quadratic=70;
  510. hardLimitStart=2;
  511. hardLimitEnd=2.5;
  512. };
  513. position="cargo_light_1";
  514. direction="cargo_light_1_dir";
  515. hitpoint="cargo_light_1";
  516. selection="cargo_light_1";
  517. intensity=21;
  518. useFlare=0;
  519. coneFadeCoef=0.1;
  520. };
  521. class cargo_light_2: cargo_light_1
  522. {
  523. position="cargo_light_2";
  524. direction="cargo_light_2_dir";
  525. hitpoint="cargo_light_2";
  526. selection="cargo_light_2";
  527. };
  528. };
  529. discreteDistance[]={100,200,300,400,500,600,700,800,1000,1200,1500,1800,2100,2400};
  530. magazines[]=
  531. {
  532. "Laserbatteries",
  533. "1000Rnd_Laser_Cannon_LAAT",
  534. "1000Rnd_Laser_Cannon_LAAT"
  535. };
  536. weapons[]=
  537. {
  538. "Laserdesignator_mounted",
  539. "Cannon_LAAT"
  540. };
  541. class Viewoptics
  542. {
  543. visionMode[]=
  544. {
  545. "Normal",
  546. "NVG",
  547. "Ti"
  548. };
  549. minAngleX=0;
  550. maxAngleX=0;
  551. initAngleX=0;
  552. minAngleY=-15;
  553. maxAngleY=15;
  554. initAngleY=0;
  555. initFov=0.75;
  556. minFov=0.25;
  557. maxFov=0.75;
  558. };
  559. class OpticsIn
  560. {
  561. class Wide
  562. {
  563. visionMode[]=
  564. {
  565. "Normal",
  566. "NVG",
  567. "Ti"
  568. };
  569. thermalMode[]={0,1};
  570. initAngleX=0;
  571. minAngleX=0;
  572. maxAngleX=0;
  573. initAngleY=0;
  574. minAngleY=-15;
  575. maxAngleY=15;
  576. initFov=0.46599999;
  577. minFov=0.46599999;
  578. maxFov=0.46599999;
  579. opticsDisplayName="W";
  580. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_wide_F";
  581. };
  582. class Medium: Wide
  583. {
  584. initFov=0.093000002;
  585. minFov=0.093000002;
  586. maxFov=0.093000002;
  587. opticsDisplayName="M";
  588. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_medium_F";
  589. };
  590. class Narrow: Wide
  591. {
  592. initFov=0.028999999;
  593. minFov=0.028999999;
  594. maxFov=0.028999999;
  595. opticsDisplayName="N";
  596. gunnerOpticsModel="\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_narrow_F";
  597. };
  598. };
  599. class OpticsOut
  600. {
  601. class Monocular
  602. {
  603. visionMode[]=
  604. {
  605. "Normal",
  606. "NVG"
  607. };
  608. gunnerOpticsEffect[]={};
  609. initAngleX=-10;
  610. minAngleX=-30;
  611. maxAngleX=30;
  612. initAngleY=0;
  613. minAngleY=-100;
  614. maxAngleY=100;
  615. minFov=0.25;
  616. maxFov=1.25;
  617. initFov=0.75;
  618. gunnerOpticsModel="";
  619. };
  620. };
  621. class Components
  622. {
  623. class VehicleSystemsDisplayManagerComponentLeft: DefaultVehicleSystemsDisplayManagerLeft
  624. {
  625. class Components: components
  626. {
  627. class VehiclePrimaryGunnerDisplay
  628. {
  629. componentType="TransportFeedDisplayComponent";
  630. source="PrimaryGunner";
  631. };
  632. class VehicleMissileDisplay
  633. {
  634. componentType="TransportFeedDisplayComponent";
  635. source="Missile";
  636. };
  637. class SensorDisplay
  638. {
  639. range[]={4000,2000,16000,8000};
  640. componentType="SensorsDisplayComponent";
  641. resource="RscCustomInfoSensors";
  642. };
  643. };
  644. };
  645. class VehicleSystemsDisplayManagerComponentRight: DefaultVehicleSystemsDisplayManagerRight
  646. {
  647. class Components: components
  648. {
  649. class VehiclePrimaryGunnerDisplay
  650. {
  651. componentType="TransportFeedDisplayComponent";
  652. source="PrimaryGunner";
  653. };
  654. class VehicleMissileDisplay
  655. {
  656. componentType="TransportFeedDisplayComponent";
  657. source="Missile";
  658. };
  659. class SensorDisplay
  660. {
  661. range[]={4000,2000,16000,8000};
  662. componentType="SensorsDisplayComponent";
  663. resource="RscCustomInfoSensors";
  664. };
  665. };
  666. defaultDisplay="SensorDisplay";
  667. };
  668. };
  669. soundServo[]=
  670. {
  671. "",
  672. 0.0099999998,
  673. 1
  674. };
  675. gunnerOpticsEffect[]=
  676. {
  677. "TankCommanderOptics1",
  678. "BWTV"
  679. };
  680. primaryObserver=0;
  681. primaryGunner=1;
  682. primary=1;
  683. usePip=1;
  684. turretFollowFreeLook=0;
  685. gunnerCompartments="Compartment2";
  686. body="mainTurret";
  687. gun="mainGun";
  688. gunBeg="Usti hlavne";
  689. gunEnd="konec hlavne";
  690. animationSourceBody="mainTurret";
  691. animationSourceGun="mainGun";
  692. gunnerLeftHandAnimName="";
  693. gunnerRightHandAnimName="";
  694. maxHorizontalRotSpeed=5;
  695. maxVerticalRotSpeed=5;
  696. proxyindex=1;
  697. isCopilot=1;
  698. gunnerName="Co-Pilot";
  699. showHMD=1;
  700. castCargoShadow=0;
  701. viewCargoShadow=0;
  702. castDriverShadow=0;
  703. viewDriverShadow=0;
  704. CanEject=1;
  705. hideWeaponsGunner=1;
  706. memoryPointsGetInGunner="pos driver";
  707. memoryPointsGetInGunnerDir="pos driver dir";
  708. memoryPointGunnerOutOptics="gunnerviewout";
  709. discreteDistanceInitIndex=5;
  710. gunnerAction="Driver_mid01";
  711. gunnerInAction="Driver_mid01";
  712. gunnerGetInAction="GetInLow";
  713. gunnerGetOutAction="GetOutLow";
  714. gunnerUsesPilotView=0;
  715. commanding=-1;
  716. startEngine=0;
  717. stabilizedInAxes="StabilizedInAxesBoth";
  718. showAllTargets=4;
  719. minElev=-15;
  720. maxElev=15;
  721. initElev=0;
  722. minTurn=0;
  723. maxTurn=0;
  724. initTurn=0;
  725. memoryPointLRocket="RocketL";
  726. memoryPointRRocket="RocketR";
  727. memoryPointLMissile="RocketL";
  728. memoryPointRMissile="RocketR";
  729. selectionFireAnim="";
  730. SWOP_JumpMasterTurretIndex=1;
  731. outGunnerMayFire=1;
  732. memoryPointGunnerOptics="gunner1";
  733. castGunnerShadow=0;
  734. viewGunnerShadow=0;
  735. gunnerOpticsModel="";
  736. gunnerForceOptics=0;
  737. turretInfoType="RscOptics_Heli_Attack_01_gunner";
  738. gunnerNotSpawned=1;
  739. gunnerLeftLegAnimName="pedalL";
  740. gunnerRightLegAnimName="pedalR";
  741. turretCanSee="1 + 2 + 4 + 8 + 16";
  742. };
  743. class GunnerTurret1: MainTurret
  744. {
  745. soundServo[]=
  746. {
  747. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner",
  748. 0.36234099,
  749. 1,
  750. 20
  751. };
  752. soundServoVertical[]=
  753. {
  754. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner_vertical",
  755. 0.36234099,
  756. 1,
  757. 30
  758. };
  759. weapons[]=
  760. {
  761. "Cannon_LAAT_Turret1"
  762. };
  763. magazines[]=
  764. {
  765. "500Rnd_Cannon_LAAT_TURRET",
  766. "500Rnd_Cannon_LAAT_TURRET"
  767. };
  768. class ViewOptics
  769. {
  770. initAngleX=0;
  771. minAngleX=-30;
  772. maxAngleX=30;
  773. initAngleY=0;
  774. minAngleY=-100;
  775. maxAngleY=100;
  776. initFov=0.69999999;
  777. minFov=0.25;
  778. maxFov=1.1;
  779. };
  780. class OpticsIn
  781. {
  782. class Wide
  783. {
  784. visionMode[]=
  785. {
  786. "Normal",
  787. "NVG",
  788. "Ti"
  789. };
  790. thermalMode[]={0,1};
  791. opticsDisplayName="W";
  792. initAngleX=0;
  793. minAngleX=-45;
  794. maxAngleX=45;
  795. initAngleY=0;
  796. minAngleY=-100;
  797. maxAngleY=100;
  798. initFov=0.46599999;
  799. minFov=0.46599999;
  800. maxFov=0.46599999;
  801. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  802. };
  803. class Medium: Wide
  804. {
  805. opticsDisplayName="M";
  806. initFov=0.093000002;
  807. minFov=0.093000002;
  808. maxFov=0.093000002;
  809. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_m_F";
  810. };
  811. class Narrow: Wide
  812. {
  813. opticsDisplayName="N";
  814. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_n_F";
  815. initFov=0.028999999;
  816. minFov=0.028999999;
  817. maxFov=0.028999999;
  818. };
  819. };
  820. isCopilot=0;
  821. proxyIndex=2;
  822. commanding=-4;
  823. primaryObserver=0;
  824. primaryGunner=0;
  825. body="mainTurret2";
  826. gun="mainGun2";
  827. minElev=-60;
  828. maxElev=60;
  829. initElev=0;
  830. minTurn=0;
  831. maxTurn=110;
  832. initTurn=0;
  833. turretFollowFreeLook=0;
  834. isPersonTurret=0;
  835. memoryPointGunnerOptics="gunnerview2";
  836. memoryPointGun="machinegun2";
  837. animationSourceHatch="";
  838. stabilizedInAxes="StabilizedInAxesNone";
  839. selectionFireAnim="";
  840. animationSourceBody="MainTurret2";
  841. animationSourceGun="MainGun2";
  842. gunBeg="muzzle_2";
  843. gunEnd="chamber_2";
  844. gunnerName="Ball Turret (Left)";
  845. gunnerOpticsModel="\A3\weapons_f\reticle\Optics_Gunner_AAA_01_w_F";
  846. gunnerOutOpticsShowCursor=1;
  847. gunnerOpticsShowCursor=1;
  848. gunnerAction="Driver_mid01";
  849. gunnerInAction="Driver_mid01";
  850. gunnerlefthandanimname="";
  851. gunnerrighthandanimname="";
  852. gunnerLeftLegAnimName="";
  853. gunnerRightLegAnimName="";
  854. gunnerGetInAction="GetInLow";
  855. gunnerGetOutAction="GetOutLow";
  856. gunnerForceOptics=0;
  857. inGunnerMayFire=1;
  858. gunnerFireAlsoInInternalCamera=1;
  859. outGunnerMayFire=1;
  860. gunnerCompartments="Compartment4";
  861. memoryPointsGetInGunner="pos driver";
  862. memoryPointsGetInGunnerDir="pos driver dir";
  863. turretinfotype="RscOptics_APC_Tracked_01_gunner";
  864. };
  865. class GunnerTurret2: GunnerTurret1
  866. {
  867. soundServo[]=
  868. {
  869. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner",
  870. 0.36234099,
  871. 1,
  872. 20
  873. };
  874. soundServoVertical[]=
  875. {
  876. "A3\Sounds_F\vehicles\armor\noises\servo_armor_gunner_vertical",
  877. 0.36234099,
  878. 1,
  879. 30
  880. };
  881. weapons[]=
  882. {
  883. "Cannon_LAAT_Turret2"
  884. };
  885. magazines[]=
  886. {
  887. "500Rnd_Cannon_LAAT_TURRET",
  888. "500Rnd_Cannon_LAAT_TURRET"
  889. };
  890. isCopilot=0;
  891. body="mainTurret3";
  892. gun="mainGun3";
  893. minTurn=-110;
  894. maxTurn=0;
  895. initTurn=0;
  896. inGunnerMayFire=1;
  897. gunnerFireAlsoInInternalCamera=1;
  898. outGunnerMayFire=1;
  899. animationSourceBody="MainTurret3";
  900. animationSourceGun="MainGun3";
  901. gunBeg="muzzle_3";
  902. gunEnd="chamber_3";
  903. gunnerlefthandanimname="";
  904. gunnerrighthandanimname="";
  905. gunnerLeftLegAnimName="";
  906. gunnerRightLegAnimName="";
  907. stabilizedInAxes="StabilizedInAxesNone";
  908. selectionFireAnim="";
  909. proxyIndex=3;
  910. commanding=-5;
  911. primaryObserver=0;
  912. primaryGunner=0;
  913. turretFollowFreeLook=0;
  914. isPersonTurret=0;
  915. gunnerOutOpticsShowCursor=1;
  916. gunnerOpticsShowCursor=1;
  917. gunnerName="Ball Turret (Right)";
  918. memoryPointGun="machinegun3";
  919. memoryPointGunnerOptics="gunnerview3";
  920. gunnerCompartments="Compartment5";
  921. memoryPointsGetInGunner="pos driver";
  922. memoryPointsGetInGunnerDir="pos driver dir";
  923. };
  924. class CargoTurret_01: MainTurret
  925. {
  926. weapons[]=
  927. {
  928. };
  929. magazines[]=
  930. {
  931. };
  932. gunnerAction="passenger_inside_3";
  933. gunnerGetInAction="GetInLow";
  934. gunnerGetOutAction="GetOutLow";
  935. memoryPointsGetInGunner="pos cargo";
  936. memoryPointsGetInGunnerDir="pos cargo dir";
  937. gunnerName="Passenger (left-back)";
  938. gunnerCompartments="Compartment6";
  939. memoryPointGunnerOptics="";
  940. LODTurnedIn=1;
  941. LODTurnedOut=1;
  942. proxyIndex=42;
  943. maxElev=45;
  944. minElev=-35;
  945. maxTurn=61;
  946. minTurn=-65;
  947. castGunnerShadow=0;
  948. viewGunnerShadow=0;
  949. castCargoShadow=1;
  950. viewCargoShadow=1;
  951. castDriverShadow=0;
  952. viewDriverShadow=0;
  953. enabledByAnimationSource="";
  954. isCopilot=0;
  955. };
  956. class CargoTurret_02: CargoTurret_01
  957. {
  958. gunnerAction="passenger_inside_3";
  959. gunnerName="Passenger (left-front)";
  960. gunnerCompartments="Compartment6";
  961. memoryPointsGetInGunner="pos cargo";
  962. memoryPointsGetInGunnerDir="pos cargo dir";
  963. proxyIndex=43;
  964. castGunnerShadow=0;
  965. viewGunnerShadow=0;
  966. castCargoShadow=1;
  967. viewCargoShadow=1;
  968. castDriverShadow=0;
  969. viewDriverShadow=0;
  970. enabledByAnimationSource="";
  971. };
  972. class CargoTurret_03: CargoTurret_01
  973. {
  974. gunnerAction="passenger_inside_3";
  975. gunnerName="Passenger (left-middle)";
  976. gunnerCompartments="Compartment6";
  977. memoryPointsGetInGunner="pos cargo";
  978. memoryPointsGetInGunnerDir="pos cargo dir";
  979. proxyIndex=44;
  980. castGunnerShadow=0;
  981. viewGunnerShadow=0;
  982. castCargoShadow=1;
  983. viewCargoShadow=1;
  984. castDriverShadow=0;
  985. viewDriverShadow=0;
  986. enabledByAnimationSource="";
  987. };
  988. class CargoTurret_04: CargoTurret_01
  989. {
  990. gunnerAction="passenger_inside_3";
  991. gunnerName="Passenger (right-back)";
  992. gunnerCompartments="Compartment6";
  993. memoryPointsGetInGunner="pos cargo";
  994. memoryPointsGetInGunnerDir="pos cargo dir";
  995. proxyIndex=45;
  996. castGunnerShadow=0;
  997. viewGunnerShadow=0;
  998. castCargoShadow=1;
  999. viewCargoShadow=1;
  1000. castDriverShadow=0;
  1001. viewDriverShadow=0;
  1002. enabledByAnimationSource="";
  1003. };
  1004. class CargoTurret_05: CargoTurret_01
  1005. {
  1006. gunnerAction="passenger_inside_3";
  1007. gunnerName="Passenger (right-front)";
  1008. gunnerCompartments="Compartment6";
  1009. memoryPointsGetInGunner="pos cargo";
  1010. memoryPointsGetInGunnerDir="pos cargo dir";
  1011. proxyIndex=46;
  1012. castGunnerShadow=0;
  1013. viewGunnerShadow=0;
  1014. castCargoShadow=1;
  1015. viewCargoShadow=1;
  1016. castDriverShadow=0;
  1017. viewDriverShadow=0;
  1018. enabledByAnimationSource="";
  1019. };
  1020. class CargoTurret_06: CargoTurret_01
  1021. {
  1022. gunnerAction="passenger_inside_3";
  1023. gunnerName="Passenger (right-middle)";
  1024. gunnerCompartments="Compartment6";
  1025. memoryPointsGetInGunner="pos cargo";
  1026. memoryPointsGetInGunnerDir="pos cargo dir";
  1027. proxyIndex=47;
  1028. castGunnerShadow=0;
  1029. viewGunnerShadow=0;
  1030. castCargoShadow=1;
  1031. viewCargoShadow=1;
  1032. castDriverShadow=0;
  1033. viewDriverShadow=0;
  1034. enabledByAnimationSource="";
  1035. };
  1036. };
  1037. thrustCoef[]=
  1038. {
  1039. "1.16*2.4",
  1040. "1.15*1.75",
  1041. "1.14*1.5",
  1042. "1.14*1.1",
  1043. "1.13*1",
  1044. "1.12*1",
  1045. "1.1*1",
  1046. "1.07*1",
  1047. "0.99*1",
  1048. "0.2*1",
  1049. 0,
  1050. 0,
  1051. 0
  1052. };
  1053. thrustDelay=0;
  1054. };
  1055. //#include "_vtol_laat.hpp"
  1056. class swop_yw: swop_ywing_base
  1057. {
  1058. class Turrets:Turrets
  1059. {
  1060. class MainTurret;
  1061. };
  1062. class ACE_SelfActions;
  1063. }
  1064. class macro_new_vehicle(Y_wing,Rebels_MkII) : swop_yw
  1065. {
  1066. faction = macro_rebel_faction
  1067. editorSubcategory = macro_editor_cat_air(Rebel_vtol)
  1068. vehicleClass = macro_editor_vehicle_type_air(Rebel)
  1069. scope = 2;
  1070. altFullForce = 6000;
  1071. airBrakeFrictionCoef = 80.4;
  1072. altNoForce = 9000;
  1073. forceInGarage=1;
  1074. displayname = "Y-Wing Rebels Mk.II";
  1075. visualTarget = 1;
  1076. visualTargetSize = 1;
  1077. reportOwnPosition = true;
  1078. radarTargetSize = 1;
  1079. radarTarget = 1;
  1080. nvTarget = 1;
  1081. laserTarget = 1;
  1082. laserScanner = 0;
  1083. irTarget = 1;
  1084. irTargetSize = 1;
  1085. countermeasureActivationRadius = 2000;
  1086. armor=800;
  1087. #include "common.hpp"
  1088. class EventHandlers
  1089. {
  1090. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  1091. init = "[_this select 0] execVM '\ywing\initturbine.sqf';";
  1092. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  1093. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  1094. };
  1095. weapons[] = {
  1096. macro_basic_air_weapons,
  1097. macro_new_weapon(voltic,y_wing),
  1098. macro_new_weapon(wynd,a2a),
  1099. macro_new_weapon(wynd,agm),
  1100. macro_new_weapon(wynd,ugm),
  1101. macro_new_weapon(bomb,cluster),
  1102. macro_new_weapon(bomb,SDB),
  1103. macro_new_weapon(bomb,LGB),
  1104. };
  1105. magazines[] = {
  1106. macro_basic_air_mags,
  1107. macro_new_mag(voltic,200),
  1108. macro_new_mag(voltic,200),
  1109. macro_new_mag(voltic,200),
  1110. macro_new_mag(voltic,200),
  1111. macro_new_mag(voltic,200),
  1112. macro_new_mag(a2a,4),
  1113. macro_new_mag(a2a,4),
  1114. macro_new_mag(agm,6),
  1115. macro_new_mag(ugm,10),
  1116. macro_new_mag(cluster_bomb,4),
  1117. macro_new_mag(cluster_bomb,4),
  1118. macro_new_mag(cluster_bomb,4),
  1119. macro_new_mag(sdb_bomb,4),
  1120. macro_new_mag(sdb_bomb,4),
  1121. macro_new_mag(sdb_bomb,4),
  1122. macro_new_mag(lgb_bomb,4),
  1123. macro_new_mag(lgb_bomb,4),
  1124. macro_new_mag(lgb_bomb,4)
  1125. };
  1126. };
  1127. };