From 807b0c5ac874d5cdb78ae39c5145ba2c97ee5607 Mon Sep 17 00:00:00 2001 From: Panisher <37155162+Panisher@users.noreply.github.com> Date: Mon, 13 Jan 2020 15:19:28 +0300 Subject: [PATCH 1/4] This sound was heard all over the map --- addons/overheating/functions/fnc_jamWeapon.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/overheating/functions/fnc_jamWeapon.sqf b/addons/overheating/functions/fnc_jamWeapon.sqf index f8518add8ea..4fff5a51dc0 100644 --- a/addons/overheating/functions/fnc_jamWeapon.sqf +++ b/addons/overheating/functions/fnc_jamWeapon.sqf @@ -55,7 +55,7 @@ if (_unit getVariable [QGVAR(JammingActionID), -1] == -1) then { }; private _statement = { - playSound3D ["a3\sounds_f\weapons\Other\dry9.wss", _this select 0]; + playSound3D ["a3\sounds_f\weapons\Other\dry9.wss", _this select 0, false, eyePos (_this select 0), 1, 1, 15]; if (!(missionNamespace getVariable [QGVAR(knowAboutJam), false]) && {(_this select 1) ammo currentWeapon (_this select 1) > 0} && {GVAR(DisplayTextOnJam)}) then { [localize LSTRING(WeaponJammed)] call EFUNC(common,displayTextStructured); From d2683bfd1b33a82c57de701ff932e72eb78c274b Mon Sep 17 00:00:00 2001 From: Panisher <37155162+Panisher@users.noreply.github.com> Date: Mon, 13 Jan 2020 15:59:02 +0300 Subject: [PATCH 2/4] secondaryWeapon changed to handgunWeapon --- addons/overheating/functions/fnc_clearJam.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/overheating/functions/fnc_clearJam.sqf b/addons/overheating/functions/fnc_clearJam.sqf index 44b219fda28..61e84fe9068 100644 --- a/addons/overheating/functions/fnc_clearJam.sqf +++ b/addons/overheating/functions/fnc_clearJam.sqf @@ -36,7 +36,7 @@ if (_weapon in _jammedWeapons) then { if (_weapon == primaryWeapon _unit) then { playSound QGVAR(fixing_rifle); } else { - if (_weapon == secondaryWeapon _unit) then { + if (_weapon == handgunWeapon _unit) then { playSound QGVAR(fixing_pistol); }; }; From c755767090fd23f67ec82644d0be03dcb8b387fe Mon Sep 17 00:00:00 2001 From: Panisher <37155162+Panisher@users.noreply.github.com> Date: Mon, 13 Jan 2020 16:03:23 +0300 Subject: [PATCH 3/4] add jamming sound --- addons/overheating/functions/fnc_jamWeapon.sqf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/overheating/functions/fnc_jamWeapon.sqf b/addons/overheating/functions/fnc_jamWeapon.sqf index 4fff5a51dc0..e3a5bb793ad 100644 --- a/addons/overheating/functions/fnc_jamWeapon.sqf +++ b/addons/overheating/functions/fnc_jamWeapon.sqf @@ -40,6 +40,14 @@ if (_ammo > 0) then { }, [_unit, _weapon, _ammo]] call CBA_fnc_execNextFrame; }; +if (_weapon == primaryWeapon _unit) then { + playSound QGVAR(jamming_rifle); +} else { + if (_weapon == handgunWeapon _unit) then { + playSound QGVAR(jamming_pistol); + }; +}; + // only display the hint once, after you try to shoot an already jammed weapon GVAR(knowAboutJam) = false; From fee201e46d569bdc6a5d8a0654c435745a656c87 Mon Sep 17 00:00:00 2001 From: Panisher <37155162+Panisher@users.noreply.github.com> Date: Mon, 13 Jan 2020 16:09:22 +0300 Subject: [PATCH 4/4] add yourself to AUTHORS.txt --- AUTHORS.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.txt b/AUTHORS.txt index 37f79efcc25..020662aea05 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -120,6 +120,7 @@ nomisum OnkelDisMaster Orbis2358 oscarmolinadev +Panisher (Tushino Serious Games) PaxJaromeMalues PiZZADOX <509thParachuteInfantry@gmail.com> Phyma