Sounds: Added horn, increased engine sound

This commit is contained in:
Sidi Liang 2019-07-26 20:19:03 +08:00
parent ad494138e9
commit f0305da4bb
4 changed files with 37 additions and 1 deletions

View File

@ -23,6 +23,8 @@ var liveryFuse_update = {
aircraft.livery.init("Aircraft/followme_e-tron/Models/Messages");
liveryFuse.init("Aircraft/followme_e-tron/Models/Texture");
props.getNode("/",1).setValue("/systems/horn",0);
var frontleft_door = aircraft.door.new("/controls/doors/frontleft", 1);
var frontright_door = aircraft.door.new("/controls/doors/frontright", 1);
var rearleft_door = aircraft.door.new("/controls/doors/rearleft", 1);

BIN
Sounds/horn.wav Normal file

Binary file not shown.

View File

@ -11,7 +11,7 @@
<property>/velocities/airspeed-kt</property>
<volume>
<property>/velocities/airspeed-kt</property>
<factor>0.001</factor>
<factor>0.01</factor>
<min>0.0</min>
<max>0.0</max>
</volume>
@ -37,6 +37,23 @@
<factor>5</factor>
</volume>
</safety>
<horn>
<name>horn</name>
<mode>looped</mode>
<path>Aircraft/followme_e-tron/Sounds/horn.wav</path>
<condition>
<equals>
<property>/systems/horn</property>
<value>1</value>
</equals>
</condition>
<volume>
<property>/systems/horn</property>
<factor>5</factor>
</volume>
</horn>
</fx>

View File

@ -288,6 +288,23 @@
</binding>
</mod-up>
</key>
<key n="32">
<name>SPACE</name>
<desc>horn</desc>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>/systems/horn</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/systems/horn</property>
<value>0</value>
</binding>
</mod-up>
</key>
</keyboard>
</input>