Sahrani...Sarge Ai Set up

reeper

New Member
I have worked out the grid and town locations for setting up sarge AI in sahrani....The first thing you need to do is download the text files from the download link...

Sarge Ai set up for Sahrani....
By Cockney Reeper..

In addons\SARGE\map_config
There are two main files....one ending cfg_grid
and one ending...............cfg_grps


copy and paste one of each to your desktop(dont matter which ones we are going to change them)

first we'll start with the cfg_grid file...
open it and change the settings as follows.....

Code:
_startx=500;
 
_starty=1000;
 
_gridsize_x=20;
 
_gridsize_y=20;
 
gridwidth=500;

when youve changed the values to the above, resave the file and save as SAR_cfg_grid_sahrani.sqf
make sure you save to desktop so you can grab file in a min.....

Now for the 2nd file the .cfg_grps file...

roughly from line 65- youll see a list of towns relating to the maps file you chose....
we need to make them sahrani locations. this is where you need to know which towns your going to put your ai....
theres no real limit as they only spawn when a player is close.....

eg...

Code:
// Cherno, 2 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
 
//_check = [["max_grps","rnd_grps","max_p_grp"],[[2,0,3],[75,0,75],[4,0,4]],"SAR_area_2_0"] call SAR_AI_mon_upd;
 
//(obviously i chose the chernarus file to edit)
 
//just for tidyness sake im going to add town name to first line..
 
// rahmadi, 2 bandit groups, 0 soldier groups, 3 survivor groups - spawn probability ba,so,su - maximum group members ba,so,su
 
//you can edit the group type, spawn chance and squad size to your likeing but the very import variable is the "SAR_area_2_0"
this is the grid ref, in this case because ive worked it out im going to change to.... "SAR_area_2_2".....
Uncheck the 2nd line so it becomes...
 
_check = [["max_grps","rnd_grps","max_p_grp"],[[2,0,3],[75,0,75],[4,0,4]],"SAR_area_2_2"] call SAR_AI_mon_upd;

thats all you need to do, then move onto the next town setup....use the text file marked 'town grid variables'

(you could set up heli patrols using same method but use file 'Air patrol location setup' for locations)
when youve finished editing the towns resave the file as..........SAR_cfg_grps_sahrani.sqf

You can now put both files back in the ......addons\SARGE\map_config..... folder from where they originally came from...


One last step....you need to edit your SAR_AI_init.sqf folder....location.... addons\SARGE\SAR_AI_init.sqf
at lines roughly 119 to 131 change to....

Code:
switch (_worldname) do {
 
 
    case "sahrani":
 
    {
 
      #include "map_config\SAR_cfg_grid_sahrani.sqf"
 
    };
 
    case "sara":
 
    {
 
        #include "map_config\SAR_cfg_grid_sahrani.sqf"
 
    };
 
};
 
//then at lines 206-218 change to.....
 
switch (_worldname) do {
 
 
    case "sahrani":
 
    {
 
        #include "map_config\SAR_cfg_grps_sahrani.sqf"
 
    };
 
case "sara":
 
    {
 
        #include "map_config\SAR_cfg_grps_sahrani.sqf"
 
    };
 
};
 
//resave, repack, and upload your mission file....all finished....

Download Link
 
Back
Top