mirror of
https://github.com/l0k1/oprf_assets.git
synced 2026-08-03 10:19:18 +00:00
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:
@@ -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 {};
|
||||
};
|
||||
|
||||
|
||||
##########################################################################
|
||||
|
||||
@@ -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 {};
|
||||
};
|
||||
|
||||
|
||||
##########################################################################
|
||||
|
||||
Reference in New Issue
Block a user