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