This commit is contained in:
2023-10-01 20:58:19 +03:00
parent 6268a86c47
commit 6576a3ab6f
53 changed files with 1249 additions and 508 deletions

View File

@ -0,0 +1,6 @@
/*
DZAI Version Identifier File
*/
#define DZAI_CLIENT_TYPE "DZAI Client Addon"
#define DZAI_CLIENT_VERSION "1.0.0"

View File

@ -0,0 +1,15 @@
if (isServer) exitWith {};
/*
DZAI Client-side Addon Configuration File
*/
//Enables use of client-side radio functions. DZAI_clientRadio must be set 'true' in dzai_config.sqf.
DZAIC_radio = false;
//Enables AI hostility to zombies. DZAI_zombieEnemy must be set 'true' in dzai_config.sqf.
DZAIC_zombieEnemy = false;
//Enables death messages to be displayed to players who kill AI units. DZAI_deathMessages must be set 'true' in dzai_config.sqf
DZAIC_deathMessages = false;

View File

@ -0,0 +1,37 @@
if (isServer) exitWith {};
#include "DZAI_client_version.hpp"
diag_log format ["[DZAI] Initializing %1 version %2.",DZAI_CLIENT_TYPE,DZAI_CLIENT_VERSION];
call compile preprocessFileLineNumbers "dayz_code\DZAI_Client\dzai_client_config.sqf";
if (DZAIC_radio) then {
"DZAI_SMS" addPublicVariableEventHandler {
if (isNil "DZAI_noRadio") then {
systemChat (_this select 1);
DZAI_noRadio = true;
_nul = (_this select 1) spawn {
for "_i" from 1 to 2 do {cutText [_this, "PLAIN DOWN"];sleep 0.5;};
DZAI_noRadio = nil;
};
};
};
};
if (DZAIC_zombieEnemy) then {
"DZAI_ratingModify" addPublicVariableEventHandler {
_targets = (_this select 1) select 0;
_rating = (_this select 1) select 1;
{
if (local _x) then {_x addRating _rating};
} forEach _targets;
};
};
if (DZAIC_deathMessages) then {
"DZAI_killMSG" addPublicVariableEventHandler {
systemChat format ["%1 was killed",(_this select 1)];
//diag_log format ["DZAI Debug: %1 was killed.",(_this select 1)];
};
};

View File

@ -49,8 +49,4 @@ if (!isDedicated) then {
vg_limit = [["350z_red",2],["Land",5],["AH1Z",1],["Air",3],["Ship",1]];
vg_limit = 5;
*/
};
Z_singleCurrency = true;
Z_globalBanking = true;
Z_globalBankingTraders = true;
};