Merge pull request #20 from Rudolf339/master

Use generic int instead of bool for firing
This commit is contained in:
Nikolai V. Chr 2021-04-16 12:34:10 +02:00 committed by GitHub
commit 709fc05fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
<object-name>muzzle_UR</object-name> <object-name>muzzle_UR</object-name>
<condition> <condition>
<property>/sim/rendering/shaders/skydome</property><!-- als --> <property>/sim/rendering/shaders/skydome</property><!-- als -->
<property>sim/multiplay/generic/bool[0]</property><!-- gun firing --> <property>sim/multiplay/generic/int[1]</property><!-- gun firing -->
</condition> </condition>
</animation> </animation>

View File

@ -109,11 +109,11 @@
<multiplay> <multiplay>
<generic> <generic>
<int n="0" type="int">0</int> <int n="0" type="int">0</int>
<int n="1" type="int" alias="/controls/armament/trigger"/>
<float n="0" type="double">0</float> <!-- Turret azimuth --> <float n="0" type="double">0</float> <!-- Turret azimuth -->
<float n="1" type="double">0</float> <!-- gun elevation --> <float n="1" type="double">0</float> <!-- gun elevation -->
<float n="2" type="double">0</float> <!-- radar azimuth --> <float n="2" type="double">0</float> <!-- radar azimuth -->
<float n="3" type="double">0</float> <!-- radar elevation --> <float n="3" type="double">0</float> <!-- radar elevation -->
<bool n="0" type="bool" alias="/controls/armament/trigger"/>
</generic> </generic>
</multiplay> </multiplay>