Make the SA-2 and SA-6 SAM systems keep lock on target when missile in-flight and no longer in tracking-phase.

This commit is contained in:
Nikolai V. Chr
2022-11-28 22:32:45 +01:00
parent 4dc3084f0c
commit 56a0506abb
2 changed files with 20 additions and 2 deletions

View File

@@ -61,7 +61,16 @@ var isInEngagementEnvelope = func (target_radial_airspeed, target_ground_distanc
return 1;
}
var midflight = nil;
var midflight = func (struct) {
if (struct.guidance == "semi-radar") {
# This makes the SAM system keep lock on target when missile in-flight and no longer tracking the target.
# Usage is to make the RWR lock sound go off in targets cockpit.
thread.lock(mutexLock);
semi_active_track = struct.callsign;
thread.unlock(mutexLock);
}
return {};
};
##########################################################################

View File

@@ -61,7 +61,16 @@ var isInEngagementEnvelope = func (target_radial_airspeed, target_ground_distanc
return 1;
}
var midflight = nil;
var midflight = func (struct) {
if (struct.guidance == "semi-radar") {
# This makes the SAM system keep lock on target when missile in-flight and no longer tracking the target.
# Usage is to make the RWR lock sound go off in targets cockpit.
thread.lock(mutexLock);
semi_active_track = struct.callsign;
thread.unlock(mutexLock);
}
return {};
};
##########################################################################