mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 21:29:59 +03:00
fly experiment
This commit is contained in:
@@ -19,7 +19,8 @@ _num = switch (_type) do {
|
||||
case "dog_bark": {4};
|
||||
case "dog_growl": {3};
|
||||
case "dog_qq": {2};
|
||||
case "keypad_tick": {2};
|
||||
case "keypad_tick": {2};
|
||||
case "flysound": {1};
|
||||
case "open_backpack": {4};
|
||||
case "open_inventory": {4};
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
private ["_type","_inVehicle","_dateNow","_maxWildZombies","_age","_radius","_position","_markerstr","_markerstr1","_markerstr2","_markerstr3","_nearByObj","_handle","_looted","_cleared","_zombied","_config","_canLoot","_dis","_players","_nearby","_nearbyCount","_onTheMove"];
|
||||
private ["_type","_inVehicle","_dateNow","_maxWildZombies","_age","_radius","_position","_markerstr","_markerstr1","_markerstr2","_markerstr3","_nearByObj","_handle","_looted","_cleared","_zombied","_config","_canLoot","_dis","_players","_nearby","_nearbyCount","_onTheMove","_soundLimit"];
|
||||
//_t1 = diag_tickTime;
|
||||
|
||||
_type = _this select 0;
|
||||
@@ -13,6 +13,16 @@ _position = getPosATL player;
|
||||
dayz_spawnZombies = 0;
|
||||
dayz_CurrentZombies = 0;
|
||||
|
||||
// experiment with adding fly sounds locally for both zombies and players.
|
||||
_soundLimit = 3;
|
||||
{
|
||||
if (!alive _x) then {
|
||||
[player,"flysound",0,true] call dayz_zombieSpeak;
|
||||
_soundLimit = _soundLimit - 1;
|
||||
};
|
||||
if (_soundLimit == 0) exitWith {};
|
||||
} foreach (nearestObjects [player, ["CAManBase"], 8]);
|
||||
|
||||
_players = _position nearEntities ["CAManBase",_radius+200];
|
||||
dayz_maxGlobalZombies = dayz_maxGlobalZombiesInit;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user