Files
DayZ-Epoch/dayz_code/compile/player_music.sqf
Aaron Clark 76e9a0582e 0.1
2012-11-04 20:28:50 -06:00

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;
};