Jump to content

[RELEASE] DZAI [Updated for 1.0.7]


Relentless

Recommended Posts

Hello there,

just want to release DZAI for the new Epoch version. This addon is not made by me. The original author is SnarkIndustries.
Visit his GitHub: https://github.com/SnarkIndustries
Sadly, he is no longer active and also his donation link is suspended, so I can just give some credits.

Special thanks to Salival who updated the addon. I just updated the install instructions, cleaned up the repository a bit
and fixed broken links and paths.

Download and installation is provided on salivals github.
https://github.com/oiad/DZAI

Greetz Relentless :)

Link to comment
Share on other sites

  • 2 months later...

The minimum of players is one (1).

Your RPT should show something like this after someone join:

Spoiler

13:29:36 "[DZAI] Initializing DZAI version 2.2.1 Release Build 20141208 using base path z\addons\dayz_server\DZAI."

13:29:36 "[DZAI] Reading DZAI configuration file."

13:29:36 "[DZAI] DZAI configuration file loaded."

13:29:36 "[DZAI] Compiling DZAI functions."

13:29:36 "[DZAI] DZAI functions compiled."

13:29:36 "[DZAI] Epoch classnames loaded."

13:29:36 "[DZAI] DZAI settings: Debug Level: 0. DebugMarkers: false. WorldName: napf. ModName: epoch (Ver: dayz epoch 1.0.6.1). DZAI_dynamicWeaponList: true. VerifyTables: true."

13:29:36 "[DZAI] AI spawn settings: Static: true. Dynamic: true. Random: false. Air: true. Land: true."

13:29:36 "[DZAI] AI settings: DZAI_findKiller: true. DZAI_useHealthSystem: true. DZAI_weaponNoise: true. DZAI_zombieEnemy: true."

13:29:36 "[DZAI] DZAI loading completed in 0.529053 seconds."

If not, you do something wrong at the installation.

 

Link to comment
Share on other sites

  • 2 weeks later...

Posting this here because following the guide for an older version will drive you in circles and being here will hopefully eliminate too many questions about it. Maybe even put in a pull to have it in the repository to start with?

To get coins in ai wallet, you need to edit 2 files

dzai\init\dzai_config.sqf

Spoiler

insert these variables underneath DZAI_humanityGain = 50:


//Amount of money to reward player for killing an AI unit (Default: false)									
DZAI_moneyGain = true;

//If ai_hasMoney=true, this defines what's the max amount of money an AI can hold, this value gets multiplied by 10, means if ai_moneyAmount=3000 the maximum amount an AI can hold is 30000
DZAI_moneyAmount = 3000;

 

and dzai\compile\ai_death.sqf

Spoiler

at the bottom just before _victim


if (DZAI_moneyGain && Z_singleCurrency) then {
		_cash = round(random DZAI_moneyAmount) * 10; // adds money to ai wallets in 10x increments. 
		_victim setVariable[Z_MoneyVariable,_cash ,true];
	};

 

When you check the ai wallet youll get a random 10 to 30000 cash!

Link to comment
Share on other sites

  • 4 weeks later...

Add [ _killer = effectiveCommander vehicle _killer; ] into fn_cuntkills.sqf like this:

Spoiler
private ["_killer","_victim","_killType","_killCount"];
_killer = _this select 0;
_victim = _this select 1;
_killType = _this select 2;
_killer = effectiveCommander vehicle _killer;
_killCount = _killer getVariable [_killType,0];
_killer setVariable [_killType,(_killCount +1),true];
if (DZAI_humanityGain != 0) then {
 _humanity = _killer getVariable["humanity",0];
 _humanity = _humanity + DZAI_humanityGain;
 _killer setVariable["humanity",_humanity,true];
};

This will make humanity when you kill an AI with a vehicle turret weapon.

(PvP kill in 1.0.6 already has this feature)

Link to comment
Share on other sites

  • 2 months later...

Hi Dam and tnx for the great work,

I have a question that probably the answer is right before my eyes and cant see :)

Is there a way to choose the spawn points of the land patrols? And also to make the cars be temp but stay unlocked if players decide to claim them?

Thanks again

Link to comment
Share on other sites

1 hour ago, totis said:

Hi Dam and tnx for the great work,

I have a question that probably the answer is right before my eyes and cant see :)

