<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="Master20">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>Renault Master III Pompier VTU</name>
        <specs>
            <power>140</power>
            <maxSpeed>130</maxSpeed>
        </specs>
        <functions>
            <function>$l10n_function_car</function>
        </functions>
        <image>store_Master_20.dds</image>
        <price>34610</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>RENAULTCAR</brand>
        <category>cars</category>
        <vertexBufferMemoryUsage>1484212</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>360324</indexBufferMemoryUsage>
        <textureMemoryUsage>14330864</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_car</typeDesc>
        <filename>Renault_Master_2020.i3d</filename>
	    <sounds filename="$data/vehicles/skoda/kodiaq/sounds/kodiaq.xml"/>
        <size width="2.5" length="5"/>
        <components count="1">
            <component centerOfMass="0 0.75 0.2" solverIterationCount="10" mass="2282" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="CAR"/>
        <mapHotspot type="CAR"/>
    </base>
	
    <wheels>
        <wheelConfigurations>
            <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
                <wheels autoRotateBackSpeed="2.5">
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.5" repr="wheelFrontLeftRot" driveNode="wheelFrontLeft" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.28" spring="6" damper="2" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="1" restLoad="0.5" repr="wheelFrontRightRot" driveNode="wheelFrontRight" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.28" spring="6" damper="2" frictionScale="2.5" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.7" repr="wheelBackLeft" driveNode="wheelBackLeft_Rot" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.32" spring="7" damper="3" frictionScale="2.4" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                    <wheel hasParticles="true" hasTireTracks="true">
                        <physics tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.7" repr="wheelBackRight" driveNode="wheelBackRight_Rot" radius="0.35" width="0.27" forcePointRatio="0.5" initialCompression="25" suspTravel="0.32" spring="7" damper="3" frictionScale="2.4" />
                        <tire tireTrackAtlasIndex="1"/>
                    </wheel>
                </wheels>
            </wheelConfiguration>
        </wheelConfigurations>
		
        <ackermannSteeringConfigurations>
            <ackermannSteering rotSpeed="45" rotMax="45" rotCenterWheel1="3" rotCenterWheel2="4"/>
        </ackermannSteeringConfigurations>
    </wheels>
	
	<licensePlates>
        <licensePlate node="0>10|0" position="FRONT" preferedType="ELONGATED" placementArea="0.07 0.27 0.17 0.27"/>
        <licensePlate node="0>10|1" position="BACK" preferedType="ELONGATED" placementArea="0.07 0.27 0.17 0.27"/>
    </licensePlates>
	
    <lights>
        <states>
            <state lightTypes="1"/>
            <state lightTypes="1 2"/>
            <state lightTypes="1 2 3"/>
        </states>

        <realLights>
            <low>
                <light node="light_Lowbeam" lightTypes="1"/>
                <light node="light_Back" lightTypes="1"/>
                <light node="light_Fog" lightTypes="3"/>
				<light node="HighBeam" lightTypes="2"/>
            </low>
            <high>
                <light node="light_Lowbeam" lightTypes="1"/>
                <light node="light_Back" lightTypes="1"/>
                <light node="light_Fog" lightTypes="2"/>
				<light node="HighBeam" lightTypes="1"/>
                <brakeLight node="light_Brake"/>
                <turnLightLeft node="light_Turn_Left"/>
                <turnLightRight node="light_Turn_Right"/>
                <reverseLight node="light_Reverse"/>
            </high>
        </realLights>
		
        <defaultLights>
		    <defaultLight shaderNode="0>1|0|0" intensity="50" lightTypes="1"/>
            <defaultLight shaderNode="LowBeam" intensity="50" lightTypes="1"/>
            <defaultLight shaderNode="Fog" intensity="50" lightTypes="3"/>
            <defaultLight shaderNode="Back" intensity="50" lightTypes="1"/>
			<defaultLight shaderNode="HighBeam" intensity="50" lightTypes="2"/>
        </defaultLights>
		
        <brakeLights>
			<brakeLight shaderNode="Brake" intensity="50"/>
        </brakeLights>
		
        <reverseLights>
            <reverseLight shaderNode="Reverse" intensity="110"/>
        </reverseLights>
		
        <turnLights>
			<turnLightLeft shaderNode="TLF" intensity="110"/>
			<turnLightRight shaderNode="TRF" intensity="110"/>
        </turnLights>
		
		<beaconLights>
           <beaconLight node="0>9|0|9" filename="LEDbeacon/LEDbeacon_02.xml" mountType="SURFACE" variationName="ROTATE"/>
		   <beaconLight node="0>9|0|10" filename="LEDbeacon/LEDbeacon_02.xml" mountType="SURFACE" variationName="ROTATE"/>
		   <beaconLight node="0>9|0|11" filename="LEDbeacon/FlashLED.xml" mountType="SURFACE" variationName="BLINK"/>
		   <beaconLight node="0>9|0|12" filename="LEDbeacon/FlashLED02.xml" mountType="SURFACE" variationName="BLINK"/>
		   
		   <beaconLight realLight="0>9|0|13|1|1">
				<staticLight node="0>9|0|13|1|0" 	intensity="200" multiBlink="true" multiBlinkParameters="2 2 40 0"/>
			</beaconLight>
		    <beaconLight realLight="0>9|0|14|1|1">
				<staticLight node="0>9|0|14|1|0" 	intensity="200" multiBlink="true" multiBlinkParameters="2 2 40 0"/>
			</beaconLight>
		</beaconLights>	
    </lights>

    <dashboard>
        <groups>
            <group name="MOTOR_STARTING" isMotorStarting="true"/>
            <group name="MOTOR_ACTIVE"   isMotorStarting="false" isMotorRunning="true"/>
        </groups>
        <default>
            <dashboard displayType="EMITTER" node="DRL"        idleValue="0"  intensity="15"  groups="MOTOR_ACTIVE" />
        </default>
    </dashboard>

    <enterable isTabbable="true" >
        <enterReferenceNode node="Renault_Master_2020"/>
        <exitPoint node="exitPoint"/>

        <cameras count="2">
            <camera node="outdoorCamera1" rotatable="true" rotateNode="outdoorCameraTarget" limit="true" useWorldXZRotation="true" rotMinX="-1.4" rotMaxX="1" transMin="3.5" transMax="40" translation="0 0 5.75" rotation="-10 180 0">
                <raycastNode node="cameraRaycastNode1"/>
                <raycastNode node="cameraRaycastNode2"/>
            </camera>
            <camera node="indoorCamera1" rotatable="true" limit="true" rotMinX="-1.1" rotMaxX="0.4" transMin="0" transMax="0" useMirror="true" isInside="true" positionSmoothingParameter="0"  shadowFocusBox="shadowFocusBox"/>
        </cameras>

        <mirrors>
            <mirror node="mirror01" prio="1" />
            <mirror node="mirror02" prio="1" />
            <mirror node="mirror03" prio="1" />
        </mirrors>

        <characterNode node="player_skin" cameraMinDistance="1.5" spineRotation="-90 0 90" >
            <target ikChain="rightFoot" targetNode="player_rightFoot" />
            <target ikChain="leftFoot"  targetNode="player_leftFoot" />
            <target ikChain="rightArm"  targetNode="rightArm" poseId="wideFingers"/>
            <target ikChain="leftArm"   targetNode="leftArm" poseId="wideFingers"/>
        </characterNode>
		
		<characterTargetNodeModifier node="0>4|1" transitionTime="0.1" >
            <state node="0>15|0|0|0" referenceNode="0>15|0|0"/>
            <state node="0>15|0|1|0" referenceNode="0>15|0|1"/>
        </characterTargetNodeModifier>
    </enterable>
	
	<animations>
        <animation name="rpmDisplay">
            <part node="0>16|0|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -90" />
        </animation>
        <animation name="speedDisplay">
            <part node="0>16|1|0" startTime="0" endTime="1" startRot="0 0 0" endRot="0 0 -157"/>
        </animation>
		<animation name="2ton">
            <part node="0>12" startTime="0" endTime="0.01" startTrans="0 -5000 0" endTrans="0 0 0"/>
        </animation>
		<animation name="Light">
            <part node="0>9|0|14|1" startTime="0" endTime="0.01" startTrans="0 -5000 0" endTrans="0 0 0"/>
			<part node="0>9|0|13|1" startTime="0" endTime="0.01" startTrans="0 -5000 0" endTrans="0 0 0"/>
        </animation>
    </animations>
	
	<foldable>
        <foldingConfigurations>
            <foldingConfiguration>
                <foldingParts>
                    <foldingPart animationName="Light" speedScale="1"/>
                </foldingParts>
            </foldingConfiguration>
        </foldingConfigurations>
    </foldable>
	<cover>
		<coverConfigurations>
			<coverConfiguration>
				<cover openAnimation="2ton" 		fillUnitIndices="1"/>
			</coverConfiguration>
		</coverConfigurations>
	</cover>

    <drivable>
        <sounds>
            <waterSplash template="WATER_SPLASH_01" />
        </sounds>
        <steeringWheel node="steeringWheel" indoorRotation="540" outdoorRotation="60" />
    </drivable>
	
    <foliageBending>
        <bendingNode minX="-1.15" maxX="1.15" minZ="-2.8" maxZ="2.8" yOffset="0.05"/>
    </foliageBending>

    <fillUnit>
        <fillUnitConfigurations>
			<fillUnitConfiguration name="Master" price="0" >
                <fillUnits>
                    <fillUnit unitTextOverride="$l10n_unit_literShort" showOnHud="false" showInShop="false" fillTypes="diesel" capacity="400">
                    </fillUnit>
                </fillUnits>
            </fillUnitConfiguration>
        </fillUnitConfigurations>
    </fillUnit>

    <motorized>
        <consumerConfigurations>
            <consumerConfiguration>
                <consumer fillUnitIndex="1" usage="20" fillType="diesel" /> <!-- usage is per hour at max load and max rpm -->
            </consumerConfiguration>
        </consumerConfigurations>

        <differentialConfigurations>
            <differentialConfiguration>
                <differentials>
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="1" wheelIndex2="2" /> <!-- front left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" wheelIndex1="3" wheelIndex2="4" /> <!-- back left-right -->
                    <differential torqueRatio="0.5" maxSpeedRatio="1.8" differentialIndex1="1" differentialIndex2="2" /> <!-- front-back -->
                </differentials>
            </differentialConfiguration>
        </differentialConfigurations>

        <motorConfigurations>
            <motorConfiguration name="Master dCi 135" hp="135" price="4030">
                <motor torqueScale="100000" minRpm="1000" maxRpm="4800" maxForwardSpeed="180" maxBackwardSpeed="45" brakeForce="2" lowBrakeForceScale="0.15" rotInertia="0.0001">
                    <torque rpm="1000" torque="7500"/>
                    <torque rpm="2400" torque="8000"/>
                    <torque rpm="3480" torque="8500"/>
                    <torque rpm="4560" torque="9000"/>
                    <torque rpm="5280" torque="9500"/>
                    <torque rpm="6000" torque="10000"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="150" minBackwardGearRatio="40" maxBackwardGearRatio="200"/>
            </motorConfiguration>
            <motorConfiguration name="Master Energy dCi 150" hp="150" price="5306">
                <motor torqueScale="100000" minRpm="1000" maxRpm="4800" maxForwardSpeed="180" maxBackwardSpeed="45" brakeForce="2" lowBrakeForceScale="0.15" rotInertia="0.0001">
                    <torque rpm="1000" torque="8000"/>
                    <torque rpm="2400" torque="8500"/>
                    <torque rpm="3480" torque="9000"/>
                    <torque rpm="4560" torque="9500"/>
                    <torque rpm="5280" torque="10000"/>
                    <torque rpm="6000" torque="10000"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="175" minBackwardGearRatio="40" maxBackwardGearRatio="200"/>
            </motorConfiguration>
            <motorConfiguration name="Master Energy dCi 180" hp="180" price="6350">
                <motor torqueScale="100000" minRpm="1000" maxRpm="4800" maxForwardSpeed="180" maxBackwardSpeed="45" brakeForce="2" lowBrakeForceScale="0.15" rotInertia="0.0001">
                    <torque rpm="1000" torque="8500"/>
                    <torque rpm="2400" torque="9000"/>
                    <torque rpm="3480" torque="9500"/>
                    <torque rpm="4560" torque="10000"/>
                    <torque rpm="5280" torque="10000"/>
                    <torque rpm="6000" torque="10000"/>
                </motor>
                <transmission minForwardGearRatio="10" maxForwardGearRatio="200" minBackwardGearRatio="40" maxBackwardGearRatio="200"/>
            </motorConfiguration>
        </motorConfigurations>

        <exhaustEffects>
            <exhaustEffect node="exhaustParticleLeft" filename="$data/particleSystems/shared/exhaust.i3d" minRpmColor="0.9 0.9 0.9 0.1" maxRpmColor="0.9 0.9 0.9 0.4" minRpmScale="0.02" maxRpmScale="0.25" />
        </exhaustEffects>
		
		<dashboards>
            <dashboard displayType="ANIMATION" valueType="rpm"   animName="rpmDisplay"   minValueAnim="0" maxValueAnim="2500" groups="MOTOR_ACTIVE"/>
            <dashboard displayType="ANIMATION" valueType="speed" animName="speedDisplay" minValueAnim="0" maxValueAnim="130"  groups="MOTOR_ACTIVE"/>
        </dashboards>
    </motorized>
	
	<attacherJoints comboDuration="2">
		<attacherJointConfigurations>
			<attacherJointConfiguration name="$l10n_configuration_valueNo" price="0">
			    <objectChange node="0>11" visibilityActive="false" />
			</attacherJointConfiguration>
			<attacherJointConfiguration name="$l10n_configuration_valueYes" price="500">
				<attacherJoint node="0>11|0" jointType="trailer" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
					<schema position="1 0" rotation="0" invertX="false"/>
					<attachSound template="attach01" linkNode="0>" />
				</attacherJoint>
				<attacherJoint node="0>11|2" jointType="trailerCar" lowerRotLimit="10 70 50" upperRotationOffset="0" allowsJointLimitMovement="false" canTurnOnImplement="false" comboTime="1">
					<schema position="1 0" rotation="0" invertX="false"/>
					<attachSound template="attach01" linkNode="0>" />
				</attacherJoint>
				<objectChange node="0>11" visibilityActive="true" />
			</attacherJointConfiguration>
		</attacherJointConfigurations>
    </attacherJoints>
	
	<connectionHoses>
        <target attacherJointIndices="1 2" type="electric" node="0>11|1" socket="electric"/>
    </connectionHoses>

    <suspensions>
        <suspension useCharacterTorso="true" weight="90" minRotation="0 -5 -5" maxRotation="0 5 5" suspensionParametersY="7 1" suspensionParametersZ="7 1" />
    </suspensions>

    <ai>
    	<agent width="2.05" length="5.5" height="1.85" lengthOffset="1.35" frontOffset="3.09"/>
        <collisionTrigger node="aiCollisionTrigger" width="2.4" height="1.8"/>
    </ai>

	<baseColorConfigurations useDefaultColors="true" title="Color">
        <material materialSlotName="Base_Color"/>
    </baseColorConfigurations>

    <wearable wearDuration="480" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="90" washDuration="1" workMultiplier="3" fieldMultiplier="2"/>
		
    <i3dMappings>
        <i3dMapping id="Renault_Master_2020" node="0>" />
        <i3dMapping id="wheels" node="0>0" />
        <i3dMapping id="wheelFrontLeftRot" node="0>0|0" />
        <i3dMapping id="wheelFrontLeft" node="0>0|0|0" />
        <i3dMapping id="wheelFrontRightRot" node="0>0|1" />
        <i3dMapping id="wheelFrontRight" node="0>0|1|0" />
        <i3dMapping id="wheelBackLeft" node="0>0|2" />
        <i3dMapping id="wheelBackLeft_Rot" node="0>0|2|0" />
        <i3dMapping id="wheelBackRight" node="0>0|3" />
        <i3dMapping id="wheelBackRight_Rot" node="0>0|3|0" />	
		
        <i3dMapping id="lights" node="0>1" />
		
        <i3dMapping id="DRL" node="0>1|0|0" />
        <i3dMapping id="LowBeam" node="0>1|0|1" />
        <i3dMapping id="HighBeam" node="0>1|0|2" />
        <i3dMapping id="Back" node="0>1|0|3" />
        <i3dMapping id="Brake" node="0>1|0|4" />
        <i3dMapping id="TLF" node="0>1|0|5" />
        <i3dMapping id="TRF" node="0>1|0|6" />
        <i3dMapping id="Reverse" node="0>1|0|7" />
        <i3dMapping id="Fog" node="0>1|0|8" />
        <i3dMapping id="Fogback" node="0>1|0|9" />
		
        <i3dMapping id="light_Lowbeam" node="0>1|1" />
        <i3dMapping id="light_Back" node="0>1|2" />
        <i3dMapping id="light_Brake" node="0>1|3" />
        <i3dMapping id="light_Turn_Left" node="0>1|4" />
        <i3dMapping id="light_Turn_Right" node="0>1|5" />
        <i3dMapping id="light_Reverse" node="0>1|6" />
        <i3dMapping id="light_Fog" node="0>1|7" />
		
        <i3dMapping id="outdoorCameraTarget" node="0>2|0" />
        <i3dMapping id="outdoorCamera1" node="0>2|0|0" />
        <i3dMapping id="indoorCamera1" node="0>2|1" />
        <i3dMapping id="cameraRaycastNode1" node="0>2|2" />
        <i3dMapping id="cameraRaycastNode2" node="0>2|3" />
        <i3dMapping id="cameraRaycastNode3" node="0>2|4" />
        <i3dMapping id="shadowFocusBox" node="0>2|5" />
        <i3dMapping id="steeringWheel" node="0>3|0" />
        <i3dMapping id="leftArm" node="0>3|0|0" />
        <i3dMapping id="rightArm" node="0>3|0|1" />
        <i3dMapping id="player_skin" node="0>4|0" />
        <i3dMapping id="player_rightFoot" node="0>4|1" />
        <i3dMapping id="player_leftFoot" node="0>4|2" />
        <i3dMapping id="exitPoint" node="0>5" />
        <i3dMapping id="mirror01" node="0>6|0" />
        <i3dMapping id="mirror02" node="0>6|1" />
        <i3dMapping id="mirror03" node="0>6|2" />
        <i3dMapping id="exhaustParticleLeft" node="0>7" />
        <i3dMapping id="aiCollisionTrigger" node="0>8" />
		
        <i3dMapping id="Body_Zivil" node="0>10|0" />
        <i3dMapping id="Plastic_Grill" node="0>10|0|1" />
        <i3dMapping id="Plastic_Grill_Flasher" node="0>10|0|2" />
        <i3dMapping id="Body_Master_vis" node="0>10|0|0" />
        <i3dMapping id="Depannage" node="0>10|1" />
		
		<i3dMapping id="Attelage" node="0>13" />
		<i3dMapping id="trailerAttacherJointBack" node="0>13|4" />
		<i3dMapping id="electricBack" node="0>13|5" />
		
    </i3dMappings>
</vehicle>
