mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
0.1
This commit is contained in:
11
dayz_code/compile/player_music.sqf
Normal file
11
dayz_code/compile/player_music.sqf
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user