1
0
Fork 0

Livery support. Add missing objects to effects.

This commit is contained in:
legoboyvdlp R 2020-08-29 18:14:38 +01:00
parent 254ec998fc
commit be0aaef6f1
10 changed files with 163 additions and 460 deletions

View file

@ -15,4 +15,14 @@
<name>EnginesCFM</name>
<path>Aircraft/A320-family/Models/Engines/XMLs/a320.cfm.xml</path>
</model>
<!-- Nasal code -->
<nasal>
<load>
var livery_update = aircraft.livery_update.new("Aircraft/A320-family/Models/Liveries/A320/CFM-100");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
</PropertyList>

View file

@ -15,4 +15,14 @@
<name>EnginesCFM</name>
<path>Aircraft/A320-family/Models/Engines/XMLs/a320.cfm.xml</path>
</model>
<!-- Nasal code -->
<nasal>
<load>
var livery_update = aircraft.livery_update.new("Aircraft/A320-family/Models/Liveries/A320/CFM");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
</PropertyList>

View file

@ -15,4 +15,14 @@
<name>EnginesCFM</name>
<path>Aircraft/A320-family/Models/Engines/XMLs/a320.v2500.xml</path>
</model>
<!-- Nasal code -->
<nasal>
<load>
var livery_update = aircraft.livery_update.new("Aircraft/A320-family/Models/Liveries/A320/IAE");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
</PropertyList>

View file

@ -15,4 +15,14 @@
<name>EnginesCFM</name>
<path>Aircraft/A320-family/Models/Engines/XMLs/a320.cfm.xml</path>
</model>
<!-- Nasal code -->
<nasal>
<load>
var livery_update = aircraft.livery_update.new("Aircraft/A320-family/Models/Liveries/A320/CFM-NEO");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
</PropertyList>

View file

@ -15,4 +15,14 @@
<name>EnginesCFM</name>
<path>Aircraft/A320-family/Models/Engines/XMLs/a320.cfm.xml</path>
</model>
<!-- Nasal code -->
<nasal>
<load>
var livery_update = aircraft.livery_update.new("Aircraft/A320-family/Models/Liveries/A320/PW-NEO");
</load>
<unload>
livery_update.stop();
</unload>
</nasal>
</PropertyList>

View file

@ -542,4 +542,26 @@
<object-name>IntakeCFM56L</object-name>
<object-name>IntakeCFM56R</object-name>
</effect>
<animation>
<type>material</type>
<!-- Fuselage -->
<object-name>EngineCFM56L</object-name>
<object-name>EngineCFM56R</object-name>
<object-name>ReverserLDoor1</object-name>
<object-name>ReverserLDoor2</object-name>
<object-name>ReverserLDoor3</object-name>
<object-name>ReverserLDoor4</object-name>
<object-name>ReverserRDoor1</object-name>
<object-name>ReverserRDoor2</object-name>
<object-name>ReverserRDoor3</object-name>
<object-name>ReverserRDoor4</object-name>
<object-name>PylonCFM56L</object-name>
<object-name>PylonCFM56R</object-name>
<object-name>IntakeCFM56L</object-name>
<object-name>IntakeCFM56R</object-name>
<property-base>sim/model/livery</property-base>
<texture-prop>texture-engine</texture-prop>
<texture>engine-CFM56.png</texture>
</animation>
</PropertyList>

View file

@ -426,4 +426,20 @@
<object-name>IntakeIAEV2500L</object-name>
<object-name>IntakeIAEV2500R</object-name>
</effect>
<animation>
<type>material</type>
<!-- Fuselage -->
<object-name>EngineIAEV2500L</object-name>
<object-name>EngineIAEV2500R</object-name>
<object-name>ReverserLDoor</object-name>
<object-name>ReverserRDoor</object-name>
<object-name>PylonIAEV2500L</object-name>
<object-name>PylonIAEV2500R</object-name>
<object-name>IntakeIAEV2500L</object-name>
<object-name>IntakeIAEV2500R</object-name>
<property-base>sim/model/livery</property-base>
<texture-prop>texture-engine</texture-prop>
<texture>engine-IAE-V2500.png</texture>
</animation>
</PropertyList>

View file

