f30e034e55
A big step at bringing the default aircraft into the state it actually deserves. Features: - new, accurate exterior modell, modelled with original 3-views by Cessna - textures with shadow shading - livery changing sytem over mp - immatriculation over mp - glass shader with fresnel effect - nearly complete 3d-panel Known Bugs: - Radio_Stack shines through the fuselage. New 3d radio_stack has yet to be done. To-Do: - Suction-Instrument - Interior with much more details and painting - Radio_stack - doors openable - lights - fully animation of the gear - failure system by Erobo
36 lines
1,017 B
Text
36 lines
1,017 B
Text
sbc1 = aircraft.light.new( "/sim/model/lights/sbc1", [0.5, 0.3] );
|
|
sbc1.interval = 0.1;
|
|
sbc1.switch( 1 );
|
|
|
|
sbc2 = aircraft.light.new( "/sim/model/lights/sbc2", [0.2, 0.3], "/sim/model/lights/sbc1/state" );
|
|
sbc2.interval = 0;
|
|
sbc2.switch( 1 );
|
|
|
|
setlistener( "/sim/model/lights/sbc2/state", func {
|
|
bsbc1 = sbc1.stateN.getValue();
|
|
bsbc2 = cmdarg().getBoolValue();
|
|
b = 0;
|
|
if( bsbc1 and bsbc2 and getprop( "/controls/lighting/beacon") ) {
|
|
b = 1;
|
|
} else {
|
|
b = 0;
|
|
}
|
|
setprop( "/sim/model/lights/beacon/enabled", b );
|
|
|
|
if( bsbc1 and !bsbc2 and getprop( "/controls/lighting/strobe" ) ) {
|
|
b = 1;
|
|
} else {
|
|
b = 0;
|
|
}
|
|
setprop( "/sim/model/lights/strobe/enabled", b );
|
|
});
|
|
|
|
beacon = aircraft.light.new( "/sim/model/lights/beacon", [0.05, 0.05] );
|
|
beacon.interval = 0;
|
|
|
|
strobe = aircraft.light.new( "/sim/model/lights/strobe", [0.05, 0.05] );
|
|
strobe.interval = 0;
|
|
|
|
setprop( "/instrumentation/nav[0]/ident", 0 );
|
|
setprop( "/instrumentation/nav[1]/ident", 0 );
|
|
|