;This is a copy of the script that rules the ECP compatibility

;If the ECP is not present the script exit
? (format[{%1},ECP_path] == {scalar bool array string 0xfcffffef}) : exit

?NearEnd: goto "Restore"

;Disable heli dust
ECP_local set [33, false ]
;Add addition weapon class for AT backblast effect
ECP_local set [57, (ECP_local select 57) + ["JAM_AT4Rocket","prph_AT_C90"] ]
;Reduce the maximum number of bullets whiz sounds heard at any one instant by player to 1
ECP_local set [69, 1 ]
;Enable ECP explosions effects
ECP_local set [83, true ]
;Disable HALO scripts
ECP_local set [99, false ]
;Enable flies effect
ECP_local set [112, true ]
;Enable obstructive smoke shells
ECP_local set [130, true ];
;Enable aditional ECP explosions effects for vehicles
ECP_local set [141, true ]
;List of additional classes that weaponFX (smoke) is implemented for
ECP_local set [136, (ECP_local select 136) + ["prph_IX_w_inc","prph_IX_w_gl","prph_IX_w_atC90","prph_IX_w_sn","prph_IX_w_mit","BAS_JDeltaOperatorDES"] ]
;Enable suppressing fire from AI on player
ECP_local set [196, true ]
;Disable altitude warning and vehicle radio chatter
ECP_local set [198, false ]


;Disable tail rotor failure
ECP_public set [5, false  ]
;Disable random weather and snow
ECP_public set [19, false ]
;Disable lighthouse scripts
ECP_public set [26, false ]
;Disable jamming system script
ECP_public set [29, false ]
;Disable the player to join "Man" type units to his/her squad
ECP_public set [33, false ]
;Disable the player to release "Man" type units from his/her squad
ECP_public set [36, false ]
;Disable team leader to give AI helo pilot orders
ECP_public set [50, false ]
;Disable West AI to fire flares at night upon enemy contact
ECP_public set [56, 0 ]
;Enable East AI to fire flares at night upon enemy contact
ECP_public set [57, 1 ]
;Enable Resistance AI to fire flares at night upon enemy contact
ECP_public set [58, 1 ]
exit

;Below some of the settings changed above are reverted
;I've decided to restore only the settings that were disabled or changed from the default ECP values
#Restore
;Increase the maximum number of bullets whiz sounds heard at any one instant by player to 3
ECP_local set [69, 3 ]
;Enable HALO scripts
ECP_local set [99, true ]
;Enable altitude warning and vehicle radio chatter
ECP_local set [198, true ]

;Enable heli dust
ECP_local set [33, true ]
;Enable tail rotor failure
ECP_public set [5, true  ]
;Enable random weather and snow
ECP_public set [19, true ]
;Enable lighthouse scripts
ECP_public set [26, true ]
;Enable the player to join "Man" type units to his/her squad
ECP_public set [33, true ]
;Enable the player to release "Man" type units from his/her squad
ECP_public set [36, true ]
;Enable team leader to give AI helo pilot orders
ECP_public set [50, true ]
;Enable West AI to fire flares at night upon enemy contact
ECP_public set [56, 1 ]
exit
