Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

SAM Reactive EMCON Lua Script

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> SAM Reactive EMCON Lua Script Page: [1]
Login
Message << Older Topic   Newer Topic >>
SAM Reactive EMCON Lua Script - 9/5/2016 12:11:36 AM   
ckfinite

 

Posts: 377
Joined: 7/20/2013
Status: offline
This is a small script intended to add some depth to 60s through 90s IADS and SEAD operations, controlling how SAMs react to the detection of an anti-radiation missile (or something that looks like it) aimed at them.

An example scenario where this would be useful is an Operation Allied Force scenario. When a Serbian SAM battery had a HARM fired at it, it would shut its radar off, and the missile would miss the SAM battery (though in the process forcing it off air). To actually destroy the battery would require a munition guided through some other means, which is what loadouts like the F-16CM's 1xHARM + 2xLGB or the F/A-18's HARM+JSOW loadouts are intended to do: suppress the SAM battery with the HARM, follow up with something bigger that doesn't need the radar to guide it in.

This idea was the key driver behind SEAD/DEAD doctrine from the introduction of the Shrike through Operation Desert Storm, but has been somewhat superseded by the advent of more sophisticated SAMs, that can target the ARM directly, in combination with more advanced ARMs (like the AARGM) that do not need target emissions to find their target. As a result, this script is not tactically suitable for SAM systems like the S-300 and S-400, or when facing an opponent who uses missiles like the AARGM, unless you intentionally want the opposing force to make the wrong choice.

For the actual use of the script, there are three important notes in order for it to work:

* The script will go through EVERY unit, not just SAMs, on a side, and see if that unit should turn its radar off, including aircraft and ground vehicles. For performance reasons, it's suggested to put SAMs and EW radars on their own side, and use that as the side that the script sees as the opposition.

* For realism, the script doesn't actually *know* that what's coming at it is a ARM - it knows speed and heading, but not actual identity. The provided decision function that decides when to shut down the radar and for how long makes an educated guess based on cross track error (if the missile flew in a straight line, how much would it miss the site by) and how far away the missile is, but you may want to change this based on your scenario (and how well trained the operators of the SAMs would be).

* Lastly, this script makes use of events that fire a lot. If you use this in a scene, the message log will become more or less useless due to event spam.

That over with, the script is in the attached scene. Copy the events over (make sure that the trigger is changed to correctly identify the side(s) who might be firing ARMs) and change the variable samside in the "Detected Missile" action into your scene, and it should work. The script may or may not work for naval units, also, I haven't tested it with them.

Edit: v1.1: Fixed issue where destroyed SAMs would try to go on-air

Attachment (1)

< Message edited by ckfinite -- 9/5/2016 2:51:44 PM >
Post #: 1
RE: SAM Reactive EMCON Lua Script - 9/5/2016 11:45:37 AM   
Coiler12

 

Posts: 1203
Joined: 10/13/2013
Status: offline
I tried it and played with it for a bit.

Found an issue-after I finally succeed in hitting a SAM site, it becomes a constant stream of "Unable to identify subject of EMCON change! Please verify the subject-type and subject-name/ID strings." error messages.

(in reply to ckfinite)
Post #: 2
RE: SAM Reactive EMCON Lua Script - 9/5/2016 2:50:16 PM   
ckfinite

 

Posts: 377
Joined: 7/20/2013
Status: offline
Thanks! Fixed.

(in reply to Coiler12)
Post #: 3
RE: SAM Reactive EMCON Lua Script - 9/5/2016 3:40:04 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline


_____________________________


(in reply to ckfinite)
Post #: 4
RE: SAM Reactive EMCON Lua Script - 9/5/2016 4:15:15 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
I think its cool you're working with lua but you're giving the AI a lot more knowledge than it should have. How does it know its a anti-radiation attack? Is this true in all cases?

Look forward to see what you come up with.

Mike

_____________________________


(in reply to mikmykWS)
Post #: 5
RE: SAM Reactive EMCON Lua Script - 9/5/2016 4:24:53 PM   
ckfinite

 

Posts: 377
Joined: 7/20/2013
Status: offline
It doesn't know - I address this in the second bullet point. It makes an educated guess based on the missile being aimed directly(ish) at a SAM site (determined by looking at the history of the contact), combined with a time-to-go estimate. It also computes target speed, which can also be taken into account with the heuristic. I think that a scene designer could have fun with this - for example, an Iraqi SAM in Desert Storm might not take into account that the missile isn't going towards them, and would switch their radar off anyways.

I think that figuring out what the heuristic that the opposing SAM force is using would be an interesting challenge for the player, and one that could reap huge rewards. This script isn't very clever in eagerly turning the radars back on again when the inbound missile turns away, so if the player can make the SAM think that a missile is a ARM when it isn't, then they can suppress a SAM at low cost for a long time.

(in reply to mikmykWS)
Post #: 6
RE: SAM Reactive EMCON Lua Script - 9/5/2016 4:31:55 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Very interesting

_____________________________


(in reply to ckfinite)
Post #: 7
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> SAM Reactive EMCON Lua Script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

3.344