Is there a way to choose the spawn points of the land patrols? And also to make the cars be temp but stay unlocked if players decide to claim them?

Thanks again

No, land patrols (I guess you mean the guys in the cars) are spawned dynamically all over the map depending on how many you set max. The higher you set the DZAI_maxLandPatrols variable, the higher is the chance to spot one of these guys. As far as I know there is no static spawn system integreated, that's only possible for infantry.

The cars are temporary by default. As far as I remember there is the message "This vehicle won't stay over server restart" or something like that. Means that it will not be saved to the database. But there's no claim option.

But these are nice suggestions. Let's see if I do a remake of that script when I am done with updating my current scripts.

Link to comment
Share on other sites

I can't figure out how to get this to work.  I followed the two guides linked on your Github.  I'm using a survival servers as a host and my missions folder does not contain a dayz_code folder so I thought I could just place it within my mission folder then change where the files were looking to "DZAI_Client\dzai_initclient.sqf" instead of "dayz_code\DZAI_Client\dzai_initclient.sqf" and everything would be fine.  It does not appear to be loading when a player connects.  I've attached a screenshot of the mission folder I am able to download from the server host and a link to my RPT file. https://pastebin.com/qWf3PMfY 

 

folderscreenshot.png

Link to comment
Share on other sites

@Tuhjay

The client files are not even necessary to run the AI system. This shouldn't be the problem. Make sure you placed the line in the server_monitor.sqf right.
The dayz_code folder only exists if you already have custom scripts that actually use this folder. If you don't have it, simply create one or change all the paths.

Link to comment
Share on other sites

  • 3 weeks later...
On 7/8/2017 at 7:44 AM, Schalldampfer said:

Add [ _killer = effectiveCommander vehicle _killer; ] into fn_cuntkills.sqf like this:

  Reveal hidden contents
private ["_killer","_victim","_killType","_killCount"];
_killer = _this select 0;
_victim = _this select 1;
_killType = _this select 2;
_killer = effectiveCommander vehicle _killer;
_killCount = _killer getVariable [_killType,0];
_killer setVariable [_killType,(_killCount +1),true];
if (DZAI_humanityGain != 0) then {
 _humanity = _killer getVariable["humanity",0];
 _humanity = _humanity + DZAI_humanityGain;
 _killer setVariable["humanity",_humanity,true];
};

This will make humanity when you kill an AI with a vehicle turret weapon.

(PvP kill in 1.0.6 already has this feature)

@Schalldampfer i know this works when you are the gunner of vehicle but is there a way for it to work with say an armed littlebird or mi17 rockets? you are the pilot and gunner but doesnt seem to give humanity the way a vehicle with a driver and a separate gunner works. 

Link to comment
Share on other sites

maybe you need to add humanity separately for them like

Spoiler

{
_killer = _x

_killCount = _killer getVariable [_killType,0];
_killer setVariable [_killType,(_killCount +1),true];

if (DZAI_humanityGain != 0) then {
    _humanity = _killer getVariable["humanity",0];
    _humanity = _humanity + DZAI_humanityGain;
    _killer setVariable["humanity",_humanity,true];
};

} forEach (crew _killer);

I haven't tested this yet

Link to comment
Share on other sites

1 hour ago, DieTanx said:

How does Blacklist Work? Can somebody explain how i would set this up.  example shows blacklist1, blacklist 2, but unsure what this means

Set a marker in your mission.sqm underneath "class Markers" and make sure to increase the items of markers when you add one. then you can enter the name of this marker in the blacklist.

Link to comment
Share on other sites

On 10/14/2017 at 1:30 AM, DAmNRelentless said:

Set a marker in your mission.sqm underneath "class Markers" and make sure to increase the items of markers when you add one. then you can enter the name of this marker in the blacklist.

could i just use     name="Tradercitystary";    name="AirVehicles";  these names in the array? 
or does it need specificly the blacklist area?

Link to comment
Share on other sites

  • 2 weeks later...

Hey,

So I'm having an issue to where I am finding ai roaming on the ground even with 

DZAI_maxRandomSpawns = 0;

Most of the time I have found that the vehicle is flipped over and the ai get out and just walk away. A couple times I have not seen any vehicle in sight from where the ai are walking from / near the ai. Any ideas? I'm testing using the default setting for the "AI Land vehicle patrol settings"

Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...