|
|
@ -6,5 +6,5 @@ |
|
|
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
|
|
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
|
|
|
|
|
|
|
|
|
|
|
function GM:PlayerCanHearPlayersVoice( lis, talk ) |
|
|
|
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 |
|
|
|
end |