<?xml version="1.0"?>

<PropertyList>
<sim>

	<description>Follow Me e-tron</description>
	<author>Gijs de Rooy, 李维昊（Weihao Li）, 梁思地（Sidi Liang）, 罗启元（Qiyuan Luo），ValKmjolnir</author>
	<status>early production</status>
    <long-description>
        An electronic, High-Performance version of a follow me car with Chinese characteristics. 
    </long-description>
    
    <gui><style><colors>
        <splash-font>
            <red>1.0</red>  
            <green>1.00</green>
            <blue>1.00</blue>                               
        </splash-font>                                  
        <splash-screen>
            <red>0.117</red>    
            <green>0.19</green>
            <blue>0.227</blue>
        </splash-screen>                                
    </colors></style></gui>
    
        <previews>
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/01.png</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/02.jpg</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/03.jpg</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/04.png</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/05.jpg</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/06.jpg</path>
            </preview>
            
            <preview>
                <type>interior</type>
                <splash type="bool">true</splash>
                <path>Splash/07.jpg</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/08.jpg</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/09.jpg</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/10.jpg</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/11.jpg</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/12.png</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/13.jpg</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/14.jpg</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/15.jpg</path>
            </preview>

            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/16.jpg</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/17.jpg</path>
            </preview>
            
            <preview>
                <type>interior</type>
                <splash type="bool">true</splash>
                <path>Splash/18.jpg</path>
            </preview>
            
            <preview>
                <type>interior</type>
                <splash type="bool">true</splash>
                <path>Splash/19.jpg</path>
            </preview>
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/20.jpg</path>
            </preview>
            
            
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/G4_Tour/0.jpg</path>
            </preview>
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/G4_Tour/1.jpg</path>
            </preview>
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/G4_Tour/2.jpg</path>
            </preview>
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/G4_Tour/4.jpg</path>
            </preview>
            <preview>
                <type>exterior</type>
                <splash type="bool">true</splash>
                <path>Splash/G4_Tour/5.jpg</path>
            </preview>
        </previews>
            
	<rating>
		<FDM type="int">4</FDM>
		<systems type="int">2</systems>
		<cockpit type="int">3</cockpit>
		<model type="int">4</model>
	</rating>

	<tags>
		<tag>groundvehicle</tag>
		<tag>1970s</tag>
		<tag>1980s</tag>
		<tag>1990s</tag>
		<tag>2000s</tag>
		<tag>2010s</tag>
	</tags>
	
	<flight-model>jsb</flight-model>
	<aero>followme_e-tron</aero>

	<model>
		<path>Aircraft/followme_e-tron/Models/followme.xml</path>
		<livery>
			<file type="string"/>
		</livery>
	</model> 
    <sound>
        <path>Aircraft/followme_e-tron/followme-sound.xml</path>
        <switch type = "bool"></switch>
    </sound>
	<view n="/0">
		<internal archive="y">true</internal>
		<config>
			<x-offset-m archive="y" type="double">-0.35</x-offset-m>
			<y-offset-m archive="y" type="double">1.35</y-offset-m>
			<z-offset-m archive="y" type="double">1.88</z-offset-m>
			<pitch-offset-deg>-10.0</pitch-offset-deg>
			<field-of-view>65</field-of-view>
		</config>
	</view>

	<view n="1">
		<config>
			<target-y-offset-m archive="y" type="double">1.6</target-y-offset-m>
		</config>
	</view>
	
	<view n="2">
		<config>
			<target-y-offset-m archive="y" type="double">1.6</target-y-offset-m>
		</config>
	</view>
	
	<view n="3">
		<config>
			<target-y-offset-m archive="y" type="double">1.6</target-y-offset-m>
		</config>
	</view>
	
	<view n="4">
		<config>
			<target-y-offset-m archive="y" type="double">1.6</target-y-offset-m>
		</config>
	</view>
	
	<view n="5">
		<config>
			<target-y-offset-m archive="y" type="double">1.6</target-y-offset-m>
		</config>
	</view>
	
	<view n="6">
		<config>
			<target-y-offset-m archive="y" type="double">1.6</target-y-offset-m>
		</config>
	</view>
	<view n="100">
		<name>Copilot View</name>
        <internal archive="y">true</internal>
        <type>lookfrom</type>
		<config>
            <from-model type="bool">true</from-model>
            <from-model-idx type="int">0</from-model-idx>
            <dynamic-view type="bool">true</dynamic-view>
			<x-offset-m archive="y" type="double">0.35</x-offset-m>
			<y-offset-m archive="y" type="double">1.35</y-offset-m>
			<z-offset-m archive="y" type="double">1.88</z-offset-m>
			<pitch-offset-deg>-10.0</pitch-offset-deg>
			<field-of-view>65</field-of-view>
		</config>
	</view>

	<hud>
		<enable3d>false</enable3d>
	</hud>

	<help>
		<key>
			<name>m</name>
			<desc>Toggle direction</desc>
		</key>
		<key>
			<name>w</name>
			<desc>Full pedal</desc>
		</key>
		<key>
			<name>s</name>
			<desc>Full brake</desc>
		</key>
		<key>
			<name>a</name>
			<desc>Steer left 50%</desc>
		</key>
		<key>
			<name>d</name>
			<desc>Steer right 50%</desc>
		</key>
		<key>
			<name>space</name>
			<desc>Horn</desc>
		</key>
		<key>
			<name>f</name>
			<desc>Toggle false indicator light</desc>
		</key>
		<key>
			<name>[</name>
			<desc>Toggle left indicator light</desc>
		</key>
		<key>
			<name>]</name>
			<desc>Toggle right indicator light</desc>
		</key>
        <key>
			<name>c</name>
			<desc>Toggle auto-pilot system</desc>
		</key>
		<text>
		You can select the message to be displayed on the bar, through the "Follow Me E > Select message" menu.
		</text>
		<text>
		For more options, see "Follow Me E > Show Options" menu.
		</text>
		<text>
            e-tron Brought to you by FGPRC.
		</text>
	</help>
	
	<menubar>
		<default>
			<menu n="10">
				<label>Follow Me E</label>
				<enabled type="bool">true</enabled>	
				<item>
					<label>Show Options</label>
					<binding>
						<command>dialog-show</command>
						<dialog-name>vehicle-dialog</dialog-name>
					</binding>
				</item>	
				<item>
					<label>Battery Management</label>
					<binding>
						<command>dialog-show</command>
						<dialog-name>battery-management</dialog-name>
					</binding>
				</item>	
				<item>
					<label>Select Livery</label>
					<binding>
						<command>nasal</command>
						<script>followme.liveryFuse.dialog.toggle()</script>
					</binding>
				</item>	
				<item>
					<label>Select Message</label>
					<binding>
						<command>nasal</command>
						<script>aircraft.livery.dialog.toggle()</script>
					</binding>
				</item>	
				<item>
					<label>Start Engine</label>
					<binding>
						<command>nasal</command>
						<script>engine.startEngine()</script>
					</binding>
				</item>	
				<item>
					<label>Stop Engine</label>
					<binding>
						<command>nasal</command>
						<script>engine.stopEngine()</script>
					</binding>
				</item>	
		        <item>
		         <label>Select Passenger</label>
		         <binding>
		          <command>nasal</command>
		          <script>
		            dual_control_tools.copilot_dialog.show(aircraft_dual_control.copilot_type);
		           </script>
		          </binding>
		         </item>
			</menu>
		</default>
	</menubar>
    
    <multiplay>
      <generic>
        <int n="0" alias="/sim/model/lights/indicator-left/state"/>
        <int n="1" alias="/sim/model/lights/indicator-right/state"/>
        <int n="2" alias="/systems/horn"/>
        <int n="3" alias="/controls/lighting/headlight"/>
        <int n="4" alias="/controls/gear/brake-left"/>
        <int n="5" alias="/services/service-truck/enable"/>
        
        <float n="0" alias="/controls/doors/rearright/position-norm"/>
        <float n="1" alias="/controls/doors/rearleft/position-norm"/>
        <float n="2" alias="/controls/doors/frontright/position-norm"/>
        <float n="3" alias="/controls/doors/frontleft/position-norm"/>
        
        <float n="4" alias="/gear/gear[0]/steering-norm"/>
        <float n="5" alias="/gear/gear[0]/compression-norm"/>
        <float n="6" alias="/gear/gear[0]/rollspeed-ms"/>
        
        <float n="7" alias="/gear/gear[1]/steering-norm"/>
        <float n="8" alias="/gear/gear[1]/compression-norm"/>
        <float n="9" alias="/gear/gear[1]/rollspeed-ms"/>
        
        <float n="10" alias="/gear/gear[2]/compression-norm"/>
        <float n="11" alias="/gear/gear[2]/rollspeed-ms"/>
        
        <float n="12" alias="/gear/gear[3]/compression-norm"/>
        <float n="13" alias="/gear/gear[3]/rollspeed-ms"/>
        
        <string n="0" alias="/systems/plate"/>
      </generic>
    </multiplay>
