Tiberius_161 40 Posted February 6, 2020 Hi all, This is the first version of a simple CBF (counter battery fire) script. It is designed to make the artillery or mortar role more challenging by adding a threat. When you fire your artillery piece/ mortar, there is a chance of enemy fire support shooting at the location where you fired from. Package contains: 1) Example mission; 2) Script folder; 3) initserver.sqf file; Usage: Have a mission available or save a new mission to create the mission folder; In the editor, place down any object and call it "Tib_CBF_radar" (this object will serve as a radar to detect artillery shots); In the editor, place down enemy artillery or mortar units and name them (keep their minimum and maximum range in mind when placing them); In the editor, place down a own/friendly artillery piece or mortar and add the following code in the unit's init: this addEventHandler ["Fired", {null = [_this select 0, _this select 1] execVM "TibCBF\cbf.sqf"}]; Copy the "TibCBF" folder into your own mission folder; Copy the "initserver.sqf" file into your mission folder, or copy the content from that file into your own initserver.sqf; In the "initserver.sqf" file, put the name of the enemy guns in the "TibCBF_nmyGunList = [];" array. In the "initserver.sqf" file, set up your preferences as desired. Comments on the functions are provided. Spoiler TibCBF_CooldownTime = 0; //Cooldown before nmy gun can give CBF. You can give any value TibCBF_Chance = 0; //The chance per shot that CBF will be initiated. Maximum 100; TibCBF_nmyGunList = []; //The list of nmy guns that may provide CBF; TibCBF_responseTime = 0; //the Time it takes before nmy gun begins to fire TibCBF_ArtyRounds = 0; //Script will take five rounds, so value here will be added to that . TibCBF_ArtySpread = 0; //The amount of randomized spread between each round TibCBF_InfiniteAmmo = true; //Update enemy ammostock after CBF TibCBF_ShootandScoot = true; //Enemy guns will move to a new position when CB fire mission is completed. Download link: https://www.mediafire.com/folder/3ggseg2tleivx/ The folder is inside the example mission. Required mods: None You are free to use this and expand on this script, as long as you give credits ;). I hope it has some use for people! EDIT: I am no longer able to support this script. It will remain available for download. Apologies for any inconvenience 3 1 Share this post Link to post Share on other sites