config.cpp 26 KB

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