<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<sounds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../shared/xml/schema/vehicle_sounds.xsd">
    <motorized>
        <sounds>
        
            <!-- Start-Sound -->
            <motorStart file="sounds/u1600_start.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="0.748" outdoor="0.85" />
                <pitch indoor="1.0" outdoor="1.0" />
                <lowpassGain indoor="0.5" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </motorStart>

            <!-- Stop-Sound -->
            <motorStop file="sounds/u1600_stop.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="0.748" outdoor="0.85" />
                <pitch indoor="1.0" outdoor="1.0" />
                <lowpassGain indoor="0.5" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </motorStop>

            <!-- Idle-Sound -->
            <motor file="sounds/u1600_idle_loop.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="0.748" outdoor="0.85" >
                    <modifier type="MOTOR_RPM" value="0.00" modifiedValue="1.00" />
                    <modifier type="MOTOR_RPM" value="0.54" modifiedValue="0.00" />
                    <!--modifier type="ACCELERATE" value="0.0" modifiedValue="1.0" />
                        <modifier type="ACCELERATE" value="0.6" modifiedValue="1.5" />
                        <modifier type="CRUISECONTROL" value="0" modifiedValue="1.0" />
                    <modifier type="CRUISECONTROL" value="0.6" modifiedValue="1.5" /-->
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="MOTOR_RPM" value="0.00" modifiedValue="1.00" />
                    <modifier type="MOTOR_RPM" value="0.54" modifiedValue="1.60" />
                </pitch>
                <lowpassGain indoor="0.5" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </motor>
            
            <!-- Run-Sound -->
            <motor file="sounds/u1600_run_loop.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="0.715" outdoor="0.81" >
                    <modifier type="MOTOR_RPM" value="0.00" modifiedValue="0.00" />
                    <modifier type="MOTOR_RPM" value="0.40" modifiedValue="1.00" />
                    <modifier type="SPEED" value="70.0" modifiedValue="1.0" />
                    <modifier type="SPEED" value="80.0" modifiedValue="0.99" />
                    <modifier type="MOTOR_LOAD" value="0.25" modifiedValue="1.00" />
                    <modifier type="MOTOR_LOAD" value="1.0" modifiedValue="0.50" />
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="MOTOR_RPM" value="0.25" modifiedValue="0.70" />
                    <modifier type="MOTOR_RPM" value="1.00" modifiedValue="1.05" />
                    
                    <modifier type="SUSPENSION" value="-1.0" modifiedValue="0.90" />
                    <modifier type="SUSPENSION" value="-0.03" modifiedValue="0.95" />
                    <modifier type="SUSPENSION" value="0" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="0.05" modifiedValue="1.02" />
                    <modifier type="SUSPENSION" value="1.0" modifiedValue="1.05" />    
                </pitch>
                <lowpassGain indoor="0.5" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </motor>

            <!-- Load sound -->
            <motor file="sounds/u1600_load_loop.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="1.535" outdoor="1.87" >
                    <modifier type="MOTOR_RPM" value="0.0" modifiedValue="0.0" />
                    <modifier type="MOTOR_RPM" value="0.4" modifiedValue="1.0" />
                    <modifier type="MOTOR_LOAD" value="0.15" modifiedValue="0.3" />
                    <modifier type="MOTOR_LOAD" value="0.5" modifiedValue="0.5" />
                    <modifier type="MOTOR_LOAD" value="1.0" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="-0.02" modifiedValue="1.2" />
                    <modifier type="SUSPENSION" value="0" modifiedValue="1.0" />
                    <modifier type="SPEED" value="20.0" modifiedValue="1.0" />
                    <modifier type="SPEED" value="77.0" modifiedValue="1.15" />
                    <modifier type="SPEED" value="80.0" modifiedValue="0.7" />
                </volume>
                <pitch indoor="1.03" outdoor="1.03" >
                    <modifier type="MOTOR_RPM" value="0.25" modifiedValue="0.72" />
                    <modifier type="MOTOR_RPM" value="1.00" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="-1.0" modifiedValue="0.90" />
                    <modifier type="SUSPENSION" value="-0.03" modifiedValue="0.95" />
                    <modifier type="SUSPENSION" value="0" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="0.05" modifiedValue="1.02" />
                    <modifier type="SUSPENSION" value="1.0" modifiedValue="1.05" />                
                </pitch>
                <lowpassGain indoor="1.0" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </motor>
                        
            <!--- Gearbox -->
            <gearbox file="sounds/u1600_transmission_loop.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="1.2" outdoor="1.2" >
                    <modifier type="SPEED" value="16.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="80.0" modifiedValue="1.0" />
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="SPEED" value="16.0" modifiedValue="0.5" />
                    <modifier type="SPEED" value="80.0" modifiedValue="1.0" />
                </pitch>
                <lowpassGain indoor="0.65" outdoor="0.65" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </gearbox>

            <!-- Tire sound (can be turned off by the tireSound script, must be in <retarder>) -->
            <retarder file="sounds/u1600_tires_loop.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="0.95" outdoor="1.18" >
                    <modifier type="SPEED" value="65.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="80.0" modifiedValue="1.0" />
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="SPEED" value="0.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="80.0" modifiedValue="1.5" />
                </pitch>
                <lowpassGain indoor="1.0" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </retarder>
            
            <!-- The "real" Retarder must be in <motor> -->
            <motor file="sounds/u1600_retarder_loop.wav" linkNode="0>6|1|0|0" innerRadius="8.0" outerRadius="70.0" >
                <volume indoor="0.95" outdoor="0.95" >
                    <modifier type="SPEED" value="0.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="80.0" modifiedValue="1.0" />
                    <modifier type="ACCELERATE" value="0" modifiedValue="1.0" />
                    <modifier type="ACCELERATE" value="0.01" modifiedValue="0.0" />
                    <modifier type="CRUISECONTROL" value="0" modifiedValue="1.0" />
                    <modifier type="CRUISECONTROL" value="0.01" modifiedValue="0.0" />
                </volume>
                <pitch indoor="1.0" outdoor="1.0" >
                    <modifier type="SPEED" value="0.0" modifiedValue="0.7" />
                    <modifier type="SPEED" value="80.0" modifiedValue="1.5" />
                </pitch>
                <lowpassGain indoor="0.8" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </motor>
            
            <motor template="indoorCabinRumble" volumeScale="12" pitchScale="1.2" />
            
            <!-- Brake -->
            <!-- <compressedAir template="compressedAir" volumeScale="0.8"/> -->
            <compressedAir file="$data/sounds/vehicles/brake/vehBrakeCompressedAir_01.wav" innerRadius="8.0" outerRadius="70.0" volumeScale="0.9" isLocalSound="true">
                <volume indoor="0.75" outdoor="1.00">
                    <modifier type="BRAKE_TIME" value="0.0" modifiedValue="0.0" />
                    <modifier type="BRAKE_TIME" value="1.0" modifiedValue="1.0" />
                </volume>
                <lowpassGain indoor="0.70" outdoor="1.0" />
                <sourceRandomization file="$data/sounds/vehicles/brake/vehBrakeCompressedAir_02.wav"/>
                <sourceRandomization file="$data/sounds/vehicles/brake/vehBrakeCompressedAir_03.wav"/>
                <randomization minVolume="-0.2" maxVolume="0.0" minPitch="-0.1" maxPitch="0.1" isInside="false" isOutside="true"/>
            </compressedAir>
            
            <airCompressorRun template="brakeCompressorMedium" volumeScale="0.8"/>
            <airCompressorStop template="compressedAir" volumeScale="0.01"/>
            <gearLeverStart template="gearDisengaged"/>
            <gearLeverEnd template="gearEngaged"/>
        </sounds>
    </motorized>

    <enterable>
        <sounds>
            <rain template="rainInVehicle" linkNode="0>6|1|0|0">
                <loopSynthesisRpm>
                    <modifier type="SPEED" value="0.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="42.0" modifiedValue="1" />
                </loopSynthesisRpm>
                <volume>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="42" modifiedValue="1.2" />
                </volume>

                <pitch>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="42" modifiedValue="1.0" />
                </pitch>
            </rain>
            <hail template="hailInVehicle" linkNode="0>6|1|0|0" volumeScale="1.5">
                <loopSynthesisRpm>
                    <modifier type="SPEED" value="0.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="60.0" modifiedValue="1" />
                </loopSynthesisRpm>
                <volume>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="60" modifiedValue="1.2" />
                </volume>

                <pitch>
                    <modifier type="SPEED" value="0" modifiedValue="1" />
                    <modifier type="SPEED" value="25" modifiedValue="1" />
                    <modifier type="SPEED" value="60" modifiedValue="1.0" />
                </pitch>
            </hail>
        </sounds>
    </enterable>

    <lights>
        <sounds>
            <toggleLights template="switch01"  />
            <turnLight template="switchTurnlight"  />
        </sounds>
    </lights>

    <attacherJoints>
        <sounds>
            <attach template="attach01" />
            <!-- <hydraulic template="defaultHydraulicSound" /> -->
            <hydraulic template="hydraulicOpen02" file="sounds/u1600_hydraulics_loop.wav" innerRadius="3.0" outerRadius="60.0">
                <volume indoor="0.5" outdoor="1.0"/>
                <pitch indoor="1.0" outdoor="1.0"/>
                <lowpassGain indoor="0.50" outdoor="0.75"/>
                <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/>
            </hydraulic>
        </sounds>
    </attacherJoints>
    
    <drivable>
        <sounds>
            <waterSplash template="waterSplash01" />
        </sounds>
    </drivable>

    <ai>
        <automaticSteering>
            <sounds>
                <engage template="gpsEngageDefault"/>
                <disengage template="gpsDisengageDefault"/>
                <lineEnd template="gpsLineEndDefault"/>
            </sounds>
        </automaticSteering>
    </ai>

    <honk>
        <!-- <sound file="sounds/man_tgs_horn_loop.ogg" innerRadius="30" outerRadius="120.0" fadeOut="0.03"> -->
        <sound file="$data/sounds/vehicles/horn/vehHornManTgsHonk_01.ogg" innerRadius="30" outerRadius="120.0" fadeOut="0.03">
            <volume indoor="0.8" outdoor="1.5" />
            <pitch indoor="1.0" outdoor="1.0" />
            <lowpassGain indoor="0.75" outdoor="1.0" />
            <lowpassCutoffFrequency indoor="2000.0" outdoor="20000.0" />
            <lowpassResonance indoor="1.0" outdoor="1.0"/>
        </sound>
    </honk>

</sounds>
