<?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>
			<motorStart file="Zvuk/TatraS.wav" volumeScale="0.9" />
			<motorStop file="Zvuk/TatraS2.wav" volumeScale="0.9" />
			<!--motor idle -->
			<motor file="Zvuk/TatraV.wav" volumeScale="0.9" >
				<volume indoor="1.5" outdoor="1.5" >
					<modifier type="SPEED" value="0" modifiedValue="1" />
					<modifier type="SPEED" value="10" modifiedValue="0.8" />
            
					<modifier type="MOTOR_RPM" value="0.05" modifiedValue="1" />
					<modifier type="MOTOR_RPM" value="0.15" modifiedValue="0" />
				</volume>
				<pitch indoor="1.0" outdoor="1.0" >
					<modifier type="MOTOR_RPM" value="0.05" modifiedValue="1.00" />
					<modifier type="MOTOR_RPM" value="0.15" modifiedValue="1.1" />
				</pitch>
				<lowpassGain indoor="0.8" outdoor="1.0" />
			</motor>
			
			<motor file="Zvuk/TatraJ1.wav" volumeScale="0.9" >
				<volume indoor="3.5" outdoor="4.5" >
					<modifier type="MOTOR_RPM" value="0" modifiedValue="0.0" />
					<modifier type="MOTOR_RPM" value="0.02" modifiedValue="0.05" />
					<modifier type="MOTOR_RPM" value="0.2" modifiedValue="0.4" />
					<modifier type="MOTOR_LOAD" value="0.2" modifiedValue="0.8" />
					<modifier type="MOTOR_LOAD" value="0.7" modifiedValue="0.3" />
				</volume>
				<pitch indoor="1.0" outdoor="1.0" >
					<modifier type="MOTOR_RPM" value="0.02" modifiedValue="0.75" />
					<modifier type="MOTOR_RPM" value="1" modifiedValue="1.0" />
				</pitch>
				<lowpassGain indoor="0.5" outdoor="0.65" />
			</motor>
			
			<motor file="Zvuk/TatraJ.wav" volumeScale="0.9">
				<volume indoor="3.4" outdoor="4.6" >
					<modifier type="MOTOR_RPM" value="0.02" modifiedValue="0" />
					<modifier type="MOTOR_RPM" value="0.15" modifiedValue="1" />
					<modifier type="ACCELERATE" value="0" modifiedValue="0.5" />
					<modifier type="ACCELERATE" value="1" modifiedValue="1.0" />
					<modifier type="CRUISECONTROL" value="0" modifiedValue="1.0" />
					<modifier type="CRUISECONTROL" value="1" modifiedValue="2.0" />
					<modifier type="MOTOR_LOAD" value="0.15" modifiedValue="0.3" />
					<modifier type="MOTOR_LOAD" value="0.7" modifiedValue="0.8" />
				</volume>
				<pitch indoor="1.0" outdoor="1.0" >
					<modifier type="MOTOR_RPM" value="0.02" modifiedValue="0.80" />
					<modifier type="MOTOR_RPM" value="1" modifiedValue="1.25" />
				</pitch>
				<lowpassGain indoor="0.5" outdoor="0.65" />
			</motor>
			
			<motor template="indoorCabinRumble" volumeScale="16" pitchScale="1.1" linkNodeOffset="1 2 2.8"/>
            <gearbox template="transmissionLarge" file="$data/sounds/vehicles/transmission/truckTransmissionLoop.wav" pitchScale="0.7" volumeScale="0.1">
				<!--<volume indoor="1.2" outdoor="1.5" >
                    <modifier type="SPEED" value="4.0" modifiedValue="0.0" />
                    <modifier type="SPEED" value="30.0" modifiedValue="1.0" />
                    <modifier type="SPEED" value="60.0" modifiedValue="1.0" />
                    
					<modifier type="MOTOR_LOAD" value="-1.00" modifiedValue="1.0" />
                    <modifier type="MOTOR_LOAD" value="0.00" modifiedValue="1.0" />
                    <modifier type="MOTOR_LOAD" value="0.20" modifiedValue="1.0" />
                    <modifier type="MOTOR_LOAD" value="0.45" modifiedValue="2.0" />
                    <modifier type="MOTOR_LOAD" value="0.80" modifiedValue="1.0" />
                    

                    <modifier type="DRIVING_DIRECTION" value="-1.0" modifiedValue="1.5" />
                    <modifier type="DRIVING_DIRECTION" value="0.00" modifiedValue="0.0" />
                    <modifier type="DRIVING_DIRECTION" value="1.00" modifiedValue="1.0" />
                </volume>
                <pitch indoor="1.80" outdoor="1.77">
                    <modifier type="SPEED" value="0.0" modifiedValue="0.3"/>
                    <modifier type="SPEED" value="60.0" modifiedValue="0.8"/>
                    
					<modifier type="SUSPENSION" value="-1.0" modifiedValue="0.9" />
                    <modifier type="SUSPENSION" value="-0.5" modifiedValue="0.95" />
                    <modifier type="SUSPENSION" value="0.0" modifiedValue="1.0" />
                    <modifier type="SUSPENSION" value="0.5" modifiedValue="1.05" />
                    
					<modifier type="DRIVING_DIRECTION" value="-1.0" modifiedValue="1.8" />
                    <modifier type="DRIVING_DIRECTION" value="0.00" modifiedValue="1.0" />
                    <modifier type="DRIVING_DIRECTION" value="1.00" modifiedValue="1.0" />
                </pitch>-->

                <lowpassGain indoor="0.3" outdoor="1.0" />
                <lowpassCutoffFrequency indoor="700" outdoor="20000.0" />
                <lowpassResonance indoor="1.0" outdoor="1.0"/> 
            </gearbox>
			
			<compressedAir template="compressedAir" file="Zvuk/TatraB.wav" />
            <airCompressorRun template="brakeCompressorLarge" />
            <airCompressorStop template="compressedAir"/>
            <airRelease template="truckBrakeRegulatorValve" />
            <reverseDrive template="reverseBeep02" />
		</sounds>
	</motorized>
	
	<enterable>
        <sounds>
            <rain template="rainInVehicle" linkNodeOffset="0.7 2 2.5">
                <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" linkNodeOffset="0.7 2 2.5" 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>
        <attacherJointConfigurations>
            <attacherJointConfiguration>
                <attacherJoint>
                    <attachSound template="truckAttach" linkNode="0>" />
                    <detachSound template="truckDetach" linkNode="0>" />
                </attacherJoint>
            </attacherJointConfiguration>
        </attacherJointConfigurations>
    </attacherJoints>
    
	<drivable>
        <sounds>
            <waterSplash template="waterSplash01" />
        </sounds>
    </drivable>

    <honk>
        <sound template="honkTruck" volumeScale="5" linkNode="0>" />
    </honk>
</sounds>
