mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
11 lines
349 B
Plaintext
11 lines
349 B
Plaintext
private["_zombie","_type","_chance","_rnd","_sound"];
|
|
while {!r_player_dead} do {
|
|
_num = round(random 35);
|
|
_sound = "z_suspense_" + str(_num);
|
|
_length = getNumber(configFile >> "cfgMusic" >> _sound >> "Duration");
|
|
_pause = ((random 5) + 2) + _length;
|
|
if (!r_player_unconscious and !r_pitchWhine) then {
|
|
playMusic _sound;
|
|
};
|
|
sleep _pause;
|
|
}; |