Add Nasal controller and 3D animation
This commit is contained in:
parent
af91ab09b5
commit
b452191045
2 changed files with 72 additions and 1 deletions
|
@ -4876,7 +4876,62 @@
|
||||||
<z-m>-0.265</z-m>
|
<z-m>-0.265</z-m>
|
||||||
</center>
|
</center>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<name>Turnoff light pick</name>
|
||||||
|
<type>pick</type>
|
||||||
|
<object-name>TurnoffLtSwtch</object-name>
|
||||||
|
<action>
|
||||||
|
<button>0</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>property-cycle</command>
|
||||||
|
<property>controls/lighting/turnoff-light-switch</property>
|
||||||
|
<value>0</value>
|
||||||
|
<value>1</value>
|
||||||
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>setprop("/sim/sounde/switch1", 1);</script>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<button>1</button>
|
||||||
|
<repeatable>false</repeatable>
|
||||||
|
<binding>
|
||||||
|
<command>property-cycle</command>
|
||||||
|
<property>controls/lighting/turnoff-light-switch</property>
|
||||||
|
<value>1</value>
|
||||||
|
<value>0</value>
|
||||||
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>setprop("/sim/sounde/switch1", 1);</script>
|
||||||
|
</binding>
|
||||||
|
</action>
|
||||||
|
</animation>
|
||||||
|
|
||||||
|
<animation>
|
||||||
|
<name>turnoff light rotate</name>
|
||||||
|
<type>rotate</type>
|
||||||
|
<object-name>TurnoffLtSwtch</object-name>
|
||||||
|
<property>controls/lighting/turnoff-light-switch</property>
|
||||||
|
<interpolation>
|
||||||
|
<entry><ind>0</ind><dep>35</dep></entry>
|
||||||
|
<entry><ind>1</ind><dep>-35</dep></entry>
|
||||||
|
</interpolation>
|
||||||
|
<axis>
|
||||||
|
<x>0</x>
|
||||||
|
<y>1</y>
|
||||||
|
<z>0</z>
|
||||||
|
</axis>
|
||||||
|
<center>
|
||||||
|
<x-m>-0.01</x-m>
|
||||||
|
<y-m>0</y-m>
|
||||||
|
<z-m>-0.3037</z-m>
|
||||||
|
</center>
|
||||||
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<name>landing light pick</name>
|
<name>landing light pick</name>
|
||||||
<type>pick</type>
|
<type>pick</type>
|
||||||
|
@ -4948,6 +5003,7 @@
|
||||||
</binding>
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<name>landing light rotate</name>
|
<name>landing light rotate</name>
|
||||||
<type>rotate</type>
|
<type>rotate</type>
|
||||||
|
@ -4968,6 +5024,7 @@
|
||||||
<z-m>-0.3037</z-m>
|
<z-m>-0.3037</z-m>
|
||||||
</center>
|
</center>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
<animation>
|
<animation>
|
||||||
<name>landing light rotate</name>
|
<name>landing light rotate</name>
|
||||||
<type>rotate</type>
|
<type>rotate</type>
|
||||||
|
|
|
@ -20,6 +20,7 @@ setprop("/controls/tray/surprise", 1);
|
||||||
# Lights
|
# Lights
|
||||||
setprop("/sim/model/lights/nose-lights", 0);
|
setprop("/sim/model/lights/nose-lights", 0);
|
||||||
setprop("/sim/model/lights/turnoffsw", 0);
|
setprop("/sim/model/lights/turnoffsw", 0);
|
||||||
|
setprop("/controls/lighting/turnoff-light-switch", 0);
|
||||||
setprop("/controls/lighting/leftturnoff", 0);
|
setprop("/controls/lighting/leftturnoff", 0);
|
||||||
setprop("/controls/lighting/rightturnoff", 0);
|
setprop("/controls/lighting/rightturnoff", 0);
|
||||||
|
|
||||||
|
@ -53,6 +54,19 @@ setlistener("controls/lighting/nav-lights-switch", func {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setlistener("controls/lighting/turnoff-light-switch", func {
|
||||||
|
var left_turnoff_light = props.globals.getNode("/controls/lighting/leftturnoff");
|
||||||
|
var right_turnoff_light = props.globals.getNode("/controls/lighting/rightturnoff");
|
||||||
|
var settingT = getprop("/controls/lighting/turnoff-lights-switch");
|
||||||
|
if (settingT == 1) {
|
||||||
|
left_turnoff_light.setBoolValue(1);
|
||||||
|
right_turnoff_light.setBoolValue(1);
|
||||||
|
} else {
|
||||||
|
left_turnoff_light.setBoolValue(0);
|
||||||
|
right_turnoff_light.setBoolValue(0);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
setlistener("controls/lighting/taxi-light-switch", func {
|
setlistener("controls/lighting/taxi-light-switch", func {
|
||||||
var nose_lights = getprop("/sim/model/lights/nose-lights");
|
var nose_lights = getprop("/sim/model/lights/nose-lights");
|
||||||
var settingT = getprop("/controls/lighting/taxi-light-switch");
|
var settingT = getprop("/controls/lighting/taxi-light-switch");
|
||||||
|
|
Reference in a new issue