Jump to content
Sign in to follow this  
fn_Quiksilver

Detecting radar lock

Recommended Posts

Hi guys,

 

Is it possible to detect when an enemy is acquiring a radar lock on your vehicle?

 

The game does this somehow, for air vehicles that have the correct radar type, but does not do this for land vehicles.

 

Trying to apply the same system to vanilla armored vehicles (which means no config scripting).

Share this post


Link to post
Share on other sites

i think you automatically get radar warning if the vehicle itself has search radar - havent seen any other config values that suggest otherwise, but i may still be wrong

Share this post


Link to post
Share on other sites

haha, quick check of my ressources reveals i'm a dumbass

 

A3 locking review

 

lockDetectionSystem = [0-15];

incomingMissileDetectionSystem = [0,16];

Share this post


Link to post
Share on other sites

Maybe try https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#IncomingMissile

Not sure if it triggers only on vehicles with radar.

 

Thanks

 

This detects incoming missiles, does not detect that you are being locked onto.

 

 

The core of the issue is that in MP, AI armored vehicles will detect lock-on and deploy countermeasures (smoke). Humans are given no such warning. Incoming missile provides at most ~2-3 seconds warning, while a lock-on detection would provide ~5-7 seconds warning, maybe more. At the moment, smoke countermeasures are useless in MP for players on armored vehicles. Trying to remedy this :)

Share this post


Link to post
Share on other sites

I think this should help:

 

assignedTarget

 

u only Need to check which weapon is in use by the gunner to drop Canon and not guided Missiles.

Share this post


Link to post
Share on other sites

Have you taken a look at http://www.armaholic.com/page.php?id=22575yet?

bakerman has worked on something similar, maybe some of his code proves helpful for what you want to achieve.

 

Thanks will have a look. 

 

At the moment using something like this, which is providing insufficient warning

 

/* added on server */
_vehicle addEventHandler [
     'IncomingMissile',
     {
          params ['_v','_ammo','_shooter'];
          if ((count (crew _v)) > 0) then {
               {
                    if (isPlayer _x) then {
                         if (alive _x) then {
                              QS_icm = [_v,_ammo,_shooter];
                              (owner _x) publicVariableClient 'QS_icm';
                              QS_icm = nil;
                         };
                    };
               } count (crew _v);
          };
     }
];

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×