diff --git a/BUK-M2/Nasal/damage.nas b/BUK-M2/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/BUK-M2/Nasal/damage.nas +++ b/BUK-M2/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/Frigate/Nasal/damage.nas b/Frigate/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/Frigate/Nasal/damage.nas +++ b/Frigate/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/MIM-104D/Nasal/damage.nas b/MIM-104D/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/MIM-104D/Nasal/damage.nas +++ b/MIM-104D/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/S-200/Nasal/damage.nas b/S-200/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/S-200/Nasal/damage.nas +++ b/S-200/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/S-300/Nasal/damage.nas b/S-300/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/S-300/Nasal/damage.nas +++ b/S-300/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/S-75/Nasal/damage.nas b/S-75/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/S-75/Nasal/damage.nas +++ b/S-75/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/SA-6/Nasal/damage.nas b/SA-6/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/SA-6/Nasal/damage.nas +++ b/SA-6/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/ZSU-23/Nasal/damage.nas b/ZSU-23/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/ZSU-23/Nasal/damage.nas +++ b/ZSU-23/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/depot/Nasal/damage.nas b/depot/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/depot/Nasal/damage.nas +++ b/depot/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/fleet/Nasal/damage.nas b/fleet/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/fleet/Nasal/damage.nas +++ b/fleet/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/gci-radar/Nasal/damage.nas b/gci-radar/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/gci-radar/Nasal/damage.nas +++ b/gci-radar/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/groundtarget/Nasal/damage.nas b/groundtarget/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/groundtarget/Nasal/damage.nas +++ b/groundtarget/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/missile-frigate/Nasal/damage.nas b/missile-frigate/Nasal/damage.nas index 51d7d80..297eb6d 100644 --- a/missile-frigate/Nasal/damage.nas +++ b/missile-frigate/Nasal/damage.nas @@ -1430,6 +1430,7 @@ var code_ct = func () { #ANTIC if (getprop("payload/armament/msg")) { setprop("sim/rendering/redout/enabled", 1); + setprop("sim/rendering/redout/parameters/locked-by-airframe", 1); #call(func{fgcommand('dialog-close', multiplayer.dialog.dialog.prop())},nil,var err= []);# props.Node.new({"dialog-name": "location-in-air"})); if (!m28_auto) call(func{multiplayer.dialog.del();},nil,var err= []); if (!getprop("gear/gear[0]/wow")) { @@ -1446,6 +1447,8 @@ var code_ct = func () { #setprop("/sim/rendering/als-filters/use-filtering", 1); call(func{var interfaceController = fg1000.GenericInterfaceController.getOrCreateInstance(); interfaceController.stop();},nil,var err2=[]); + } else { + setprop("sim/rendering/redout/parameters/locked-by-airframe", 0); } } code_ctTimer = maketimer(1, code_ct); diff --git a/oprf-versions.json b/oprf-versions.json index b529e0b..8b27d0e 100644 --- a/oprf-versions.json +++ b/oprf-versions.json @@ -73,55 +73,55 @@ ], "damage": [ { - "version": "1.3.1", + "version": "1.3.2", "path": "BUK-M2/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "depot/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "fleet/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "Frigate/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "gci-radar/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "groundtarget/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "MIM-104D/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "missile-frigate/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "S-200/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "S-300/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "S-75/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "SA-6/Nasal/damage.nas" }, { - "version": "1.3.1", + "version": "1.3.2", "path": "ZSU-23/Nasal/damage.nas" } ],