132nd-vWing / OPUF

Operation URGENT FURY
2 stars 0 forks source link

SAM units move when fired upon (HARM) #7

Closed 132ndNeck closed 4 years ago

132ndNeck commented 5 years ago

Is it possible to setup so that the specific unit (within the group) that is fired up by a HARM shuts down its radar, and moves to a randomly new location? This so not the entire group starts moving, but only the Radar that is actually beeing fired upon.

Details:

132nd-Entropy commented 5 years ago

everything above implemented, within the script, you will find your 'control panel', and values can be changed

local evasion = true -- set to false to disable evasive behavior for Radar units local chance_for_evasiveaction = 85 -- percent chance that the Radar unit will take evasive action local prefix = "evade" -- all SAM that should be added to the script need to have these word within their GROUP NAME local Target_Smoke = false -- set to TRUE if you want red smoke deployed from the Target SAM (mainly used for debugging) local evasion_delay = math.random(4,8) -- after HARM launch, delay in seconds until the SAM take evasive action local radar_delay = math.random(120,300) -- time in seconds until the unit will turn its radar back on (random number between the two) local move_distance = math.random(50,150)-- meters the unit will move before stopping (random number between the two) local evasion_for_client_planes_only = true -- set to false if Sam Radars should also respond to AI planes firing local chance_for_group_relocating = 5 --percent chance that the group shuts down and moves to a new location further away local relocating_distance = math.random(800,1200) -- distance in meters that the group relocates

132ndNeck commented 4 years ago

This works great! Thanks