diff --git a/SQF/dayz_code/compile/object_speak.sqf b/SQF/dayz_code/compile/object_speak.sqf index 223552db9..916dad31a 100644 --- a/SQF/dayz_code/compile/object_speak.sqf +++ b/SQF/dayz_code/compile/object_speak.sqf @@ -39,11 +39,10 @@ if (count _this > 4) then { }; _isWoman = getText(configFile >> "cfgVehicles" >> (typeOf _unit) >> "TextPlural") == "Women"; -if (_isWoman && (_type in ["scream","panic"])) then { +if (_isWoman && (_type in ["scream","panic","cough"])) then { _type = _type + "_w"; }; - if ((round(random _chance) == _chance) || (_chance == 0)) then { _rnd =(round(random _num)); _sound = "z_" + _type + "_" + str(_rnd); @@ -52,4 +51,4 @@ if ((round(random _chance) == _chance) || (_chance == 0)) then { } else { [nil,_unit,rSAY,[_sound, _dis]] call RE; }; -}; \ No newline at end of file +}; diff --git a/SQF/dayz_sfx/CfgSounds.hpp b/SQF/dayz_sfx/CfgSounds.hpp index 3123dad3e..362b2feff 100644 --- a/SQF/dayz_sfx/CfgSounds.hpp +++ b/SQF/dayz_sfx/CfgSounds.hpp @@ -145,6 +145,21 @@ class CfgSounds { sound[] = {"\dayz_sfx\effects\cough_2.ogg",0.3,1,40}; titles[] = {}; }; + class z_cough_w_0 { + name = ""; + sound[] = {"\dayz_sfx\effects\cough_w_0.ogg",0.5,1.5,40}; + titles[] = {}; + }; + class z_cough_w_1 { + name = ""; + sound[] = {"\dayz_sfx\effects\cough_w_1.ogg",0.4,1.5,40}; + titles[] = {}; + }; + class z_cough_w_2 { + name = ""; + sound[] = {"\dayz_sfx\effects\cough_w_2.ogg",0.3,1.5,40}; + titles[] = {}; + }; class z_bandage_0 { name = ""; sound[] = {"\dayz_sfx\effects\bandage_0.ogg",0.3,1,40}; diff --git a/SQF/dayz_sfx/effects/cough_w_0.ogg b/SQF/dayz_sfx/effects/cough_w_0.ogg new file mode 100644 index 000000000..e68528b54 Binary files /dev/null and b/SQF/dayz_sfx/effects/cough_w_0.ogg differ diff --git a/SQF/dayz_sfx/effects/cough_w_1.ogg b/SQF/dayz_sfx/effects/cough_w_1.ogg new file mode 100644 index 000000000..4d66dade3 Binary files /dev/null and b/SQF/dayz_sfx/effects/cough_w_1.ogg differ diff --git a/SQF/dayz_sfx/effects/cough_w_2.ogg b/SQF/dayz_sfx/effects/cough_w_2.ogg new file mode 100644 index 000000000..74986c7bc Binary files /dev/null and b/SQF/dayz_sfx/effects/cough_w_2.ogg differ