mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-19 22:52:56 +03:00
Skip gear sound in player_forceSave
Don't play sound when gear flashes open momentarily for force save and
backpack mag ammo count.
Vanilla commit:
98784aae79
This commit is contained in:
@@ -15,6 +15,7 @@ _created = false;
|
||||
if ( isNull _dialog ) then {
|
||||
//startLoadingScreen [""];
|
||||
DZE_GearCheckBypass = true; //Bypass gear menu checks since dialog will always open on player's gear
|
||||
skipGearSound = true; //Don't play sound for force save
|
||||
createGearDialog [player, "RscDisplayGear"];
|
||||
_dialog = findDisplay 106;
|
||||
_created = true;
|
||||
@@ -54,6 +55,7 @@ for "_i" from 122 to 129 do
|
||||
|
||||
if ( _created ) then {
|
||||
closeDialog 0;
|
||||
skipGearSound = false;
|
||||
//endLoadingScreen;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
if (skipGearSound) exitWith {};
|
||||
|
||||
private["_type"];
|
||||
_type="open_inventory";
|
||||
if( (!isNull cursorTarget) && (player distance cursorTarget < 5) && (vehicle player == player) ) then {
|
||||
|
||||
Reference in New Issue
Block a user