rendered paste bodyIndex: fuel-system.nas
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/Buccaneer/Systems/fuel-system.nas,v
retrieving revision 1.6
diff -u -p -r1.6 fuel-system.nas
--- fuel-system.nas 12 Nov 2007 12:44:52 -0000 1.6
+++ fuel-system.nas 29 Nov 2007 23:15:13 -0000
@@ -692,13 +692,15 @@ Neg_g = {
obj.switch = switch;
obj.prop.setBoolValue(switch);
obj.acceleration = props.globals.getNode("accelerations/pilot-g", 1);
+ obj.check = props.globals.getNode("controls/fuel/recuperator-check", 1);
print ("Neg-G ", switch);
return obj;
},
update : func() {
var acc = me.acceleration.getValue();
+ var check = me.check.getValue();
# print("accleration ",acc );
- if (acc < 0) {
+ if (acc < 0 or check ) {
me.prop.setBoolValue(1);
} else {
me.prop.setBoolValue(0);