@ -1,455 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright (c) 2020 Josh Davidson (Octal450) -->
<PropertyList>
<name>Fuselage</name>
<path>res/fuselage.ac</path>
<!-- ANIMATIONS -->
<!-- PAX doors -->
<animation>
<name>PAX left-front door pick</name>
<type>pick</type>
<object-name>DoorL1</object-name>
<object-name>DoorL1int</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
</animation>
<animation>
<name>PAX left-front door x translate</name>
<type>translate</type>
<object-name>DoorL1</object-name>
<object-name>DoorL1int</object-name>
<property>sim/model/door-positions/doorl1/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-1</dep></entry>
</interpolation>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>PAX left-front door y translate</name>
<type>translate</type>
<object-name>DoorL1</object-name>
<object-name>DoorL1int</object-name>
<property>sim/model/door-positions/doorl1/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>-0.2</dep></entry>
<entry><ind>1</ind><dep>-0.2</dep></entry>
</interpolation>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>PAX right-front door pick</name>
<type>pick</type>
<object-name>DoorR1</object-name>
<object-name>DoorR1int</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
</animation>
<animation>
<name>PAX right-front door x translate</name>
<type>translate</type>
<object-name>DoorR1</object-name>
<object-name>DoorR1int</object-name>
<property>sim/model/door-positions/doorr1/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-1</dep></entry>
</interpolation>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>PAX right-front door y translate</name>
<type>translate</type>
<object-name>DoorR1</object-name>
<object-name>DoorR1int</object-name>
<property>sim/model/door-positions/doorr1/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>0.2</dep></entry>
<entry><ind>1</ind><dep>0.2</dep></entry>
</interpolation>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>PAX left-back door pick</name>
<type>pick</type>
<object-name>DoorL4</object-name>
<object-name>DoorL4int</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(libraries.doorl4, "doorl4", "PAX left-back");
</script>
</binding>
</action>
</animation>
<animation>
<name>PAX left-back door x translate</name>
<type>translate</type>
<object-name>DoorL4</object-name>
<object-name>DoorL4int</object-name>
<property>sim/model/door-positions/doorl4/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-1</dep></entry>
</interpolation>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>PAX left-back door y translate</name>
<type>translate</type>
<object-name>DoorL4</object-name>
<object-name>DoorL4int</object-name>
<property>sim/model/door-positions/doorl4/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>-0.2</dep></entry>
<entry><ind>1</ind><dep>-0.2</dep></entry>
</interpolation>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>PAX right-back door pick</name>
<type>pick</type>
<object-name>DoorR4</object-name>
<object-name>DoorR4int</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(libraries.doorr4, "doorr4", "PAX right-back");
</script>
</binding>
</action>
</animation>
<animation>
<name>PAX right-back door x translate</name>
<type>translate</type>
<object-name>DoorR4</object-name>
<object-name>DoorR4int</object-name>
<property>sim/model/door-positions/doorr4/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-1</dep></entry>
</interpolation>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<name>PAX right-back door y translate</name>
<type>translate</type>
<object-name>DoorR4</object-name>
<object-name>DoorR4int</object-name>
<property>sim/model/door-positions/doorr4/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.25</ind><dep>0.2</dep></entry>
<entry><ind>1</ind><dep>0.2</dep></entry>
</interpolation>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<!-- Cargo doors -->
<animation>
<name>Cargo forward door pick</name>
<type>pick</type>
<object-name>Cargo1</object-name>
<object-name>Cargo1int</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(libraries.cargofwd, "cargofwd", "forward cargo");
</script>
</binding>
</action>
</animation>
<animation>
<name>Cargo forward door rotate</name>
<type>rotate</type>
<object-name>Cargo1</object-name>
<object-name>Cargo1int</object-name>
<property>sim/model/door-positions/cargofwd/position-norm</property>
<factor>150</factor>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
<center>
<x-m>0</x-m>
<y-m>1.92</y-m>
<z-m>-0.507</z-m>
</center>
</animation>
<animation>
<name>Cargo aft door pick</name>
<type>pick</type>
<object-name>Cargo2</object-name>
<object-name>Cargo2int</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(libraries.cargoaft, "cargoaft", "aft cargo");
</script>
</binding>
</action>
</animation>
<animation>
<name>Cargo aft door rotate</name>
<type>rotate</type>
<object-name>Cargo2</object-name>
<object-name>Cargo2int</object-name>
<property>sim/model/door-positions/cargoaft/position-norm</property>
<factor>150</factor>
<axis>
<x1-m>24.442</x1-m>
<y1-m>1.912</y1-m>
<z1-m>-0.507</z1-m>
<x2-m>26.022</x2-m>
<y2-m>1.914</y2-m>
<z2-m>-0.509</z2-m>
</axis>
</animation>
<animation>
<name>Cargo bulk door pick</name>
<type>pick</type>
<object-name>Cargo3</object-name>
<object-name>Cargo3int</object-name>
<action>
<button>0</button>
<repeatable type="bool">false</repeatable>
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(libraries.cargobulk, "cargobulk", "bulk cargo");
</script>
</binding>
</action>
</animation>
<animation>
<name>Cargo bulk door rotate</name>
<type>rotate</type>
<object-name>Cargo3</object-name>
<object-name>Cargo3int</object-name>
<property>sim/model/door-positions/cargobulk/position-norm</property>
<factor>150</factor>
<axis>
<x1-m>28.367</x1-m>
<y1-m>1.735</y1-m>
<z1-m>-0.972</z1-m>
<x2-m>29.166</x2-m>
<y2-m>1.702</y2-m>
<z2-m>-0.942</z2-m>
</axis>
</animation>
<!-- Animation for the doors of the main gears. -->
<animation>
<name>Main_Gear_Doors.Left</name>
<type>rotate</type>
<object-name>GearLDoor</object-name>
<property>gear/gear[1]/position-norm</property>
<interpolation>
<entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>0.2</ind><dep>84.0</dep></entry>
<entry><ind>0.8</ind><dep>84.0</dep></entry>
<entry><ind>1.0</ind><dep>0.0</dep></entry>
</interpolation>
<center>
<y-m>-0.4646725</y-m>
<z-m>-2.3824937</z-m>
</center>
<axis>
<x>1</x>
</axis>
</animation>
<animation>
<name>Main_Gear_Doors.Right</name>
<type>rotate</type>
<object-name>GearRDoor</object-name>
<property>gear/gear[2]/position-norm</property>
<interpolation>
<entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>0.2</ind><dep>84.0</dep></entry>
<entry><ind>0.8</ind><dep>84.0</dep></entry>
<entry><ind>1.0</ind><dep>0.0</dep></entry>
</interpolation>
<center>
<y-m>0.4646725</y-m>
<z-m>-2.3824937</z-m>
</center>
<axis>
<x>-1</x>
</axis>
</animation>
<!-- Animation for the doors of the nose gear. -->
<animation>
<name>Nose_Gear_Doors.Left.01</name>
<type>rotate</type>
<object-name>GearNFwdDoorL</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0.0z</ind><dep>0.0</dep></entry>
<entry><ind>0.2</ind><dep>90.0</dep></entry>
<entry><ind>0.8</ind><dep>90.0</dep></entry>
<entry><ind>1.0</ind><dep>0.0</dep></entry>
</interpolation>
<axis>
<x1-m>7.599</x1-m>
<y1-m>-0.5</y1-m>
<z1-m>-2.0649564</z1-m>
<x2-m>5.394</x2-m>
<y2-m>-0.5</y2-m>
<z2-m>-1.9179121</z2-m>
</axis>
</animation>
<animation>
<name>Nose_Gear_Doors.Left.02</name>
<type>rotate</type>
<object-name>GearNAftDoorL</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0.2</ind><dep>0.0</dep></entry>
<entry><ind>0.8</ind><dep>45.0</dep></entry>
</interpolation>
<axis>
<x1-m>8.077</x1-m>
<y1-m>-0.5</y1-m>
<z1-m>-2.0790732</z1-m>
<x2-m>7.599</x2-m>
<y2-m>-0.5</y2-m>
<z2-m>-2.0649564</z2-m>
</axis>
</animation>
<animation>
<name>Nose_Gear_Doors.Right.01</name>
<type>rotate</type>
<object-name>GearNFwdDoorR</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>0.2</ind><dep>90.0</dep></entry>
<entry><ind>0.8</ind><dep>90.0</dep></entry>
<entry><ind>1.0</ind><dep>0.0</dep></entry>
</interpolation>
<axis>
<x1-m>5.394</x1-m>
<y1-m>0.5</y1-m>
<z1-m>-1.9179121</z1-m>
<x2-m>7.599</x2-m>
<y2-m>0.5</y2-m>
<z2-m>-2.0649564</z2-m>
</axis>
</animation>
<animation>
<name>Nose_Gear_Doors.Right.02</name>
<type>rotate</type>
<object-name>GearNAftDoorR</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0.2</ind><dep>0.0</dep></entry>
<entry><ind>0.8</ind><dep>45.0</dep></entry>
</interpolation>
<axis>
<x1-m>7.599</x1-m>
<y1-m>0.5</y1-m>
<z1-m>-2.0649564</z1-m>
<x2-m>8.077</x2-m>
<y2-m>0.5</y2-m>
<z2-m>-2.0790732</z2-m>
</axis>
</animation>
<model>
<name>RAT</name>
<path>Aircraft/A320-family/Models/RAT/RAT.xml</path>
<offsets>
<x-m>18</x-m>
<y-m>-1</y-m>
<z-m>-2.9</z-m>
</offsets>
</model>
</PropertyList>

