Skip to content

Commit

Permalink
Merge pull request #701 from FIr3baL/FB_ByPass_RingCommand_InGame
Browse files Browse the repository at this point in the history
bypass command buffering for command RING
  • Loading branch information
FIr3baL authored Jun 6, 2024
2 parents 6597c0d + ebf91af commit 3e0b5b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions LuaMenu/widgets/api_command_buffering.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ end

local bufferBypass = {
Ping = true,
RING = true,
--[[ ZK only
Welcome = true,
AreYouReady = true,
Expand Down
5 changes: 5 additions & 0 deletions libs/liblobby/lobby/interface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,12 @@ function Interface:_OnRequestBattleStatus()
end
Interface.commands["REQUESTBATTLESTATUS"] = Interface._OnRequestBattleStatus

-- 2024-06-06 FB: Ring is bypassed during command buffering. So we make sure, that ingameNotifications is on before playing the sound
function Interface:_OnRing(userName)
local Configuration = WG.Chobby.Configuration
if self.bufferCommandsEnabled and not Configuration.ingameNotifcations then
return
end
self:_CallListeners("OnRing", userName)
end
Interface.commands["RING"] = Interface._OnRing
Expand Down

0 comments on commit 3e0b5b4

Please sign in to comment.