1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009 |
- <?xml version="1.0"?>
- <!-- Eurocopter AS350 Helicopter by StuartC, animation set -->
- <PropertyList>
- <path>as350a.ac</path>
-
- <!-- MP sound call -->
-
- <sound>
- <path>Aircraft/AS350/Sounds/mp-sound.xml</path>
- </sound>
-
- <nasal>
- <load>
-
- var livery_update = aircraft.livery_update.new("Aircraft/AS350/Models/liveries", 30);
-
-
- var self = cmdarg();
- var aliases = [];
- for (var i = 0; i < 6; i += 1) {
- var door = self.getNode("sim/model/bo105/doors/door[" ~ i ~ "]/position-norm", 1);
- var generic = self.getNode("sim/multiplay/generic/float[" ~ i ~ "]", 1);
- door.alias(generic);
- append(aliases, door);
-
- }
- aircraft.data.add(
- "instrumentation/kma20/test",
- "instrumentation/kma20/auto",
- "instrumentation/kma20/com1",
- "instrumentation/kma20/com2",
- "instrumentation/kma20/nav1",
- "instrumentation/kma20/nav2",
- "instrumentation/kma20/adf",
- "instrumentation/kma20/dme",
- "instrumentation/kma20/mkr",
- "instrumentation/kma20/sens",
- "instrumentation/kma20/knob"
- );
-
- <![CDATA[
- var root = cmdarg();
- var rootindex = root.getIndex();
- var mpPath = "/ai/models/multiplayer["~ rootindex ~"]/";
- var lightsPath = mpPath~"lightpack/"; #path to the property node, where all internal values are placed
- props.globals.initNode(mpPath~"sim/is-MP-Aircraft", 1, "BOOL");
-
- srand();
- #wherever you want to add randomization of time, use something like: + rand()*0.05-0.025 (included by default where appropriate)
- #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
- #IMPORTANT: don't put / on the start of the string, it's already included in the mpPath property
- var navSwitch = mpPath~"controls/lighting/nav-lights-switch";
- var beaconSwitch = mpPath~"controls/lighting/beacon-switch";
- var strobeSwitch = mpPath~"controls/lighting/strobe-switch";
- var landingSwitch = mpPath~"controls/lighting/landing-lights-switch";
- var taxiSwitch = mpPath~"controls/lighting/taxi-light-switch";
- var probeSwitch = mpPath~"controls/lighting/probe-light-switch";
- var whiteSwitch = mpPath~"controls/lighting/white-light-switch";
- var searchSwitch = mpPath~"controls/lighting/search-light-switch";
- #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
- navStillOn = 1;
- #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
- #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.
- var mpVar = {
- new: func(propIn, propOut) {
- var m = { parents: [mpVar] };
- m.propIn = propIn;
- m.propOut = propOut;
- if(propIn==nil or propOut==nil) return m;
- m.value = getprop(propIn);
- setprop(propOut, m.value);
- return m;
- },
- check: func {
- if(me.propIn==nil or me.propOut==nil) return;
- var newValue = getprop(me.propIn);
- if(newValue != me.value) {
- setprop(me.propOut, newValue);
- me.value = newValue;
- #print("value of "~me.propOut~" changed: "~newValue);
- }
- },
- };
- #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)
- #also used for properties you are using a listener on, or properties which you maybe want to manipulate during the <unload>
- #if you're just using the pack, change the values according to the MP bindings in the -set.xml file
- #you don't need to delete the entries if the path is nil - it gets skipped automatically and the MP path is just ignored
- var mirrorValues = [
- mpVar.new(mpPath~"sim/multiplay/generic/int[7]", mpPath~"sim/crashed"),
- mpVar.new(mpPath~"sim/multiplay/generic/int[0]", navSwitch),
- mpVar.new(mpPath~"sim/multiplay/generic/int[1]", beaconSwitch),
- mpVar.new(mpPath~"sim/multiplay/generic/int[1]", strobeSwitch),
- mpVar.new(mpPath~"sim/multiplay/generic/int[2]", landingSwitch),
- mpVar.new(mpPath~"sim/multiplay/generic/int[3]", taxiSwitch),
- mpVar.new(mpPath~"sim/multiplay/generic/int[3]", probeSwitch),
- mpVar.new(mpPath~"sim/multiplay/generic/int[0]", whiteSwitch),
- mpVar.new(mpPath~"sim/multiplay/generic/int[8]", searchSwitch),
- ];
- #loop at the default MP transfer frequency (10Hz)
- var mirrorTimer = maketimer(0.1, func {
- foreach(var mir; mirrorValues) {
- mir.check();
- }
- });
- mirrorTimer.start();
- #### NAV LIGHTS ####
- #class for a periodic fade in/out animation - for flashing, use rather standard aircraft.light.new(), as in Beacon and Strobe section
- var lightCycle = {
- #constructor
- new: func(propSwitch, propOut) {
- m = { parents: [lightCycle] };
- props.globals.initNode(propOut, 0, "DOUBLE");
- props.globals.initNode(propSwitch, 1, "BOOL");
- m.fadeIn = 0.4 + rand()*0.05-0.025; #fade in time
- m.fadeOut = 0.4 + rand()*0.05-0.025; #fade out time
- m.stayOn = 1.5 + rand()*0.05-0.025; #stable on period
- m.stayOff = 1 + rand()*0.05-0.025; #stable off period
- m.turnOff = 0.12; #fade out time when turned off
- m.phase = 0; #phase to be run on next timer call: 0 -> fade in, 1 -> stay on, 2 -> fade out, 3 -> stay off
- m.cycleTimer = maketimer(0.1, func {
- if(getprop(propSwitch)) {
- if(m.phase == 0) {
- interpolate(propOut, 1, m.fadeIn);
- m.phase = 1;
- m.cycleTimer.restart(m.fadeIn);
- }
- else if(m.phase == 1){
- m.phase = 2;
- m.cycleTimer.restart(m.stayOn);
- }
- else if(m.phase == 2){
- interpolate(propOut, 0, m.fadeOut);
- m.phase = 3;
- m.cycleTimer.restart(m.fadeOut);
- }
- else if(m.phase == 3){
- m.phase = 0;
- m.cycleTimer.restart(m.stayOff);
- }
- }
- else {
- interpolate(propOut, 0, m.turnOff); #kills any currently ongoing interpolation
- m.phase = 0;
- }
- });
- m.cycleTimer.singleShot = 1;
- if(propSwitch==nil) {
- m.listen = nil;
- return m;
- }
- m.listen = setlistener(propSwitch, func{m.cycleTimer.restart(0);}); #handle switch changes
- m.cycleTimer.restart(0); #start the looping
- return m;
- },
- #destructor
- del: func {
- if(me.listen!=nil) removelistener(me.listen);
- me.cycleTimer.stop();
- },
- };
- #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.
- var navLights = nil;
- if(!navStillOn) {
- navLights = lightCycle.new(navSwitch, lightsPath~"nav-lights-intensity");
- ### Uncomment and tune those to customize times ###
- #navLights.fadeIn = 0.4; #fade in time
- #navLights.fadeOut = 0.4; #fade out time
- #navLights.stayOn = 3 + rand()*0.05-0.025; #stable on period
- #navLights.stayOff = 0.6; #stable off period
- #navLights.turnOff = 0.12; #fade out time when turned off
- }
- ### BEACON ###
- var beacon = nil;
- if(beaconSwitch!=nil) {
- props.globals.initNode(beaconSwitch, 1, "BOOL");
- beacon = aircraft.light.new(lightsPath~"beacon-state",
- [0.0, 1.0 + rand()*0.05-0.025], beaconSwitch);
- }
-
-
- ### STROBE ###
- var strobe = nil;
- if(strobeSwitch!=nil) {
- props.globals.initNode(strobeSwitch, 1, "BOOL");
- strobe = aircraft.light.new(lightsPath~"strobe-state",
- [0.0, 0.87 + rand()*0.05-0.025], strobeSwitch);
- }
- ### LIGHT FADING ###
- #class for controlling fade in/out behavior - propIn is a control property (handled as a boolean) and propOut is interpolated
- #all light brightness animations in xmls depend on propOut (Rembrandt brightness, material emission, flares transparency, ...)
- var lightFadeInOut = {
- #constructor
- new: func(propSwitch, propOut) {
- m = { parents: [lightFadeInOut] };
- m.fadeIn = 0.3; #some sane defaults
- m.fadeOut = 0.4;
- if(propSwitch==nil) {
- m.listen = nil;
- return m;
- }
- props.globals.initNode(propSwitch, 1, "BOOL");
- m.isOn = getprop(propSwitch);
- props.globals.initNode(propOut, m.isOn, "DOUBLE");
- m.listen = setlistener(propSwitch,
- func {
- if(m.isOn and !getprop(propSwitch)) {
- interpolate(propOut, 0, m.fadeOut);
- m.isOn = 0;
- }
- if(!m.isOn and getprop(propSwitch)) {
- interpolate(propOut, 1, m.fadeIn);
- m.isOn = 1;
- }
- }
- );
- return m;
- },
- #destructor
- del: func {
- if(me.listen!=nil) removelistener(me.listen);
- },
- };
- fadeLanding = lightFadeInOut.new(landingSwitch, lightsPath~"landing-lights-intensity");
- fadeLanding = lightFadeInOut.new(searchSwitch, lightsPath~"search-lights-intensity");
- fadeTaxi = lightFadeInOut.new(taxiSwitch, lightsPath~"taxi-light-intensity");
- fadeProbe = lightFadeInOut.new(probeSwitch, lightsPath~"probe-light-intensity");
- fadeWhite = lightFadeInOut.new(whiteSwitch, lightsPath~"white-light-intensity");
- if(navStillOn) {
- navLights = lightFadeInOut.new(navSwitch, lightsPath~"nav-lights-intensity");
- navLights.fadeIn = 0.1;
- navLights.fadeOut = 0.12;
- }
- #manipulate times if defaults don't fit your needs:
- #fadeLanding.fadeIn = 0.5;
- #fadeLanding.fadeOut = 0.8;
- ### the rest of your model load embedded Nasal code ###
- ]]>
- </load>
- <unload>
- #prevent multiple timers and listeners from running and fighting on next connect
- #cleanly destroy MP property mirroring
- mirrorTimer.stop();
- mirrorTimer = nil;
- mirrorValues = nil;
-
- #cleanly destroy nav lights
- if(navStillOn) {
- navLights.del();
- }
- else {
- if(navSwitch!=nil) setprop(navSwitch, 0);
- navLights.del();
- if(navSwitch!=nil) navLights.cycleTimer = nil;
- navLights = nil;
- }
-
- #cleanly destroy beacon
- if(beaconSwitch!=nil) setprop(beaconSwitch, 0);
- beacon.del();
- beacon = nil;
-
- #cleanly destroy strobe
- if(strobeSwitch!=nil) setprop(strobeSwitch, 0);
- strobe.del();
- strobe = nil;
-
- #cleanly destroy light fade in/out animation objects
- fadeLanding.del();
- fadeTaxi.del();
- fadeProbe.del();
- fadeWhite.del();
-
- ### the rest of your model unload embedded Nasal code ###
-
- livery_update.stop();
- foreach (var a; aliases)
- a.unalias();
- searchlightx.unalias();
- searchlightz.unalias();
- rope.unalias();
- </unload>
- </nasal>
-
-
- <!--
-
- <effect>
- <inherits-from>Aircraft/AS350/Models/Effects/reflect-uber</inherits-from>
- <object-name>Door_L_2</object-name>
- <object-name>Door_R_1</object-name>
- <object-name>Front_Door_L_pivot_2</object-name>
- <object-name>fuselage-main.001</object-name>
- <object-name>fuselage-main</object-name>
- <object-name>mirrors_3</object-name>
- <object-name>fuselage-mid</object-name>
- <object-name>mirrors_1</object-name>
- <object-name>fuselage_tail</object-name>
- <object-name>fuselage_9a</object-name>
- <object-name>fuselage_9a.001</object-name>
- <object-name>fuselage_9</object-name>
- </effect>
- -->
-
- <effect>
- <inherits-from>Aircraft/AS350/Models/Effects/reflect-uber1</inherits-from>
- <object-name>Door_L_2</object-name>
- <object-name>Door_R_1</object-name>
- <object-name>Front_Door_L_pivot_2</object-name>
- <object-name>fuselage-main.001</object-name>
- <object-name>fuselage-main</object-name>
- </effect>
-
- <effect>
- <inherits-from>Aircraft/AS350/Models/Effects/reflect-uber2</inherits-from>
- <object-name>fuselage-mid</object-name>
- <object-name>mirrors_1</object-name>
- </effect>
-
- <effect>
- <inherits-from>Aircraft/AS350/Models/Effects/reflect-uber3</inherits-from>
- <object-name>fuselage_tail</object-name>
- </effect>
-
- <effect>
- <inherits-from>Aircraft/AS350/Models/Effects/reflect-uber4</inherits-from>
- <object-name>fuselage_9a</object-name>
- <object-name>fuselage_9</object-name>
- </effect>
-
-
- <animation>
- <type>material</type>
- <object-name>Door_L_2</object-name>
- <object-name>Door_R_1</object-name>
- <object-name>Front_Door_L_pivot_2</object-name>
- <object-name>fuselage-main.001</object-name>
- <object-name>fuselage-main</object-name>
- <object-name>mirrors_3</object-name>
- <property-base>sim/model/livery</property-base>
- <texture-prop>texture1</texture-prop>
- <texture>as350b_01.jpg</texture>
- </animation>
-
- <animation>
- <type>material</type>
- <object-name>fuselage-mid</object-name>
- <object-name>mirrors_1</object-name>
- <property-base>sim/model/livery</property-base>
- <texture-prop>texture2</texture-prop>
- <texture>as350b_02.jpg</texture>
- </animation>
-
-
- <animation>
- <type>material</type>
- <object-name>fuselage_tail</object-name>
-
- <property-base>sim/model/livery</property-base>
- <texture-prop>texture3</texture-prop>
- <texture>as350b_03.jpg</texture>
- </animation>
-
- <animation>
- <type>material</type>
- <!-- <object-name>fuselage_3</object-name>-->
- <object-name>fuselage_9a</object-name>
- <object-name>fuselage_9</object-name>
- <property-base>sim/model/livery</property-base>
- <texture-prop>texture4</texture-prop>
- <texture>as350b_04.jpg</texture>
- </animation>
-
- <animation>
- <type>material</type>
- <object-name>MainHub</object-name>
- <object-name>blade1-1</object-name>
- <object-name>blade2-1</object-name>
- <object-name>blade3-1</object-name>
- <object-name>blade1-2</object-name>
- <object-name>blade2-2</object-name>
- <object-name>blade3-2</object-name>
- <object-name>blade1-3</object-name>
- <object-name>blade2-3</object-name>
- <object-name>blade3-3</object-name>
- <object-name>blade1-4</object-name>
- <object-name>blade2-4</object-name>
- <object-name>blade3-4</object-name>
-
- <property-base>sim/model/livery</property-base>
- <texture-prop>blades</texture-prop>
- <texture>as350b_05.jpg</texture>
- </animation>
-
- <animation>
- <type>material</type>
- <object-name>blurred1</object-name>
-
- <object-name>blurred2</object-name>
-
- <object-name>blurred3</object-name>
- <property-base>sim/model/livery</property-base>
- <texture-prop>blur</texture-prop>
- <texture>rotorblur.png</texture>
- </animation>
-
- <!-- Solid Surfaces for Rembrandt rendering -->
- <animation>
-
- <object-name>fuselage_tail</object-name>
- <object-name>fuselage-main</object-name>
- <object-name>fuselage</object-name>
- <object-name>fuselage_13</object-name>
- <object-name>fuselage_0</object-name>
- <object-name>Door_L_2</object-name>
- <object-name>Front_Door_L_pivot_2</object-name>
- <object-name>fuselage_9</object-name>
- <object-name>Door_R_1</object-name>
- <object-name>fuselage_6</object-name>
- <object-name>fuselage_9</object-name>
- <object-name>mirrors_3</object-name>
- <object-name>blades</object-name>
- <object-name>fuselage-main.001</object-name>
- </animation>
-
- <!-- rembrandt auto switching for glass -->
-
- <effect>
- <inherits-from>Effects/model-transparent</inherits-from>
- <condition>
- <property>sim/rendering/rembrandt/enabled</property>
- </condition>
-
- <object-name>blurred</object-name>
- <object-name>propblur</object-name>
- <object-name>propdisc</object-name>
- </effect>
-
- <effect>
- <inherits-from>Aircraft/AS350/Models/Effects/bk117reflectglas-uber</inherits-from>
- <object-name>cockpitglass</object-name>
- <object-name>right-rear-glass</object-name>
- <object-name>Door_L_0-glass</object-name>
- <object-name>right-f-door-glass</object-name>
- <object-name>left-f-door-glass</object-name>
- <object-name>mirrors_3</object-name>
- </effect>
- <effect>
- <inherits-from>Effects/glass</inherits-from>
- <object-name>cockpitglassin</object-name>
- <object-name>right-rear-glassin</object-name>
- <object-name>Door_L_0-glassin</object-name>
- <object-name>right-f-door-glasin</object-name>
- <object-name>left-f-door-glassin</object-name>
- </effect>
-
- <!--interior -->
- <model>
- <path>Aircraft/AS350/Models/Interior/panel.xml</path>
- <offsets>
- <x-m>2.021</x-m>
- <y-m>0</y-m>
- <z-m>0.66 </z-m>
- <pitch-deg>0</pitch-deg>
- </offsets>
- </model>
- <!-- overhead starter -->
- <model>
- <path>Aircraft/AS350/Models/Interior/Instruments/Engineswitch/engineswitch.xml</path>
- <offsets>
- <x-m>-1.96</x-m>
- <y-m>0.085</y-m>
- <z-m>1.183 </z-m>
- <pitch-deg>100</pitch-deg>
- <heading-deg>180</heading-deg>
- </offsets>
- </model>
- <animation>
- <type>select</type>
- <object-name>pilot1</object-name>
-
- <condition>
- <not>
- <equals>
- <property>sim/current-view/view-number</property>
- <value>0</value>
- </equals>
- </not>
- </condition>
- </animation>
-
- <animation>
- <type>select</type>
- <object-name>pilot1</object-name>
-
- <condition>
- <not>
- <equals>
- <property>sim/current-view/view-number</property>
- <value>12</value>
- </equals>
- </not>
- </condition>
- </animation>
-
- <animation>
- <type>select</type>
- <object-name>crew1</object-name>
-
- <condition>
- <not>
- <equals>
- <property>sim/current-view/view-number</property>
- <value>10</value>
- </equals>
- </not>
- </condition>
- </animation>
-
- <!-- rotor animation-->
- <model>
- <name>main-rotor</name>
- <path>Aircraft/AS350/Models/mainrotor/mainrotor.xml</path>
- <offsets>
- <x-m> 0.000 </x-m>
- <y-m> 0.000 </y-m>
- <z-m> 0</z-m>
- </offsets>
- </model>
-
- <!-- tail rotor -->
- <model>
- <path>Aircraft/AS350/Models/TailRotor/tailrotor.xml</path>
- <offsets>
- <x-m> 6.1 </x-m>
- <y-m> 0.373 </y-m>
- <z-m> 0.7 </z-m>
- <roll-deg> 90 </roll-deg>
- <pitch-deg> 0 </pitch-deg>
- <heading-deg> 180 </heading-deg>
- </offsets>
- <overlay>
- <animation n="100">
- <type>scale</type>
- <property>constants/zero</property>
- <x-offset>0.76</x-offset>
- <y-offset>0.76</y-offset>
- <z-offset>0.76</z-offset>
- </animation>
- </overlay>
- </model>
-
-
- <!-- light pack -->
-
- <model>
- <path>Aircraft/AS350/Models/Lights/LightPack.xml</path>
- <offsets>
- <x-m>0</x-m>
- <y-m>0</y-m>
- <z-m>0</z-m>
- </offsets>
- </model>
-
-
- <!--== particles ==-->
- <model>
- <name>mainrotors_dirt</name>
- <path>Aircraft/AS350/Models/Effects/particle/rotor_particle.xml</path>
- <offsets>
- <x-m> 0.000 </x-m>
- <y-m> 0.000 </y-m>
- <z-m> 0.700 </z-m>
- </offsets>
- </model>
-
- <!-- Doors -->
- <animation>
- <name>door_front_L</name>
-
- <object-name>Front_Door_L_pivot_2</object-name>
- <object-name>Front_Door_L_pivot_1</object-name>
- <object-name>Front_Door_L_pivot_0</object-name>
- <object-name>left-f-door-glass</object-name>
- <object-name>left-f-door-glassin</object-name>
- <object-name>Front_Door_L_pivo</object-name>
- </animation>
- <animation>
- <name>door_front_R</name>
-
- <object-name>Door_R_1</object-name>
- <object-name>Door_R_2</object-name>
- <object-name>Door_R_0</object-name>
- <object-name>right-f-door-glass</object-name>
- <object-name>right-f-door-glasin</object-name>
- </animation>
-
-
- <animation>
- <name>door_back_R</name>
-
- <object-name>fuselage_6.001</object-name>
- <object-name>fuselage-main.001</object-name>
- <object-name>right-rear-glass</object-name>
- <object-name>right-rear-glassin</object-name>
- </animation>
-
- <animation>
- <name>door_back_L</name>
-
- <object-name>Door_L_2</object-name>
- <object-name>Door_L_1</object-name>
- <object-name>Door_L_0</object-name>
- <object-name>Door_L_0-glassin</object-name>
- <object-name>Door_L_0-glass</object-name>
- </animation>
-
- <animation>
- <name>reardoor_R</name> <!-- used for the floor hatch -->
-
- <object-name>door_cabin02.001</object-name>
- <object-name>door_cabin01.001</object-name>
-
- </animation>
-
-
-
- <animation>
- <type>pick</type>
- <object-name>door_front_R</object-name>
-
- <action>
- <button>0</button>
- <binding>
- <command>nasal</command>
- <script>bo105.doors.list[0].toggle()</script>
- </binding>
- </action>
- </animation>
- <animation>
- <type>pick</type>
- <object-name>door_front_L</object-name>
-
- <action>
- <button>0</button>
- <binding>
- <command>nasal</command>
- <script>bo105.doors.list[1].toggle()</script>
- </binding>
- </action>
- </animation>
- <animation>
- <type>pick</type>
- <object-name>door_back_R</object-name>
-
- <action>
- <button>0</button>
- <binding>
- <command>nasal</command>
- <script>bo105.doors.list[2].toggle()</script>
- </binding>
- </action>
- </animation>
-
- <animation>
- <type>pick</type>
- <object-name>door_back_L</object-name>
-
- <action>
- <button>0</button>
- <binding>
- <command>nasal</command>
- <script>bo105.doors.list[3].toggle()</script>
- </binding>
- </action>
- </animation>
-
- <animation>
- <type>pick</type>
- <object-name>reardoor_R</object-name>
-
- <action>
- <button>0</button>
- <binding>
- <command>nasal</command>
- <script>bo105.doors.list[4].toggle()</script>
- </binding>
- </action>
- </animation>
-
- <animation>
- <type>select</type>
- <object-name>door_front_R</object-name>
-
- <condition>
- <or>
- <property>sim/model/bo105/doors/door[0]/enabled</property>
- <not>
- <equals>
- <property>sim/aircraft</property>
- <value>bo105</value>
- </equals>
- </not>
- </or>
- </condition>
- </animation>
-
-
- <animation>
- <type>select</type>
- <object-name>door_front_L</object-name>
-
- <condition>
- <or>
- <property>sim/model/bo105/doors/door[1]/enabled</property>
- <not>
- <equals>
- <property>sim/aircraft</property>
- <value>bo105</value>
- </equals>
- </not>
- </or>
- </condition>
- </animation>
-
-
- <animation>
- <type>select</type>
- <object-name>door_back_R</object-name>
-
- <condition>
- <or>
- <property>sim/model/bo105/doors/door[2]/enabled</property>
- <not>
- <equals>
- <property>sim/aircraft</property>
- <value>bo105</value>
- </equals>
- </not>
- </or>
- </condition>
- </animation>
-
-
- <animation>
- <type>select</type>
- <object-name>door_back_L</object-name>
-
- <condition>
- <or>
- <property>sim/model/bo105/doors/door[3]/enabled</property>
- <not>
- <equals>
- <property>sim/aircraft</property>
- <value>bo105</value>
- </equals>
- </not>
- </or>
- </condition>
- </animation>
-
- <animation>
- <type>select</type>
- <object-name>reardoor_R</object-name>
-
- <condition>
- <or>
- <property>sim/model/bo105/doors/door[4]/enabled</property>
- <not>
- <equals>
- <property>sim/aircraft</property>
- <value>bo105</value>
- </equals>
- </not>
- </or>
- </condition>
- </animation>
-
-
- <animation>
- <type>rotate</type>
- <object-name>door_front_R</object-name>
-
- <property>sim/model/bo105/doors/door[0]/position-norm</property>
- <factor>100</factor>
- <axis>
- <x1-m> -2.52 </x1-m>
- <y1-m> 0.85 </y1-m>
- <z1-m>0.3 </z1-m>
- <x2-m> -2.2 </x2-m>
- <y2-m> 0.75 </y2-m>
- <z2-m> 0.88</z2-m>
- </axis>
- </animation>
-
-
- <animation>
- <type>rotate</type>
- <object-name>door_front_L</object-name>
-
- <property>sim/model/bo105/doors/door[1]/position-norm</property>
- <factor>-100</factor>
- <axis>
- <x1-m> -2.52 </x1-m>
- <y1-m> -0.85 </y1-m>
- <z1-m>0.3 </z1-m>
- <x2-m> -2.2 </x2-m>
- <y2-m> -0.75 </y2-m>
- <z2-m> 0.88</z2-m>
- </axis>
- </animation>
-
- <animation>
- <type>rotate</type>
- <object-name>door_back_R</object-name>
- <property>sim/model/bo105/doors/door[2]/position-norm</property>
-
- <factor>90</factor>
- <axis>
- <x1-m> -0.6 </x1-m>
- <y1-m> 0.8 </y1-m>
- <z1-m> 0.66 </z1-m>
- <x2-m> -0.8 </x2-m>
- <y2-m> 0.88 </y2-m>
- <z2-m> 0</z2-m>
- </axis>
- </animation>
-
- <animation>
- <type>rotate</type>
- <object-name>door_back_L</object-name>
- <property>sim/model/bo105/doors/door[3]/position-norm</property>
- <factor>3.5</factor>
- <center>
- <x-m>-1.01714</x-m>
- <y-m>16.3654</y-m>
- <z-m>0</z-m>
- </center>
- <axis>
- <x>0.0</x>
- <y>0</y>
- <z>1</z>
- </axis>
- </animation>
- <animation>
- <type>rotate</type> <!-- floor hatch -->
- <object-name>reardoor_R</object-name>
- <property>sim/model/bo105/doors/door[4]/position-norm</property>
-
- <factor>90</factor>
- <axis>
- <x1-m> -2.35 </x1-m>
- <y1-m> 0.55 </y1-m>
- <z1-m> -0.155 </z1-m>
- <x2-m> -1.85 </x2-m>
- <y2-m> 0.55 </y2-m>
- <z2-m> -0.175</z2-m>
- </axis>
- </animation>
-
-
- <!-- Rotorbrake animation -->
-
- <animation>
- <type>rotate</type>
- <object-name>rotorbrake</object-name>
- <property>controls/rotor/brake</property>
- <factor>60</factor>
- <axis>
- <x> 0 </x>
- <y> -1 </y>
- <z> 0 </z>
- </axis>
- <center>
- <x-m> -2.16</x-m>
- <y-m> 0 </y-m>
- <z-m> 1.145 </z-m>
- </center>
- </animation>
- <animation>
- <type>pick</type>
- <object-name>rotorbrake</object-name>
- <action>
- <button>0</button>
- <repeatable>true</repeatable>
- <binding>
- <command>nasal</command>
- <script>
- var p = "/controls/rotor/brake";
- setprop(p, !getprop(p));
- </script>
- </binding>
- </action>
- </animation>
- <!-- fuel valve lever -->
-
- <animation>
- <type>rotate</type>
- <object-name>powerlever</object-name>
- <property>controls/engines/engine/cutoff</property>
- <factor>-40</factor>
- <center>
- <x-m> -2.16</x-m>
- <y-m> 0 </y-m>
- <z-m> 1.145 </z-m>
- </center>
- <axis>
- <x> 0 </x>
- <y> 1 </y>
- <z> 0 </z>
- </axis>
- </animation>
-
- <animation>
- <type>pick</type>
- <object-name>powerlever</object-name>
- <action>
- <button>0</button>
- <repeatable>false</repeatable>
- <binding>
- <command>property-toggle</command>
- <property>controls/engines/engine/cutoff</property>
- </binding>
- <binding>
- <command>property-toggle</command>
- <property>controls/engines/engine[1]/cutoff</property>
- </binding>
- </action>
- </animation>
- <!-- payload -->
- <model>
- <path>Aircraft/AS350/Models/payload/loads.xml</path>
- <offsets>
- <x-m>0</x-m>
- <y-m>0</y-m>
- <z-m>0</z-m>
- </offsets>
- </model>
-
- <!-- removes snow spades when floats are fitted -->
-
- <animation>
- <type>select</type>
- <object-name>fuselage_13</object-name>
-
- <condition>
- <not>
- <equals>
- <property>sim/multiplay/generic/string[2]</property>
- <value>Floatation_System</value>
- </equals>
- </not>
- </condition>
- </animation>
-
- </PropertyList>
|