mirror of
https://github.com/Earu/EasyChat.git
synced 2025-03-04 03:13:20 -05:00
Use engine.ActiveGamemode() instead of Name (#114)
This commit is contained in:
parent
ddd59791af
commit
54d2bce684
@ -1,7 +1,7 @@
|
||||
if gmod.GetGamemode().Name ~= "terrortown" then return "Terrortown Compat" end
|
||||
|
||||
hook.Add("ECVoiceHUD", "EasyChatModuleTerrortown", function()
|
||||
return false -- DISABLED: TTT Voice HUD affects traitor voice mode
|
||||
end)
|
||||
if engine.ActiveGamemode() == "terrortown" then
|
||||
hook.Add("ECVoiceHUD", "EasyChatModuleTerrortown", function()
|
||||
return false -- DISABLED: TTT Voice HUD affects traitor voice mode
|
||||
end)
|
||||
end
|
||||
|
||||
return "Terrortown Compat"
|
||||
|
Loading…
Reference in New Issue
Block a user