mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 19:06:29 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
30
SQF/dayz_code/compile/player_alertZombies.sqf
Normal file
30
SQF/dayz_code/compile/player_alertZombies.sqf
Normal file
@@ -0,0 +1,30 @@
|
||||
private ["_unit","_distance","_listTalk","_zombie","_targets","_pos","_doRun"];
|
||||
//Alert Zed's to noise of shot
|
||||
_unit = _this select 0;
|
||||
_distance = _this select 1;
|
||||
_doRun = _this select 2;
|
||||
_pos = _this select 3;
|
||||
_listTalk = _pos nearEntities ["zZombie_Base",_distance/2];
|
||||
|
||||
if ("ItemMap_Debug" in items player) then {
|
||||
diag_log ("alertzeds Unit: " +str(_unit));
|
||||
diag_log ("alertzeds Distance: " +str(_distance/2));
|
||||
diag_log ("alertzeds DoRun: " +str(_doRun));
|
||||
diag_log ("alertzeds Pos: " +str(_pos));
|
||||
diag_log ("alertzeds ListTalk: " +str(_listTalk));
|
||||
};
|
||||
|
||||
//hint str(_listTalk);
|
||||
|
||||
{
|
||||
_zombie = _x;
|
||||
if (_doRun) then {
|
||||
_targets = _zombie getVariable ["targets",[]];
|
||||
if (!(_unit in _targets)) then {
|
||||
_targets set [count _targets,_unit];
|
||||
_zombie setVariable ["targets",_targets,true];
|
||||
};
|
||||
} else {
|
||||
_zombie setVariable ["myDest",_pos,true];
|
||||
};
|
||||
} forEach _listTalk;
|
||||
Reference in New Issue
Block a user