Fixed voice chat bug

master
AlmTech Software 5 years ago
parent 0a12df1522
commit 83e95f2d3b
  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
return lis:GetPos():Distance( talk:GetPos() ) <= Quantum.Server.Settings.VoiceChatRange, true
end
Loading…
Cancel
Save