diff options
Diffstat (limited to 'NorthstarDedicatedTest/chatcommand.cpp')
-rw-r--r-- | NorthstarDedicatedTest/chatcommand.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/chatcommand.cpp b/NorthstarDedicatedTest/chatcommand.cpp index 0009cf1c..c0f91e66 100644 --- a/NorthstarDedicatedTest/chatcommand.cpp +++ b/NorthstarDedicatedTest/chatcommand.cpp @@ -1,6 +1,7 @@ #include "pch.h" #include "chatcommand.h" #include "concommand.h" +#include "dedicated.h" // note: isIngameChat is an int64 because the whole register the arg is stored in needs to be 0'd out to work // if isIngameChat is false, we use network chat instead @@ -21,6 +22,9 @@ void ConCommand_say_team(const CCommand& args) void InitialiseChatCommands(HMODULE baseAddress) { + if (IsDedicated()) + return; + ClientSayText = (ClientSayTextType)((char*)baseAddress + 0x54780); RegisterConCommand("say", ConCommand_say, "Enters a message in public chat", FCVAR_CLIENTDLL); RegisterConCommand("say_team", ConCommand_say_team, "Enters a message in team chat", FCVAR_CLIENTDLL); |