config.cpp 25 KB

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