</sim>

<engines>
	<engine n="0">
		<rpm type="double">2</rpm>
	</engine>
	<engine n="1">
		<rpm type="double">2</rpm>
	</engine>
</engines>

<controls>
	<flight>
		<aileron alias="/controls/flight/rudder" />
	</flight>
	<lighting>
		<headlight>0</headlight>
		<indicator-left>0</indicator-left>
		<indicator-right>0</indicator-right>
		<warning>1</warning>
	</lighting>
</controls>



<input>
	<keyboard>
		<key n="91"> 
			<name>[</name>
			<desc>Toggle left indicator lights</desc>
			<binding> 
				<command>nasal</command>
                <script>followme.indicatorController.left_indicator_toggle();</script>
			</binding>
		</key>
		<key n="93"> 
			<name>]</name>
			<desc>Toggle right indicator lights</desc>
			<binding> 
				<command>nasal</command>
                <script>followme.indicatorController.right_indicator_toggle();</script>
			</binding>
		</key>
        <key n="102">
            <name>f</name>
            <desc>false-light</desc>
            <repeatable>false</repeatable>
			<binding> 
				<command>nasal</command>
                <script>followme.indicatorController.false_light_toggle();</script>
			</binding>
        </key>
		<key n="109"> 
			<name>m</name>
			<desc>Toggle direction</desc>
			<binding> 
				<command>nasal</command>
				<script>engine.engine_1.toggleDirection();</script>
			</binding>
		</key>
	    <key n="119">
	      <name>w</name>
	      <desc>gas pedal</desc>
	      <repeatable>false</repeatable>
		<binding> 
			<command>property-assign</command>
			<property>/controls/engines/engine/throttle</property>
			<value>1</value>
		</binding>
	      <mod-up>
	  		<binding> 
	  			<command>property-assign</command>
	  			<property>/controls/engines/engine/throttle</property>
	  			<value>0</value>
	  		</binding>
	      </mod-up>
	    </key>
        <key n="115">
            <name>s</name>
            <desc>break</desc>
            <repeatable>false</repeatable>
            <binding>
                <command>property-assign</command>
                <property>/controls/gear/brake-left</property>
                <value>1</value>
            </binding>
            <binding>
                <command>property-assign</command>
                <property>/controls/gear/brake-right</property>
                <value>1</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>/controls/gear/brake-left</property>
                    <value>0</value>
                </binding>
                <binding>
                    <command>property-assign</command>
                    <property>/controls/gear/brake-right</property>
                    <value>0</value>
                </binding>
            </mod-up>
        </key>
        <key n="97">
            <name>a</name>
            <desc>rudder-left</desc>
            <repeatable>false</repeatable>
            <binding>
                <command>property-assign</command>
                <property>/controls/flight/rudder</property>
                <value>-0.5</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>/controls/flight/rudder</property>
                    <value>0</value>
                </binding>
            </mod-up>
        </key>
        <key n="99">
            <name>c</name>
            <desc>toggle_auto_pilot</desc>
            <repeatable>false</repeatable>
            <binding>
                <command>nasal</command>
                <script>autopilot.toggle_auto_pilot();</script>
            </binding>
        </key>
        <key n="100">
            <name>d</name>
            <desc>rudder-right</desc>
            <repeatable>false</repeatable>
            <binding>
                <command>property-assign</command>
                <property>/controls/flight/rudder</property>
                <value>0.5</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>/controls/flight/rudder</property>
                    <value>0</value>
                </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>
        <key n="108">
            <name>l</name>
            <desc>head-light</desc>
            <repeatable>false</repeatable>
            <binding>
                <command>property-cycle</command>
                <property>/controls/lighting/headlight-als</property>
                <value type="double">0</value>
                <value type="double">1</value>
                <value type="double">2</value>
            </binding>
        </key>
        <key n="107">
            <name>k</name>
            <desc>high-beam</desc>
            <repeatable>false</repeatable>
            <binding>
                <command>property-cycle</command>
                <property>/controls/lighting/highBeam</property>
                <value type="double">0</value>
                <value type="double">1</value>
            </binding>
            <binding>
                <command>property-cycle</command>
                <property>/controls/lighting/headlight</property>
                <value type="double">0</value>
                <value type="double">1</value>
            </binding>
        </key>
        <key n="106">
            <name>j</name>
            <desc>high-beam-flash</desc>
            <repeatable>false</repeatable>
            <binding>
                <command>property-assign</command>
                <property>/controls/lighting/highBeam</property>
                <value type="double">1</value>
            </binding>
            <binding>
                <command>property-assign</command>
                <property>/controls/lighting/headlight</property>
                <value type="double">1</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property>/controls/lighting/highBeam</property>
                    <value type="double">0</value>
                </binding>
                <binding>
                    <command>property-assign</command>
                    <property>/controls/lighting/headlight</property>
                    <value type="double">0</value>
                </binding>
            </mod-up>
        </key>
	</keyboard>
</input>

<nasal>
	<followme>
		<file>Aircraft/followme_e-tron/Nasal/systems.nas</file>        
	</followme>
	<!--<screen>		
		<file>Aircraft/followme_e-tron/Nasal/SmartScreen.nas</file>
    </screen> -->
    <engine>
        <file>Aircraft/followme_e-tron/Nasal/engine.nas</file>
    </engine>
    <electrical>
        <file>Aircraft/followme_e-tron/Nasal/electrical.nas</file>
    </electrical>
    <light>
        <file>Aircraft/followme_e-tron/Nasal/light-manager.nas</file>
    </light>
    <dual_control_tools>
     <file>Aircraft/followme_e-tron/Nasal/DualControl/dual-control-tools.nas</file>
    </dual_control_tools>
    <aircraft_dual_control>
     <file>Aircraft/followme_e-tron/Nasal/DualControl/followme-dual-control.nas</file>
    </aircraft_dual_control>
    <dual_control>
     <file>Aircraft/followme_e-tron/Nasal/DualControl/pilot-dual-control.nas</file>
    </dual_control>
    <autopilot>
     <file>Aircraft/followme_e-tron/Nasal/auto_crash.nas</file>
    </autopilot>
</nasal>

</PropertyList>




