Ecm now might cause some problems in pvp BVR such as missiles twitch under the flash of the jammer. But anyway, this is another topic, and let's not delve into it here.
As a potential solution, I am trying to detect if a player turns on ECM using ME or lua code. But for now I cant find any releted interface, function or struct. I guess we do not have such options yet. So want to know if anyone knows anything about this? Thanks!
Only way I found close is 2 functions in export.lua, there is a paramter called "isjamming". But unfortunately it only works on FC3 modules according to testing:
LoGetTargetInformation() -- (args - 0, results - 1 (table of current targets tables))
LoGetLockedTargetInformation() -- (args - 0, results - 1 (table of current locked targets tables))
this functions return the table of the next target data
target =
{
ID , -- world ID (may be 0 ,when ground point track)
type = {level1,level2,level3,level4}, -- world database classification
country = , -- object country
position = {x = {x,y,z}, -- orientation X ort
y = {x,y,z}, -- orientation Y ort
z = {x,y,z}, -- orientation Z ort
p = {x,y,z}} -- position of the center
velocity = {x,y,z}, -- world velocity vector m/s
distance = , -- distance in meters
convergence_velocity = , -- closing speed in m/s
mach = , -- M number
delta_psi = , -- aspect angle rad
fim = , -- viewing angle horizontal (in your body axis) rad
fin = , -- viewing angle vertical (in your body axis) rad
flags = , -- field with constants detemining method of the tracking
-- whTargetRadarView = 0x0002; -- Radar review (BVR)
-- whTargetEOSView = 0x0004; -- EOS review (BVR)
-- whTargetRadarLock = 0x0008; -- Radar lock (STT) == whStaticObjectLock (pinpoint) (static objects,buildings lock)
-- whTargetEOSLock = 0x0010; -- EOS lock (STT) == whWorldObjectLock (pinpoint) (ground units lock)
-- whTargetRadarTrack = 0x0020; -- Radar lock (TWS)
-- whTargetEOSTrack = 0x0040; -- Radar lock (TWS) == whImpactPointTrack (pinpoint) (ground point track)
-- whTargetNetHumanPlane = 0x0200; -- net HumanPlane
-- whTargetAutoLockOn = 0x0400; -- EasyRadar autolockon
-- whTargetLockOnJammer = 0x0800; -- HOJ mode
reflection = , -- target cross section square meters
course = , -- target course rad
isjamming = , -- target ECM on or not
start_of_lock = , -- time of the beginning of lock
forces = { x,y,z}, -- vector of the acceleration units
updates_number = , -- number of the radar updates
jammer_burned = true/false -- indicates that jammer are burned
}