Robinson-R66.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <PropertyList>
  3. <path>R66spare.ac</path>
  4. <nasal>
  5. <load>
  6. var livery_update = aircraft.livery_update.new("Aircraft/Robinson-R66/Models/Liveries", 30);
  7. var self = cmdarg();
  8. var aliases = [];
  9. for (var i = 0; i &lt; 6; i += 1) {
  10. var door = self.getNode("sim/model/bo105/doors/door[" ~ i ~ "]/position-norm", 1);
  11. var generic = self.getNode("sim/multiplay/generic/float[" ~ i ~ "]", 1);
  12. door.alias(generic);
  13. append(aliases, door);
  14. }
  15. <![CDATA[
  16. var root = cmdarg();
  17. var rootindex = root.getIndex();
  18. var mpPath = "/ai/models/multiplayer["~ rootindex ~"]/";
  19. var lightsPath = mpPath~"lightpack/"; #path to the property node, where all internal values are placed
  20. props.globals.initNode(mpPath~"sim/is-MP-Aircraft", 1, "BOOL");
  21. srand();
  22. #wherever you want to add randomization of time, use something like: + rand()*0.05-0.025 (included by default where appropriate)
  23. #list of switches for lights - if you don't intend to use some light, assign it nil value instead, like whateverSwitch = nil; and you don't need to care about anything else
  24. #IMPORTANT: don't put / on the start of the string, it's already included in the mpPath property
  25. var navSwitch = mpPath~"controls/lighting/nav-lights-switch";
  26. var beaconSwitch = mpPath~"controls/lighting/beacon-switch";
  27. var strobeSwitch = mpPath~"controls/lighting/strobe-switch";
  28. var landingSwitch = mpPath~"controls/lighting/landing-lights-switch";
  29. var taxiSwitch = mpPath~"controls/lighting/taxi-light-switch";
  30. var probeSwitch = mpPath~"controls/lighting/probe-light-switch";
  31. var whiteSwitch = mpPath~"controls/lighting/white-light-switch";
  32. var searchSwitch = mpPath~"controls/lighting/search-light-switch";
  33. #switch this from 1 to 0 if you want to use advanced cyclical fading animation of the the nav lights instead of being stable on when the switch is on
  34. navStillOn = 1;
  35. #I need to set listener on some MP transferred properties; this doesn't seem to work well sometimes, so I mirror them to the original location on any change
  36. #This also simplifies work as I can use almost the same code for MP as is the local Nasal. Furthermore, I can use meaningful property names in the model XML files instead of referencing the MP properties.
  37. var mpVar = {
  38. new: func(propIn, propOut) {
  39. var m = { parents: [mpVar] };
  40. m.propIn = propIn;
  41. m.propOut = propOut;
  42. if(propIn==nil or propOut==nil) return m;
  43. m.value = getprop(propIn);
  44. setprop(propOut, m.value);
  45. return m;
  46. },
  47. check: func {
  48. if(me.propIn==nil or me.propOut==nil) return;
  49. var newValue = getprop(me.propIn);
  50. if(newValue != me.value) {
  51. setprop(me.propOut, newValue);
  52. me.value = newValue;
  53. #print("value of "~me.propOut~" changed: "~newValue);
  54. }
  55. },
  56. };
  57. #init any property copy object needed in this array (anything you need to transfer over MP, but you are using the original paths in your xmls)
  58. #also used for properties you are using a listener on, or properties which you maybe want to manipulate during the <unload>
  59. #if you're just using the pack, change the values according to the MP bindings in the -set.xml file
  60. #you don't need to delete the entries if the path is nil - it gets skipped automatically and the MP path is just ignored
  61. var mirrorValues = [
  62. mpVar.new(mpPath~"sim/multiplay/generic/int[7]", mpPath~"sim/crashed"),
  63. mpVar.new(mpPath~"sim/multiplay/generic/int[0]", navSwitch),
  64. mpVar.new(mpPath~"sim/multiplay/generic/int[1]", beaconSwitch),
  65. mpVar.new(mpPath~"sim/multiplay/generic/int[1]", strobeSwitch),
  66. mpVar.new(mpPath~"sim/multiplay/generic/int[2]", landingSwitch),
  67. mpVar.new(mpPath~"sim/multiplay/generic/int[3]", taxiSwitch),
  68. mpVar.new(mpPath~"sim/multiplay/generic/int[3]", probeSwitch),
  69. mpVar.new(mpPath~"sim/multiplay/generic/int[0]", whiteSwitch),
  70. mpVar.new(mpPath~"sim/multiplay/generic/int[8]", searchSwitch),
  71. ];
  72. #loop at the default MP transfer frequency (10Hz)
  73. var mirrorTimer = maketimer(0.1, func {
  74. foreach(var mir; mirrorValues) {
  75. mir.check();
  76. }
  77. });
  78. mirrorTimer.start();
  79. #### NAV LIGHTS ####
  80. #class for a periodic fade in/out animation - for flashing, use rather standard aircraft.light.new(), as in Beacon and Strobe section
  81. var lightCycle = {
  82. #constructor
  83. new: func(propSwitch, propOut) {
  84. m = { parents: [lightCycle] };
  85. props.globals.initNode(propOut, 0, "DOUBLE");
  86. props.globals.initNode(propSwitch, 1, "BOOL");
  87. m.fadeIn = 0.4 + rand()*0.05-0.025; #fade in time
  88. m.fadeOut = 0.4 + rand()*0.05-0.025; #fade out time
  89. m.stayOn = 1.5 + rand()*0.05-0.025; #stable on period
  90. m.stayOff = 1 + rand()*0.05-0.025; #stable off period
  91. m.turnOff = 0.12; #fade out time when turned off
  92. m.phase = 0; #phase to be run on next timer call: 0 -> fade in, 1 -> stay on, 2 -> fade out, 3 -> stay off
  93. m.cycleTimer = maketimer(0.1, func {
  94. if(getprop(propSwitch)) {
  95. if(m.phase == 0) {
  96. interpolate(propOut, 1, m.fadeIn);
  97. m.phase = 1;
  98. m.cycleTimer.restart(m.fadeIn);
  99. }
  100. else if(m.phase == 1){
  101. m.phase = 2;
  102. m.cycleTimer.restart(m.stayOn);
  103. }
  104. else if(m.phase == 2){
  105. interpolate(propOut, 0, m.fadeOut);
  106. m.phase = 3;
  107. m.cycleTimer.restart(m.fadeOut);
  108. }
  109. else if(m.phase == 3){
  110. m.phase = 0;
  111. m.cycleTimer.restart(m.stayOff);
  112. }
  113. }
  114. else {
  115. interpolate(propOut, 0, m.turnOff); #kills any currently ongoing interpolation
  116. m.phase = 0;
  117. }
  118. });
  119. m.cycleTimer.singleShot = 1;
  120. if(propSwitch==nil) {
  121. m.listen = nil;
  122. return m;
  123. }
  124. m.listen = setlistener(propSwitch, func{m.cycleTimer.restart(0);}); #handle switch changes
  125. m.cycleTimer.restart(0); #start the looping
  126. return m;
  127. },
  128. #destructor
  129. del: func {
  130. if(me.listen!=nil) removelistener(me.listen);
  131. me.cycleTimer.stop();
  132. },
  133. };
  134. #By default, the switch property is initialized to 1 (only if no value is already assigned). Don't change the class implementation! To override this, set the property manually. You don't need to care if any other code already does it for you.
  135. var navLights = nil;
  136. if(!navStillOn) {
  137. navLights = lightCycle.new(navSwitch, lightsPath~"nav-lights-intensity");
  138. ### Uncomment and tune those to customize times ###
  139. #navLights.fadeIn = 0.4; #fade in time
  140. #navLights.fadeOut = 0.4; #fade out time
  141. #navLights.stayOn = 3 + rand()*0.05-0.025; #stable on period
  142. #navLights.stayOff = 0.6; #stable off period
  143. #navLights.turnOff = 0.12; #fade out time when turned off
  144. }
  145. ### BEACON ###
  146. var beacon = nil;
  147. if(beaconSwitch!=nil) {
  148. props.globals.initNode(beaconSwitch, 1, "BOOL");
  149. beacon = aircraft.light.new(lightsPath~"beacon-state",
  150. [0.0, 1.0 + rand()*0.05-0.025], beaconSwitch);
  151. }
  152. ### STROBE ###
  153. var strobe = nil;
  154. if(strobeSwitch!=nil) {
  155. props.globals.initNode(strobeSwitch, 1, "BOOL");
  156. strobe = aircraft.light.new(lightsPath~"strobe-state",
  157. [0.0, 0.87 + rand()*0.05-0.025], strobeSwitch);
  158. }
  159. ### LIGHT FADING ###
  160. #class for controlling fade in/out behavior - propIn is a control property (handled as a boolean) and propOut is interpolated
  161. #all light brightness animations in xmls depend on propOut (Rembrandt brightness, material emission, flares transparency, ...)
  162. var lightFadeInOut = {
  163. #constructor
  164. new: func(propSwitch, propOut) {
  165. m = { parents: [lightFadeInOut] };
  166. m.fadeIn = 0.3; #some sane defaults
  167. m.fadeOut = 0.4;
  168. if(propSwitch==nil) {
  169. m.listen = nil;
  170. return m;
  171. }
  172. props.globals.initNode(propSwitch, 1, "BOOL");
  173. m.isOn = getprop(propSwitch);
  174. props.globals.initNode(propOut, m.isOn, "DOUBLE");
  175. m.listen = setlistener(propSwitch,
  176. func {
  177. if(m.isOn and !getprop(propSwitch)) {
  178. interpolate(propOut, 0, m.fadeOut);
  179. m.isOn = 0;
  180. }
  181. if(!m.isOn and getprop(propSwitch)) {
  182. interpolate(propOut, 1, m.fadeIn);
  183. m.isOn = 1;
  184. }
  185. }
  186. );
  187. return m;
  188. },
  189. #destructor
  190. del: func {
  191. if(me.listen!=nil) removelistener(me.listen);
  192. },
  193. };
  194. fadeLanding = lightFadeInOut.new(landingSwitch, lightsPath~"landing-lights-intensity");
  195. fadeLanding = lightFadeInOut.new(searchSwitch, lightsPath~"search-lights-intensity");
  196. fadeTaxi = lightFadeInOut.new(taxiSwitch, lightsPath~"taxi-light-intensity");
  197. fadeProbe = lightFadeInOut.new(probeSwitch, lightsPath~"probe-light-intensity");
  198. fadeWhite = lightFadeInOut.new(whiteSwitch, lightsPath~"white-light-intensity");
  199. if(navStillOn) {
  200. navLights = lightFadeInOut.new(navSwitch, lightsPath~"nav-lights-intensity");
  201. navLights.fadeIn = 0.1;
  202. navLights.fadeOut = 0.12;
  203. }
  204. #manipulate times if defaults don't fit your needs:
  205. #fadeLanding.fadeIn = 0.5;
  206. #fadeLanding.fadeOut = 0.8;
  207. ### the rest of your model load embedded Nasal code ###
  208. ]]>
  209. </load>
  210. <unload>
  211. #prevent multiple timers and listeners from running and fighting on next connect
  212. #cleanly destroy MP property mirroring
  213. mirrorTimer.stop();
  214. mirrorTimer = nil;
  215. mirrorValues = nil;
  216. #cleanly destroy nav lights
  217. if(navStillOn) {
  218. navLights.del();
  219. }
  220. else {
  221. if(navSwitch!=nil) setprop(navSwitch, 0);
  222. navLights.del();
  223. if(navSwitch!=nil) navLights.cycleTimer = nil;
  224. navLights = nil;
  225. }
  226. #cleanly destroy beacon
  227. if(beaconSwitch!=nil) setprop(beaconSwitch, 0);
  228. beacon.del();
  229. beacon = nil;
  230. #cleanly destroy strobe
  231. if(strobeSwitch!=nil) setprop(strobeSwitch, 0);
  232. strobe.del();
  233. strobe = nil;
  234. #cleanly destroy light fade in/out animation objects
  235. fadeLanding.del();
  236. fadeTaxi.del();
  237. fadeProbe.del();
  238. fadeWhite.del();
  239. ### the rest of your model unload embedded Nasal code ###
  240. livery_update.stop();
  241. </unload>
  242. </nasal>
  243. <sound>
  244. <path>Aircraft/Robinson-R66/Sounds/raven-mp-sound.xml</path>
  245. </sound>
  246. <animation>
  247. <type>material</type>
  248. <object-name>fuselage1</object-name>
  249. <object-name>porteBG1</object-name>
  250. <object-name>porteAG1</object-name>
  251. <object-name>porteAD1</object-name>
  252. <object-name>porteBD1</object-name>
  253. <object-name>door</object-name>
  254. <object-name>patins2212</object-name>
  255. <object-name>fuselage.009</object-name>
  256. <object-name>fuselage.010</object-name>
  257. <object-name>fuselage1.004</object-name>
  258. <property-base>sim/model/livery</property-base>
  259. <texture-prop>texture</texture-prop>
  260. <texture>R66.png</texture>
  261. </animation>
  262. <effect>
  263. <inherits-from>Aircraft/Robinson-R66/Models/Effects/reflect-uber</inherits-from>
  264. <object-name>fuselage1</object-name>
  265. <object-name>porteBG1</object-name>
  266. <object-name>porteAG1</object-name>
  267. <object-name>porteAD1</object-name>
  268. <object-name>porteBD1</object-name>
  269. <object-name>door</object-name>
  270. <object-name>patins2212</object-name>
  271. </effect>
  272. <effect>
  273. <inherits-from>Aircraft/Robinson-R66/Models/Effects/bk117reflectglas-uber</inherits-from>
  274. <object-name>vitres</object-name>
  275. <object-name>vitreAD</object-name>
  276. <object-name>vitreBD</object-name>
  277. <object-name>vitreAG</object-name>
  278. <object-name>vitreBG</object-name>
  279. </effect>
  280. <animation>
  281. <type>noshadow</type>
  282. <object-name>vitres</object-name>
  283. <object-name>verrelampe</object-name>
  284. <object-name>vitreAG</object-name>
  285. <object-name>vitreAD</object-name>
  286. <object-name>vitreBG</object-name>
  287. <object-name>vitreBD</object-name>
  288. <object-name>redlight</object-name>
  289. <object-name>greenlight</object-name>
  290. </animation>
  291. <!-- Immatriculatoin
  292. <model>
  293. <path>Aircraft/Robinson-R66/Models/Immat/immat.xml</path>
  294. </model>
  295. <animation>
  296. <type>material</type>
  297. <object-name>ImatFuselageL1</object-name>
  298. <object-name>ImatFuselageL2</object-name>
  299. <object-name>ImatFuselageL3</object-name>
  300. <object-name>ImatFuselageL4</object-name>
  301. <object-name>ImatFuselageL5</object-name>
  302. <object-name>ImatFuselageL6</object-name>
  303. <object-name>ImatFuselageR1</object-name>
  304. <object-name>ImatFuselageR2</object-name>
  305. <object-name>ImatFuselageR3</object-name>
  306. <object-name>ImatFuselageR4</object-name>
  307. <object-name>ImatFuselageR5</object-name>
  308. <object-name>ImatFuselageR6</object-name>
  309. <object-name>ImatPanel1</object-name>
  310. <object-name>ImatPanel2</object-name>
  311. <object-name>ImatPanel3</object-name>
  312. <object-name>ImatPanel4</object-name>
  313. <object-name>ImatPanel5</object-name>
  314. <object-name>ImatPanel6</object-name>
  315. <property-base>sim/model/livery-font</property-base>
  316. <texture-prop>texture</texture-prop>
  317. <texture>immat.png</texture>
  318. </animation>
  319. -->
  320. <!-- Intérieur -->
  321. <model>
  322. <name>Interieur</name>
  323. <path>Aircraft/Robinson-R66/Models/Interior/interior.xml</path>
  324. <offsets>
  325. </offsets>
  326. </model>
  327. <!-- For Rembrandt -->
  328. <animation>
  329. <type>noshadow</type>
  330. <object-name>Interieur</object-name>
  331. </animation>
  332. <!-- Rotor principale -->
  333. <model>
  334. <path>Aircraft/Robinson-R66/Models/MainRotor/mainrotor.xml</path>
  335. <offsets>
  336. <x-m> -0.17 </x-m>
  337. <y-m> 0.017 </y-m>
  338. <z-m> 1.67 </z-m>
  339. </offsets>
  340. </model>
  341. <!-- Rotor de queue -->
  342. <model>
  343. <path>Aircraft/Robinson-R66/Models/TailRotor/tailrotor.xml</path>
  344. <offsets>
  345. <x-m> 5.75 </x-m>
  346. <y-m> -0.247 </y-m>
  347. <z-m> 0.6 </z-m>
  348. <roll-deg> 90 </roll-deg>
  349. </offsets>
  350. </model>
  351. <!-- TV Camera
  352. <model>
  353. <name>TVCam</name>
  354. <path>Aircraft/Robinson-R66/Models/TVcam.xml</path>
  355. </model>
  356. -->
  357. <model>
  358. <name>LandingLight1</name>
  359. <path>Aircraft/Robinson-R66/Models/light/BBeacon.xml</path>
  360. <offsets>
  361. <x-m> -4.55 </x-m>
  362. <y-m> -0.065 </y-m>
  363. <z-m> -0.850 </z-m>
  364. <pitch-deg>0</pitch-deg>
  365. </offsets>
  366. </model>
  367. <model>
  368. <name>LandingLight2</name>
  369. <path>Aircraft/Robinson-R66/Models/light/BBeacon.xml</path>
  370. <offsets>
  371. <x-m> -4.55 </x-m>
  372. <y-m> 0.065 </y-m>
  373. <z-m> -0.850 </z-m>
  374. <pitch-deg>0</pitch-deg>
  375. </offsets>
  376. </model>
  377. <!-- Ouverture/fermeture des portes -->
  378. <animation>
  379. <name>PorteAvantGauche</name>
  380. <object-name>porteAG</object-name>
  381. <object-name>windowFR</object-name>
  382. </animation>
  383. <animation>
  384. <name>PorteAvantDroite</name>
  385. <object-name>porteAD</object-name>
  386. <object-name>windowFL</object-name>
  387. </animation>
  388. <animation>
  389. <name>PorteArriereGauche</name>
  390. <object-name>porteBG</object-name>
  391. <object-name>windowRR</object-name>
  392. </animation>
  393. <animation>
  394. <name>PorteArriereDroite</name>
  395. <object-name>porteBD</object-name>
  396. <object-name>windowRL</object-name>
  397. </animation>
  398. <!-- Porte avant gauche -->
  399. <animation>
  400. <type>pick</type>
  401. <object-name>PorteAvantGauche</object-name>
  402. <action>
  403. <button>0</button>
  404. <repeatable>false</repeatable>
  405. <binding>
  406. <command>nasal</command>
  407. <script>doors.doorsystem.Lcrewexport();</script>
  408. </binding>
  409. </action>
  410. </animation>
  411. <animation>
  412. <type>rotate</type>
  413. <object-name>PorteAvantGauche</object-name>
  414. <property>instrumentation/doors/Lcrew/position-norm</property>
  415. <factor> -80 </factor>
  416. <axis>
  417. <x1-m> -3.795 </x1-m>
  418. <y1-m> -0.607 </y1-m>
  419. <z1-m> -0.603 </z1-m>
  420. <x2-m> -3.631 </x2-m>
  421. <y2-m> -0.625 </y2-m>
  422. <z2-m> -0.266 </z2-m>
  423. </axis>
  424. </animation>
  425. <!-- Porte avant droite -->
  426. <animation>
  427. <type>pick</type>
  428. <object-name>PorteAvantDroite</object-name>
  429. <action>
  430. <button>0</button>
  431. <repeatable>false</repeatable>
  432. <binding>
  433. <command>nasal</command>
  434. <script>doors.doorsystem.Rcrewexport();</script>
  435. </binding>
  436. </action>
  437. </animation>
  438. <animation>
  439. <type>rotate</type>
  440. <object-name>PorteAvantDroite</object-name>
  441. <property>instrumentation/doors/Rcrew/position-norm</property>
  442. <factor> 80 </factor>
  443. <axis>
  444. <x1-m> -3.795 </x1-m>
  445. <y1-m> 0.607 </y1-m>
  446. <z1-m> -0.603 </z1-m>
  447. <x2-m> -3.631 </x2-m>
  448. <y2-m> 0.625 </y2-m>
  449. <z2-m> -0.266 </z2-m>
  450. </axis>
  451. </animation>
  452. <!-- Porte arriere gauche -->
  453. <animation>
  454. <type>pick</type>
  455. <object-name>PorteArriereGauche</object-name>
  456. <action>
  457. <button>0</button>
  458. <repeatable>false</repeatable>
  459. <binding>
  460. <command>nasal</command>
  461. <script>doors.doorsystem.Lpassengerexport();</script>
  462. </binding>
  463. </action>
  464. </animation>
  465. <animation>
  466. <type>rotate</type>
  467. <object-name>PorteArriereGauche</object-name>
  468. <property>instrumentation/doors/Lpassenger/position-norm</property>
  469. <factor> -80 </factor>
  470. <axis>
  471. <x1-m> -3.181 </x1-m>
  472. <y1-m> -0.646 </y1-m>
  473. <z1-m> -0.726 </z1-m>
  474. <x2-m> -3.046 </x2-m>
  475. <y2-m> -0.666 </y2-m>
  476. <z2-m> -0.346 </z2-m>
  477. </axis>
  478. </animation>
  479. <!-- Porte arriere droite -->
  480. <animation>
  481. <type>pick</type>
  482. <object-name>PorteArriereDroite</object-name>
  483. <action>
  484. <button>0</button>
  485. <repeatable>false</repeatable>
  486. <binding>
  487. <command>nasal</command>
  488. <script>doors.doorsystem.Rpassengerexport();</script>
  489. </binding>
  490. </action>
  491. </animation>
  492. <animation>
  493. <type>rotate</type>
  494. <object-name>PorteArriereDroite</object-name>
  495. <property>instrumentation/doors/Rpassenger/position-norm</property>
  496. <factor> 80 </factor>
  497. <axis>
  498. <x1-m> -3.181 </x1-m>
  499. <y1-m> 0.646 </y1-m>
  500. <z1-m> -0.726 </z1-m>
  501. <x2-m> -3.046 </x2-m>
  502. <y2-m> 0.666 </y2-m>
  503. <z2-m> -0.346 </z2-m>
  504. </axis>
  505. </animation>
  506. <!-- Ajout des effets lumineux
  507. <model>
  508. <path>Aircraft/Robinson-R66/Models/light/beacon.xml</path>
  509. <offsets>
  510. <x-m> 2.161 </x-m>
  511. <y-m> 0.000 </y-m>
  512. <z-m> 0.416 </z-m>
  513. </offsets>
  514. </model>
  515. <model>
  516. <path>Aircraft/Robinson-R66/Models/light/RedLight.xml</path>
  517. <offsets>
  518. <x-m> -3.361 </x-m>
  519. <y-m> -0.588 </y-m>
  520. <z-m> -0.983 </z-m>
  521. </offsets>
  522. </model>
  523. <model>
  524. <path>Aircraft/Robinson-R66/Models/light/GreenLight.xml</path>
  525. <offsets>
  526. <x-m> -3.361 </x-m>
  527. <y-m> 0.588 </y-m>
  528. <z-m> -0.983 </z-m>
  529. </offsets>
  530. </model>
  531. -->
  532. <!--
  533. <model>
  534. <path>Aircraft/Robinson-R66/Models/HelicopterPushback/HelicopterPushback.xml</path>
  535. </model>
  536. -->
  537. <animation>
  538. <type>pick</type>
  539. <object-name>RemoveRRDoor</object-name>
  540. <action>
  541. <button>0</button>
  542. <repeatable>false</repeatable>
  543. <binding>
  544. <command>property-toggle</command>
  545. <property>sim/model/Robinson-R66/remove-door-rr</property>
  546. </binding>
  547. </action>
  548. </animation>
  549. <animation>
  550. <type>pick</type>
  551. <object-name>RemoveRFDoor</object-name>
  552. <action>
  553. <button>0</button>
  554. <repeatable>false</repeatable>
  555. <binding>
  556. <command>property-toggle</command>
  557. <property>sim/model/Robinson-R66/remove-door-rf</property>
  558. </binding>
  559. </action>
  560. </animation>
  561. <animation>
  562. <type>pick</type>
  563. <object-name>RemoveLRDoor</object-name>
  564. <action>
  565. <button>0</button>
  566. <repeatable>false</repeatable>
  567. <binding>
  568. <command>property-toggle</command>
  569. <property>sim/model/Robinson-R66/remove-door-lr</property>
  570. </binding>
  571. </action>
  572. </animation>
  573. <animation>
  574. <type>pick</type>
  575. <object-name>RemoveLFDoor</object-name>
  576. <action>
  577. <button>0</button>
  578. <repeatable>false</repeatable>
  579. <binding>
  580. <command>property-toggle</command>
  581. <property>sim/model/Robinson-R66/remove-door-lf</property>
  582. </binding>
  583. </action>
  584. </animation>
  585. <animation>
  586. <type>select</type>
  587. <object-name>porteBD</object-name>
  588. <object-name>windowRL</object-name>
  589. <object-name>intporteBD</object-name>
  590. <object-name>intvitreBD</object-name>
  591. <condition>
  592. <not>
  593. <property>sim/model/Robinson-R66/remove-door-rr</property>
  594. </not>
  595. </condition>
  596. </animation>
  597. <animation>
  598. <type>select</type>
  599. <object-name>porteAD</object-name>
  600. <object-name>windowFL</object-name>
  601. <object-name>intporteAD</object-name>
  602. <object-name>intvitreAD</object-name>
  603. <condition>
  604. <not>
  605. <property>sim/model/Robinson-R66/remove-door-rf</property>
  606. </not>
  607. </condition>
  608. </animation>
  609. <animation>
  610. <type>select</type>
  611. <object-name>porteBG</object-name>
  612. <object-name>windowRR</object-name>
  613. <object-name>intporteBG</object-name>
  614. <object-name>intvitreBG</object-name>
  615. <condition>
  616. <not>
  617. <property>sim/model/Robinson-R66/remove-door-lr</property>
  618. </not>
  619. </condition>
  620. </animation>
  621. <animation>
  622. <type>select</type>
  623. <object-name>porteAG</object-name>
  624. <object-name>windowFR</object-name>
  625. <object-name>intporteAG</object-name>
  626. <object-name>intvitreAG</object-name>
  627. <condition>
  628. <not>
  629. <property>sim/model/Robinson-R66/remove-door-lf</property>
  630. </not>
  631. </condition>
  632. </animation>
  633. <!-- Une ombre pour OSG
  634. <model>
  635. <name>shadowOSG</name>
  636. <path>Aircraft/Robinson-R66/Models/shadowR.xml</path>
  637. </model>
  638. -->
  639. </PropertyList>