Won't let me switch branch without committing... damn merge...
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
01bbc21269
commit
892a540008
2 changed files with 30 additions and 1 deletions
|
@ -33,4 +33,19 @@
|
|||
<name>EnginesCFM</name>
|
||||
<path>Aircraft/A320-family/Models/Engines/XMLs/a320.cfm.xml</path>
|
||||
</model>
|
||||
|
||||
<!-- Nasal code -->
|
||||
<nasal>
|
||||
<load><![CDATA[
|
||||
var livery_update = aircraft.canvas_livery.new("Aircraft/A320-family/Models/Liveries/A320/CFM");
|
||||
var elements = ["Fuselage", "Wings", "Hstabs", "ElevatorL", "ElevatorR", "FlapL1", "FlapL2", "FlapR1", "FlapR2", "SpoilerL1", "SpoilerL2", "SpoilerL3", "SpoilerL4", "SpoilerL5", "SpoilerR1", "SpoilerR2", "SpoilerR3", "SpoilerR4", "SpoilerR5", "DoorL1", "DoorL4", "DoorR1", "DoorR4", "Cargo1", "Cargo2", "Cargo3", "MLGGearDoorR", "MLGGearDoorL", "MLGWingDoorR1", "MLGWingDoorL1", "MLGWingDoorR2", "MLGWingDoorL2", "NLGForewardDoorL", "NLGForewardDoorR", "NLGAftDoorL", "NLGAftDoorR", "GPUServiceDoor", "AvionicsVentDoor", "OutflowValveDoor1", "OutflowValveDoor2", "ApuFlap", "Rudder", "Sharklet", "WingtipFence"];
|
||||
livery_update.createTarget("fuselage", elements, "/sim/model/livery/texture-fuselage", resolution=8192);
|
||||
|
||||
elements = ["EngineCFM56R", "EngineCFM56L", "PylonCFM56R", "PylonCFM56L", "ReverseRDoor1", "ReverseRDoor2", "ReverseRDoor3", "ReverseRDoor4", "ReverseLDoor1", "ReverseLDoor2", "ReverseLDoor3", "ReverseLDoor4"];
|
||||
livery_update.createTarget("engines", elements, "/sim/model/livery/texture-engine");
|
||||
]]></load>
|
||||
<unload>
|
||||
livery_update.stop();
|
||||
</unload>
|
||||
</nasal>
|
||||
</PropertyList>
|
||||
|
|
|
@ -38,7 +38,21 @@ var stateR = 0;
|
|||
var tiresmoke_system = aircraft.tyresmoke_system.new(0, 1, 2);
|
||||
aircraft.rain.init();
|
||||
|
||||
aircraft.livery.init(getprop("/sim/model/livery-dir"));
|
||||
var livery = aircraft.canvas_livery.init("Models/Liveries/A320/CFM");
|
||||
var elements = ["Fuselage", "Wings", "Hstabs", "ElevatorL", "ElevatorR", "FlapL1", "FlapL2", "FlapR1", "FlapR2", "SpoilerL1", "SpoilerL2", "SpoilerL3", "SpoilerL4", "SpoilerL5", "SpoilerR1", "SpoilerR2", "SpoilerR3", "SpoilerR4", "SpoilerR5", "DoorL1", "DoorL4", "DoorR1", "DoorR4", "Cargo1", "Cargo2", "Cargo3", "MLGGearDoorR", "MLGGearDoorL", "MLGWingDoorR1", "MLGWingDoorL1", "MLGWingDoorR2", "MLGWingDoorL2", "NLGForewardDoorL", "NLGForewardDoorR", "NLGAftDoorL", "NLGAftDoorR", "GPUServiceDoor", "AvionicsVentDoor", "OutflowValveDoor1", "OutflowValveDoor2", "ApuFlap", "Rudder", "Sharklet", "WingtipFence"];
|
||||
livery.createTarget("fuselage", elements, "/sim/model/livery/texture-fuselage", resolution=8192);
|
||||
livery.addLayer("fuselage", "dirt", "Aircraft/A320-family/Models/seam-dirt.png");
|
||||
|
||||
var aero = getprop("/sim/aero");
|
||||
if (aero == "A320-200-CFM") {
|
||||
elements = ["EngineCFM56R", "EngineCFM56L", "PylonCFM56R", "PylonCFM56L", "ReverseRDoor1", "ReverseRDoor2", "ReverseRDoor3", "ReverseRDoor4", "ReverseLDoor1", "ReverseLDoor2", "ReverseLDoor3", "ReverseLDoor4"];
|
||||
livery.createTarget("engines", elements, "/sim/model/livery/texture-engine");
|
||||
livery.addLayer("engines", "dirt", "Aircraft/A320-family/Models/CFM-Dirt-test-s.png");
|
||||
} else if (aero == "A320-200-IAE") {
|
||||
elements = ["EngineIAEV2500R", "EngineIAEV2500L", "PylonIAEV2500R", "PylonIAEV2500R", "ReverserRDoor", "ReverserLDoor"];
|
||||
livery.createTarget("engines", elements, "/sim/model/livery/texture-engine");
|
||||
livery.addLayer("engines", "dirt", "Aircraft/A320-family/Models/CFM-Dirt-test-s.png");
|
||||
}
|
||||
|
||||
##########
|
||||
# Sounds #
|
||||
|
|
Loading…
Add table
Reference in a new issue