Added voice chad proximity

master
AlmTech 5 years ago
parent fa8ab8024b
commit 0b5922cc59
  1. 10
      gamemode/core/server/sv_player_voice.lua
  2. 2
      gamemode/settings/sv_settings.lua

@ -0,0 +1,10 @@
-- __ _ _______ _ __
-- / / /\ | | |__ __| | | \ \
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > >
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / /
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/
function GM:PlayerCanHearPlayersVoice( lis, talk )
if( lis:GetPos():Distance( talk:GetPos() ) > Quantum.Server.Settings.VoiceChatRange ) then return false, true end
end

@ -7,6 +7,8 @@
Quantum.Server.Settings = {} Quantum.Server.Settings = {}
Quantum.Server.Settings.VoiceChatRange = 400
Quantum.Server.Settings.DamageScale = { -- The scale of the damage for each hitgroup Quantum.Server.Settings.DamageScale = { -- The scale of the damage for each hitgroup
[HITGROUP_HEAD] = 4, [HITGROUP_HEAD] = 4,
[HITGROUP_CHEST] = 2, [HITGROUP_CHEST] = 2,

Loading…
Cancel
Save