View file

@ -30,6 +30,10 @@
<object-name>RatDoorL</object-name>
<object-name>RatDoorR</object-name>
<object-name>ApuFlap</object-name>
<object-name>AvionicsVentDoor</object-name>
<object-name>OutflowValveDoor1</object-name>
<object-name>OutflowValveDoor2</object-name>
<object-name>GPUServiceDoor</object-name>
</effect>
<effect>
@ -98,10 +102,75 @@
<object-name>SideStayR1</object-name>
</effect>
<effect>
<inherits-from>Effects/glass</inherits-from>
<object-name>Windsheild</object-name>
</effect>
<animation>
<type>material</type>
<!-- Fuselage -->
<object-name>AileronL</object-name>
<object-name>AileronR</object-name>
<object-name>Antenna1</object-name>
<object-name>Antenna2</object-name>
<object-name>ApuFlap</object-name>
<object-name>AvionicsVentDoor</object-name>
<object-name>Cargo1</object-name>
<object-name>Cargo2</object-name>
<object-name>Cargo3</object-name>
<object-name>DoorL1</object-name>
<object-name>DoorL4</object-name>
<object-name>DoorR1</object-name>
<object-name>DoorR4</object-name>
<object-name>ElevatorL</object-name>
<object-name>ElevatorR</object-name>
<object-name>EngineFairingL</object-name>
<object-name>EngineFairingR</object-name>
<object-name>FairingL1</object-name>
<object-name>FairingL2</object-name>
<object-name>FairingL3</object-name>
<object-name>FairingR1</object-name>
<object-name>FairingR2</object-name>
<object-name>FairingR3</object-name>
<object-name>FlapL1</object-name>
<object-name>FlapL2</object-name>
<object-name>FlapR1</object-name>
<object-name>FlapR2</object-name>
<object-name>Fuselage</object-name>
<object-name>GPUServiceDoor</object-name>
<object-name>Hstabs</object-name>
<object-name>MLGGearDoorL</object-name>
<object-name>MLGGearDoorR</object-name>
<object-name>MLGWingDoorL1</object-name>
<object-name>MLGWingDoorL2</object-name>
<object-name>MLGWingDoorR1</object-name>
<object-name>MLGWingDoorR1</object-name>
<object-name>NLGAftDoorL</object-name>
<object-name>NLGAftDoorR</object-name>
<object-name>NLGFittingPanel</object-name>
<object-name>NLGForewardDoorL</object-name>
<object-name>NLGForewardDoorR</object-name>
<object-name>OutflowValveDoor1</object-name>
<object-name>OutflowValveDoor2</object-name>
<object-name>RatDoorL</object-name>
<object-name>RatDoorR</object-name>
<object-name>Sharklet</object-name>
<object-name>SlatL1</object-name>
<object-name>SlatL2</object-name>
<object-name>SlatR1</object-name>
<object-name>SlatR2</object-name>
<object-name>SpoilerL1</object-name>
<object-name>SpoilerL2</object-name>
<object-name>SpoilerL3</object-name>
<object-name>SpoilerL4</object-name>
<object-name>SpoilerL5</object-name>
<object-name>SpoilerR1</object-name>
<object-name>SpoilerR2</object-name>
<object-name>SpoilerR3</object-name>
<object-name>SpoilerR4</object-name>
<object-name>SpoilerR5</object-name>
<object-name>Wings</object-name>
<object-name>WingtipFence</object-name>
<property-base>sim/model/livery</property-base>
<texture-prop>texture-fuselage</texture-prop>
<texture>Fuse-Main.png</texture>
</animation>
<!-- Animations -->

View file

@ -5,7 +5,8 @@
<model>
<livery>
<name>ICAO Airline Name (Extra Info)</name>
<texture>Liveries/A320/CFM/texture.png</texture>
<texture-fuselage>Liveries/A320/CFM/texture.png</texture-fuselage>
<texture-engine>Liveries/A320/CFM/texture.png</texture-engine>
</livery>
</model>
</sim>