Bug fix with voice chat

master
AlmTech Software 5 years ago
parent b771dca425
commit 6e5f8bd85f
  1. 2
      gamemode/engine/core/server/sv_player_voice.lua

@ -6,5 +6,5 @@
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
function GM:PlayerCanHearPlayersVoice( lis, talk )
if( lis:GetPos():Distance( talk:GetPos() ) > Quantum.Server.Settings.VoiceChatRange ) then return false, true end
if( lis:GetPos():Distance( talk:GetPos() ) <= Quantum.Server.Settings.VoiceChatRange ) then return false, true end
end
Loading…
Cancel
Save