Jump to content

Zone Alpha


gunnar

Recommended Posts

How To do ai on dayzai please say if it possible

 

It can be done but it may be messy. DZAI is a very simplified AI manager compared to SargeAI. Through DZAI the infantry patrols area must match the spawn area and this means the aI may roam quite a bit around Zone Alpha. Either way, here is how it's done.

 

Open cust_markers_chernarus.sqf and paste this in:

// Infantry - Zone Alpha
_this = createMarker ["DZAI_patrol_zone_alpha_inf_1", [8134,13461]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerAlpha 0;
DZAI_patrol_zone_alpha_inf_1 = _this;

// Infantry - Zone Alpha
_this = createMarker ["DZAI_patrol_zone_alpha_inf_2", [8062.5,13578]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerAlpha 0;
DZAI_patrol_zone_alpha_inf_2 = _this;

// Infantry - Zone Alpha
_this = createMarker ["DZAI_patrol_zone_alpha_inf_3", [8031,13651]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerAlpha 0;
DZAI_patrol_zone_alpha_inf_3 = _this;

// Infantry - Zone Alpha
_this = createMarker ["DZAI_patrol_zone_alpha_inf_4", [7969,13647]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerAlpha 0;
DZAI_patrol_zone_alpha_inf_4 = _this;

// Infantry - Zone Alpha
_this = createMarker ["DZAI_patrol_zone_alpha_inf_5", [8093,13698]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerAlpha 0;
DZAI_patrol_zone_alpha_inf_5 = _this;

// Infantry - Zone Alpha
_this = createMarker ["DZAI_patrol_zone_alpha_inf_6", [8200,13360]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Flag";
_this setMarkerBrush "Solid";
_this setMarkerSize [200, 200];
_this setMarkerAlpha 0;
DZAI_patrol_zone_alpha_inf_6 = _this;

Then open cust_spawns_chernarus.sqf and paste this in:

[
     "DZAI_patrol_zone_alpha_inf_1",
     5,
     2,
     false
] call DZAI_spawn;

[
     "DZAI_patrol_zone_alpha_inf_2",
     5,
     2,
     false
] call DZAI_spawn;

[
     "DZAI_patrol_zone_alpha_inf_3",
     5,
     2,
     false
] call DZAI_spawn;

[
     "DZAI_patrol_zone_alpha_inf_4",
     5,
     2,
     false
] call DZAI_spawn;

[
     "DZAI_patrol_zone_alpha_inf_5",
     5,
     2,
     false
] call DZAI_spawn;

[
     "DZAI_patrol_zone_alpha_inf_6",
     5,
     2,
     false
] call DZAI_spawn;

If you read the examples at the top of both files you can see what's going on. DZAI uses a marker size as both a spawn area as well as a patrol range. In what I provided, the spawn and patrol area is a circle of 200 meters. When a player enters the 200m range, the AI will spawn and begin to patrol within that 200m circle. You should also notice I have 5 AI spawning with the military barracks loot. So, that's 30 AI in approximately the same 200m area using military barracks loot.

 

I do not know if this will work, it isn't something I've tested. I am only using the DZAI examples to convert the SargeAI information provided by earlier posters. Maybe I will add this to my server and see if it actually works out.

 

Also, I didn't do heli patrol spawns nor do the weapon crates spawns. I figure killing 30 really tough AI with the reward being barracks loot, by itself, was good enough. Oh yeah, I have it so the AI doesn't respawn. Once Zone Alpha is cleared, it's cleared. I'm sure you can see where you can change this if you want respawning AI.

 

You may consider adding a zombie remover as well since it can get really hectic with both AI and zombie spawns.

 

-edit-

Added to my server and it works.

Link to comment
Share on other sites

Hello. First i would like to thank you for sharing your work. I really like this Ai base, but i have 2 little problems with it. First. some bandits spawn inside the hangar floors. when they lie down you cant see them at all and they just keep shooting. is there any fix to this? would lowering hangars help and if so how would i do that? (Sorry im VERY new to this). Second problem is that the loot boxes disappear when first mission comes. anyway to fix this?

 

This is not a problem but i would like to know if theres some way i could modify zone alpha bandits loot. i would like to add  rpg as possible spawn for one of the bandits.

 

Again thanks for sharing. base looks great!

Link to comment
Share on other sites

I have the same issue as Phantom. The Loot Crates are disappearing, when the first mission comes in. Is this related to the Epoch event system? I'm also using Torndeco's bandit missions. Anyone have a fix for this? 

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...
  • 3 weeks later...
  • 2 months later...

Was anyone successful in incorporating WAI into this mission and can share their spawn info?

It's not the best work because of my skill level, but for me its working - sry because of my bad english.

This all was based on the re-worked wai. All credits go to the developer of wai.

Try this...

Download the files from Dropbox KLICK and unpack it. Open your dayz_server.pbo and go to the WAI folder.

Put the "zoneAlphaIni.sqf" file in your dayz_server\WAI\Missions folder.

Put the "zone_alpha.sqf" file in´your dayz_server\WAI\missions\missions folder.

Go to your WAI main folder. Open the Init.sqf.

At the end you will find this:

if (ai_mission_sysyem) then {
	//Load AI mission system
	[] ExecVM "\z\addons\dayz_server\WAI\missions\missionIni.sqf";
};
change it to this:
if (ai_mission_sysyem) then {
	//Load AI mission system
	[] ExecVM "\z\addons\dayz_server\WAI\missions\missionIni.sqf";
	//Load Zone Alpha
	[] ExecVM "\z\addons\dayz_server\WAI\missions\zoneAlphaIni.sqf";
};
Thats it. It works for me on Epoch 1.0.5.1 / 125548 - maybe there will be a few error in exception messages in rpt but it works. The ai will spawn on every restart and stay there until next restart. Fell free to upgrade the alpha_zone.sqf missionfile - maybe more loot and better spawnpoints for the vehicle patrols - i dont know how to change yet. Pls share your upgrades with me :)

I hope it will work for those who use WAI.

edit:

Or just use the custom spawns - read this thread:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...