You've already forked arma2-epoch-server
Commit
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
/*
|
||||
DZAI Version Identifier File
|
||||
*/
|
||||
|
||||
#define DZAI_CLIENT_TYPE "DZAI Client Addon"
|
||||
#define DZAI_CLIENT_VERSION "1.0.0"
|
@ -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;
|
@ -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)];
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user