Multiplayer: Bind more properties

This commit is contained in:
Sidi Liang 2019-07-31 20:24:42 +08:00
parent 07d57635d6
commit 9a3662acb7
2 changed files with 40 additions and 18 deletions

View File

@ -98,7 +98,7 @@
<animation>
<type>rotate</type>
<object-name>Tyre1</object-name>
<property>gear/gear[0]/steering-norm</property>
<property>sim/multiplay/generic/float[4]</property>
<factor>-45</factor>
<center>
<x-m> 0.681</x-m>
@ -115,7 +115,7 @@
<animation>
<type>translate</type>
<object-name>Tyre1</object-name>
<property>gear/gear[0]/compression-norm</property>
<property>sim/multiplay/generic/float[5]</property>
<interpolation>
<entry>
<ind>0.0</ind>
@ -136,7 +136,7 @@
<animation>
<type>spin</type>
<object-name>Tyre1</object-name>
<property>gear/gear[2]/rollspeed-ms</property>
<property>sim/multiplay/generic/float[6]</property>
<factor>-15</factor>
<center>
<x-m>0.682</x-m>
@ -155,7 +155,7 @@
<animation>
<type>rotate</type>
<object-name>Tyre2</object-name>
<property>gear/gear[1]/steering-norm</property>
<property>sim/multiplay/generic/float[7]</property>
<factor>-45</factor>
<center>
<x-m> 0.681</x-m>
@ -172,7 +172,7 @@
<animation>
<type>translate</type>
<object-name>Tyre2</object-name>
<property>gear/gear[1]/compression-norm</property>
<property>sim/multiplay/generic/float[8]</property>
<interpolation>
<entry>
<ind>0.0</ind>
@ -193,7 +193,7 @@
<animation>
<type>spin</type>
<object-name>Tyre2</object-name>
<property>gear/gear[1]/rollspeed-ms</property>
<property>sim/multiplay/generic/float[9]</property>
<factor>-15</factor>
<center>
<x-m>0.682</x-m>
@ -212,7 +212,7 @@
<animation>
<type>translate</type>
<object-name>Tyre3</object-name>
<property>gear/gear[2]/compression-norm</property>
<property>sim/multiplay/generic/float[10]</property>
<interpolation>
<entry>
<ind>0.0</ind>
@ -233,7 +233,7 @@
<animation>
<type>spin</type>
<object-name>Tyre3</object-name>
<property>gear/gear[3]/rollspeed-ms</property>
<property>sim/multiplay/generic/float[11]</property>
<factor>-15</factor>
<center>
<x-m>3.17</x-m>
@ -252,7 +252,7 @@
<animation>
<type>translate</type>
<object-name>Tyre4</object-name>
<property>gear/gear[3]/compression-norm</property>
<property>sim/multiplay/generic/float[12]</property>
<interpolation>
<entry>
<ind>0.0</ind>
@ -273,7 +273,7 @@
<animation>
<type>spin</type>
<object-name>Tyre4</object-name>
<property>gear/gear[1]/rollspeed-ms</property>
<property>sim/multiplay/generic/float[13]</property>
<factor>-15</factor>
<center>
<x-m>3.17</x-m>
@ -307,7 +307,7 @@
<animation>
<type>rotate</type>
<object-name>ldoor</object-name>
<property>controls/doors/frontleft/position-norm</property>
<property>sim/multiplay/generic/float[3]</property>
<factor>-75</factor>
<center>
<x-m> 1</x-m>
@ -339,7 +339,7 @@
<animation>
<type>rotate</type>
<object-name>rdoor</object-name>
<property>controls/doors/frontright/position-norm</property>
<property>sim/multiplay/generic/float[2]</property>
<factor>75</factor>
<center>
<x-m>1</x-m>
@ -372,7 +372,7 @@
<type>rotate</type>
<object-name>door.rl</object-name>
<object-name>rearwiper</object-name>
<property>controls/doors/rearleft/position-norm</property>
<property>sim/multiplay/generic/float[1]</property>
<factor>-90</factor>
<center>
<x-m> 3.7</x-m>
@ -404,7 +404,7 @@
<animation>
<type>rotate</type>
<object-name>door.rr</object-name>
<property>controls/doors/rearright/position-norm</property>
<property>sim/multiplay/generic/float[0]</property>
<factor>90</factor>
<center>
<x-m>3.7</x-m>
@ -430,7 +430,7 @@
<object-name>Cone</object-name>
<object-name>Cone-texture</object-name>
<condition>
<property>controls/lighting/headlight</property>
<property>sim/multiplay/generic/int[3]</property>
</condition>
</animation>
@ -463,11 +463,11 @@
<red>1.0</red>
<green>0.0</green>
<blue>0.0</blue>
<factor-prop>controls/gear/brake-left</factor-prop>
<factor-prop>sim/multiplay/generic/int[4]</factor-prop>
</emission>
<condition>
<greater-than>
<property>controls/gear/brake-left</property>
<property>sim/multiplay/generic/int[4]</property>
<value>0.3</value>
</greater-than>
</condition>
@ -480,7 +480,7 @@
<condition>
<and>
<equals>
<property>services/service-truck/enable</property>
<property>sim/multiplay/generic/int[5]</property>
<value>1</value>
</equals>
<less-than>

View File

@ -187,6 +187,28 @@
<int n="0" alias="/sim/model/lights/indicator-left/state"/>
<int n="1" alias="/sim/model/lights/indicator-right/state"/>
<int n="2" alias="/systems/horn"/>
<int n="3" alias="/controls/lighting/headlight"/>
<int n="4" alias="/controls/gear/brake-left"/>
<int n="5" alias="/services/service-truck/enable"/>
<float n="0" alias="/controls/doors/rearright/position-norm"/>
<float n="1" alias="/controls/doors/rearleft/position-norm"/>
<float n="2" alias="/controls/doors/frontright/position-norm"/>
<float n="3" alias="/controls/doors/frontleft/position-norm"/>
<float n="4" alias="/gear/gear[0]/steering-norm"/>
<float n="5" alias="/gear/gear[0]/compression-norm"/>
<float n="6" alias="/gear/gear[0]/rollspeed-ms"/>
<float n="7" alias="/gear/gear[1]/steering-norm"/>
<float n="8" alias="/gear/gear[1]/compression-norm"/>
<float n="9" alias="/gear/gear[1]/rollspeed-ms"/>
<float n="10" alias="/gear/gear[2]/compression-norm"/>
<float n="11" alias="/gear/gear[2]/rollspeed-ms"/>
<float n="12" alias="/gear/gear[3]/compression-norm"/>
<float n="13" alias="/gear/gear[3]/rollspeed-ms"/>
</generic>
</multiplay>
</sim>