1
0
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:
Python1320 2023-10-05 12:23:43 +03:00 committed by GitHub
parent ddd59791af
commit 54d2bce684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"