Anti missile-mortar system
System of discovering cruse missiles and artillery shells by radars and make them targetable for AA systems:
System works on radars classes – adding to them function for discovering cruse missiles on fly and make them visibile for radars and possibile to target and shot down (even by airplane’s AA radar rockets – watch movie), don’t need to add any init lines or scripts – just place radar and AA gun and watch for incomeing cruse missiles) – of course discovering only when radar is turned on.
(1 option easier but more CPU use)
for turn on ability of radar to discover cruse missiles or mortar shells use actions (default are off to reduce cpu usage) near radar (just go near radar after start game and use one of user actions on it) or in init line of radar unit (in editor) put:
this setvariable [‘missile_on’,true,true];
this setvariable [‘shell_on’,true,true];
(2 option no CPU use)
used with implemented in arma incoming missile detection system (good for ships to defend from missiles) 🙂 :
this addEventHandler ["IncomingMissile", {[_this#2,_this#4] call HWK_Fnc_AMS_markincome}];
for make autospawn marker on fire missile by luncher put in init of this luncher unit:
this addEventHandler ["Fired", {[_this#0,_this#6,[]] call HWK_Fnc_AMS_mark}];
or
this addEventHandler ["Fired", {[_this#0,_this#6,["ammo1","ammo2"]] call HWK_Fnc_AMS_mark}];
– ammo1/ammo2….. – (optional) types of amunition to be marked when vehicle fire/lunch (to prevent mark for example bullets from guns).
Example:
this addEventHandler ["Fired", {[_this#0,_this#6,[‘rhs_ammo_kh55sm’,’rhs_ammo_kh55sm_nocamo’,’rhs_ammo_kh55sh’,’rhs_ammo_kh55sh_nocamo’]] call HWK_Fnc_AMS_mark}]
in script default is only cruse missiles and mortar shells models added for mark.
– feature is already implemented to VLS vanilla (destroyer) luncher.
– for rhs tochka scud rocket
– for tu95 cruse missiles – (they have some limited livetime or bug beacouse on range about > 100km they can froze in air 🙂 so don’t use them on long ranges like on huge TOH asia map).
Nuclear warheads make big craters after detonation (made by script below – builded in)
For some reason mlrs rockets used in vanilla not possible to attach dummy to them (submunition issue)
– for free use function for generate crater after impact:
[(getpos impact),depth,diameter,true] spawn HWK_Fnc_AMS_CRATER_GEN
(true mean clear all objects in blast area)
– example of using crater create dunction with bombs to make craters on drop specific type of bomb:
plane addEventHandler ["Fired", {[_this#0,_this#6,["Bo_Mk82","Bo_Mk82_MI08"]] call HWK_Fnc_AMS_mark_bombs}];
plane addEventHandler ["Fired", {[_this#0,_this#6,["USAF_Bo_B61"]] call HWK_Fnc_AMS_mark_nuclear}];
– example of use it for make crater after impact crashed plane:
this addEventHandler ["EpeContactStart", {[_this#0,_this#4,_this#6] spawn HWK_Fnc_AMS_impact}];
Revisions:
Old revisions of this mod are available below. Click the link to download.