Robinson-R66.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <PropertyList>
  3. <path>R66.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>fuse</object-name>
  249. <object-name>patins2212</object-name>
  250. <object-name>door</object-name>
  251. <object-name>porteBD1</object-name>
  252. <object-name>porteBD1.001</object-name>
  253. <object-name>porteAD1</object-name>
  254. <object-name>porteAD1.001</object-name>
  255. <object-name>porteAG1.001</object-name>
  256. <object-name>porteAG1</object-name>
  257. <object-name>porteBG1.001</object-name>
  258. <object-name>porteBG1</object-name>
  259. <property-base>sim/model/livery</property-base>
  260. <texture-prop>texture</texture-prop>
  261. <texture>texture.png</texture>
  262. </animation>
  263. <effect>
  264. <inherits-from>Aircraft/Robinson-R66/Models/Effects/reflect-uber</inherits-from>
  265. <object-name>fuse</object-name>
  266. <object-name>patins2212</object-name>
  267. <object-name>door</object-name>
  268. <object-name>porteBD1</object-name>
  269. <object-name>porteBD1.001</object-name>
  270. <object-name>porteAD1</object-name>
  271. <object-name>porteAD1.001</object-name>
  272. <object-name>porteAG1.001</object-name>
  273. <object-name>porteAG1</object-name>
  274. <object-name>porteBG1.001</object-name>
  275. <object-name>porteBG1</object-name>
  276. </effect>
  277. <effect>
  278. <inherits-from>Aircraft/Robinson-R66/Models/Effects/bk117reflectglas-uber</inherits-from>
  279. <object-name>vitres</object-name>
  280. <object-name>vitreAD</object-name>
  281. <object-name>vitreBD</object-name>
  282. <object-name>vitreAG</object-name>
  283. <object-name>vitreBG</object-name>
  284. </effect>
  285. <animation>
  286. <type>select</type>
  287. <object-name>vitres</object-name>
  288. <object-name>vitreAD</object-name>
  289. <object-name>vitreBD</object-name>
  290. <object-name>vitreAG</object-name>
  291. <object-name>vitreBG</object-name>
  292. <condition>
  293. <equals>
  294. <property>sim/current-view/internal</property>
  295. <value>false</value>
  296. </equals>
  297. </condition>
  298. </animation>
  299. <animation>
  300. <type>noshadow</type>
  301. <object-name>vitres</object-name>
  302. <object-name>verrelampe</object-name>
  303. <object-name>vitreAG</object-name>
  304. <object-name>vitreAD</object-name>
  305. <object-name>vitreBG</object-name>
  306. <object-name>vitreBD</object-name>
  307. <object-name>vitresin</object-name>
  308. <object-name>vitreAGin</object-name>
  309. <object-name>vitreADin</object-name>
  310. <object-name>vitreBG</object-name>
  311. <object-name>vitreBDin</object-name>
  312. </animation>
  313. <effect>
  314. <inherits-from>Effects/glass</inherits-from>
  315. <object-name>vitresin</object-name>
  316. <object-name>vitreAGin</object-name>
  317. <object-name>vitreADin</object-name>
  318. <object-name>vitreBGin</object-name>
  319. <object-name>vitreBDin</object-name>
  320. </effect>
  321. <animation>
  322. <type>select</type>
  323. <object-name>vitresin</object-name>
  324. <object-name>vitreAGin</object-name>
  325. <object-name>vitreADin</object-name>
  326. <object-name>vitreBGin</object-name>
  327. <object-name>vitreBDin</object-name>
  328. <condition>
  329. <equals>
  330. <property>sim/current-view/internal</property>
  331. <value>true</value>
  332. </equals>
  333. </condition>
  334. </animation>
  335. <!-- Intérieur -->
  336. <model>
  337. <name>Interieur</name>
  338. <path>Aircraft/Robinson-R66/Models/Interior/interior.xml</path>
  339. <offsets>
  340. </offsets>
  341. </model>
  342. <!-- For Rembrandt -->
  343. <animation>
  344. <type>noshadow</type>
  345. <object-name>Interieur</object-name>
  346. </animation>
  347. <!-- Rotor principale -->
  348. <model>
  349. <path>Aircraft/Robinson-R66/Models/MainRotor/mainrotor.xml</path>
  350. <offsets>
  351. <x-m> -0.17 </x-m>
  352. <y-m> 0.017 </y-m>
  353. <z-m> 1.67 </z-m>
  354. </offsets>
  355. </model>
  356. <!-- Rotor de queue -->
  357. <model>
  358. <path>Aircraft/Robinson-R66/Models/TailRotor/tailrotor.xml</path>
  359. <offsets>
  360. <x-m> 5.75 </x-m>
  361. <y-m> -0.247 </y-m>
  362. <z-m> 0.6 </z-m>
  363. <roll-deg> 90 </roll-deg>
  364. </offsets>
  365. </model>
  366. <!-- TV Camera
  367. <model>
  368. <name>TVCam</name>
  369. <path>Aircraft/Robinson-R66/Models/TVcam.xml</path>
  370. </model>
  371. -->
  372. <!-- Ouverture/fermeture des portes -->
  373. <animation>
  374. <name>PorteAvantGauche</name>
  375. <object-name>porteAG</object-name>
  376. <object-name>windowFR</object-name>
  377. </animation>
  378. <animation>
  379. <name>PorteAvantDroite</name>
  380. <object-name>porteAD</object-name>
  381. <object-name>windowFL</object-name>
  382. </animation>
  383. <animation>
  384. <name>PorteArriereGauche</name>
  385. <object-name>porteBG</object-name>
  386. <object-name>windowRR</object-name>
  387. </animation>
  388. <animation>
  389. <name>PorteArriereDroite</name>
  390. <object-name>porteBD</object-name>
  391. <object-name>windowRL</object-name>
  392. </animation>
  393. <!-- Porte avant gauche -->
  394. <animation>
  395. <type>pick</type>
  396. <object-name>PorteAvantGauche</object-name>
  397. <action>
  398. <button>0</button>
  399. <repeatable>false</repeatable>
  400. <binding>
  401. <command>nasal</command>
  402. <script>doors.doorsystem.Lcrewexport();</script>
  403. </binding>
  404. </action>
  405. </animation>
  406. <animation>
  407. <type>rotate</type>
  408. <object-name>PorteAvantGauche</object-name>
  409. <property>instrumentation/doors/Lcrew/position-norm</property>
  410. <factor> -80 </factor>
  411. <axis>
  412. <x1-m> -3.795 </x1-m>
  413. <y1-m> -0.607 </y1-m>
  414. <z1-m> -0.603 </z1-m>
  415. <x2-m> -3.631 </x2-m>
  416. <y2-m> -0.625 </y2-m>
  417. <z2-m> -0.266 </z2-m>
  418. </axis>
  419. </animation>
  420. <!-- Porte avant droite -->
  421. <animation>
  422. <type>pick</type>
  423. <object-name>PorteAvantDroite</object-name>
  424. <action>
  425. <button>0</button>
  426. <repeatable>false</repeatable>
  427. <binding>
  428. <command>nasal</command>
  429. <script>doors.doorsystem.Rcrewexport();</script>
  430. </binding>
  431. </action>
  432. </animation>
  433. <animation>
  434. <type>rotate</type>
  435. <object-name>PorteAvantDroite</object-name>
  436. <property>instrumentation/doors/Rcrew/position-norm</property>
  437. <factor> 80 </factor>
  438. <axis>
  439. <x1-m> -3.795 </x1-m>
  440. <y1-m> 0.607 </y1-m>
  441. <z1-m> -0.603 </z1-m>
  442. <x2-m> -3.631 </x2-m>
  443. <y2-m> 0.625 </y2-m>
  444. <z2-m> -0.266 </z2-m>
  445. </axis>
  446. </animation>
  447. <!-- Porte arriere gauche -->
  448. <animation>
  449. <type>pick</type>
  450. <object-name>PorteArriereGauche</object-name>
  451. <action>
  452. <button>0</button>
  453. <repeatable>false</repeatable>
  454. <binding>
  455. <command>nasal</command>
  456. <script>doors.doorsystem.Lpassengerexport();</script>
  457. </binding>
  458. </action>
  459. </animation>
  460. <animation>
  461. <type>rotate</type>
  462. <object-name>PorteArriereGauche</object-name>
  463. <property>instrumentation/doors/Lpassenger/position-norm</property>
  464. <factor> -80 </factor>
  465. <axis>
  466. <x1-m> -3.181 </x1-m>
  467. <y1-m> -0.646 </y1-m>
  468. <z1-m> -0.726 </z1-m>
  469. <x2-m> -3.046 </x2-m>
  470. <y2-m> -0.666 </y2-m>
  471. <z2-m> -0.346 </z2-m>
  472. </axis>
  473. </animation>
  474. <!-- Porte arriere droite -->
  475. <animation>
  476. <type>pick</type>
  477. <object-name>PorteArriereDroite</object-name>
  478. <action>
  479. <button>0</button>
  480. <repeatable>false</repeatable>
  481. <binding>
  482. <command>nasal</command>
  483. <script>doors.doorsystem.Rpassengerexport();</script>
  484. </binding>
  485. </action>
  486. </animation>
  487. <animation>
  488. <type>rotate</type>
  489. <object-name>PorteArriereDroite</object-name>
  490. <property>instrumentation/doors/Rpassenger/position-norm</property>
  491. <factor> 80 </factor>
  492. <axis>
  493. <x1-m> -3.181 </x1-m>
  494. <y1-m> 0.646 </y1-m>
  495. <z1-m> -0.726 </z1-m>
  496. <x2-m> -3.046 </x2-m>
  497. <y2-m> 0.666 </y2-m>
  498. <z2-m> -0.346 </z2-m>
  499. </axis>
  500. </animation>
  501. <!-- Ajout des effets lumineux
  502. <model>
  503. <path>Aircraft/Robinson-R66/Models/light/beacon.xml</path>
  504. <offsets>
  505. <x-m> 2.161 </x-m>
  506. <y-m> 0.000 </y-m>
  507. <z-m> 0.416 </z-m>
  508. </offsets>
  509. </model>
  510. <model>
  511. <path>Aircraft/Robinson-R66/Models/light/RedLight.xml</path>
  512. <offsets>
  513. <x-m> -3.361 </x-m>
  514. <y-m> -0.588 </y-m>
  515. <z-m> -0.983 </z-m>
  516. </offsets>
  517. </model>
  518. <model>
  519. <path>Aircraft/Robinson-R66/Models/light/GreenLight.xml</path>
  520. <offsets>
  521. <x-m> -3.361 </x-m>
  522. <y-m> 0.588 </y-m>
  523. <z-m> -0.983 </z-m>
  524. </offsets>
  525. </model>
  526. -->
  527. <!--
  528. <model>
  529. <path>Aircraft/Robinson-R66/Models/HelicopterPushback/HelicopterPushback.xml</path>
  530. </model>
  531. -->
  532. <animation>
  533. <type>pick</type>
  534. <object-name>RemoveRRDoor</object-name>
  535. <action>
  536. <button>0</button>
  537. <repeatable>false</repeatable>
  538. <binding>
  539. <command>property-toggle</command>
  540. <property>sim/model/Robinson-R66/remove-door-rr</property>
  541. </binding>
  542. </action>
  543. </animation>
  544. <animation>
  545. <type>pick</type>
  546. <object-name>RemoveRFDoor</object-name>
  547. <action>
  548. <button>0</button>
  549. <repeatable>false</repeatable>
  550. <binding>
  551. <command>property-toggle</command>
  552. <property>sim/model/Robinson-R66/remove-door-rf</property>
  553. </binding>
  554. </action>
  555. </animation>
  556. <animation>
  557. <type>pick</type>
  558. <object-name>RemoveLRDoor</object-name>
  559. <action>
  560. <button>0</button>
  561. <repeatable>false</repeatable>
  562. <binding>
  563. <command>property-toggle</command>
  564. <property>sim/model/Robinson-R66/remove-door-lr</property>
  565. </binding>
  566. </action>
  567. </animation>
  568. <animation>
  569. <type>pick</type>
  570. <object-name>RemoveLFDoor</object-name>
  571. <action>
  572. <button>0</button>
  573. <repeatable>false</repeatable>
  574. <binding>
  575. <command>property-toggle</command>
  576. <property>sim/model/Robinson-R66/remove-door-lf</property>
  577. </binding>
  578. </action>
  579. </animation>
  580. <animation>
  581. <type>select</type>
  582. <object-name>porteBD</object-name>
  583. <object-name>windowRL</object-name>
  584. <object-name>intporteBD</object-name>
  585. <object-name>intvitreBD</object-name>
  586. <condition>
  587. <not>
  588. <property>sim/model/Robinson-R66/remove-door-rr</property>
  589. </not>
  590. </condition>
  591. </animation>
  592. <animation>
  593. <type>select</type>
  594. <object-name>porteAD</object-name>
  595. <object-name>windowFL</object-name>
  596. <object-name>intporteAD</object-name>
  597. <object-name>intvitreAD</object-name>
  598. <condition>
  599. <not>
  600. <property>sim/model/Robinson-R66/remove-door-rf</property>
  601. </not>
  602. </condition>
  603. </animation>
  604. <animation>
  605. <type>select</type>
  606. <object-name>porteBG</object-name>
  607. <object-name>windowRR</object-name>
  608. <object-name>intporteBG</object-name>
  609. <object-name>intvitreBG</object-name>
  610. <condition>
  611. <not>
  612. <property>sim/model/Robinson-R66/remove-door-lr</property>
  613. </not>
  614. </condition>
  615. </animation>
  616. <animation>
  617. <type>select</type>
  618. <object-name>porteAG</object-name>
  619. <object-name>windowFR</object-name>
  620. <object-name>intporteAG</object-name>
  621. <object-name>intvitreAG</object-name>
  622. <condition>
  623. <not>
  624. <property>sim/model/Robinson-R66/remove-door-lf</property>
  625. </not>
  626. </condition>
  627. </animation>
  628. <!-- Une ombre pour OSG
  629. <model>
  630. <name>shadowOSG</name>
  631. <path>Aircraft/Robinson-R66/Models/shadowR.xml</path>
  632. </model>
  633. -->
  634. </PropertyList>