diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-21 23:43:20 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-21 23:43:20 +0100 |
commit | cd727a453a7d42a61bd161ea0c9947aee644e4f1 (patch) | |
tree | 9edff3d29292be84d4a7d76df993fdc96aeb082a /NorthstarDedicatedTest/chatcommand.cpp | |
parent | 125f53aaa690e4870af88aa3a8947ac5ac0b435d (diff) | |
download | NorthstarLauncher-cd727a453a7d42a61bd161ea0c9947aee644e4f1.tar.gz NorthstarLauncher-cd727a453a7d42a61bd161ea0c9947aee644e4f1.zip |
more work on dedicated and launcher
Diffstat (limited to 'NorthstarDedicatedTest/chatcommand.cpp')
-rw-r--r-- | NorthstarDedicatedTest/chatcommand.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/NorthstarDedicatedTest/chatcommand.cpp b/NorthstarDedicatedTest/chatcommand.cpp index 4742b5fd..0009cf1c 100644 --- a/NorthstarDedicatedTest/chatcommand.cpp +++ b/NorthstarDedicatedTest/chatcommand.cpp @@ -3,24 +3,25 @@ #include "concommand.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 typedef void(__fastcall *ClientSayTextType)(void* a1, const char* message, __int64 isIngameChat, bool isTeamChat); -ClientSayTextType SayText; +ClientSayTextType ClientSayText; void ConCommand_say(const CCommand& args) { if (args.ArgC() >= 2) - SayText(nullptr, args.ArgS(), true, false); + ClientSayText(nullptr, args.ArgS(), true, false); } void ConCommand_say_team(const CCommand& args) { if (args.ArgC() >= 2) - SayText(nullptr, args.ArgS(), true, true); + ClientSayText(nullptr, args.ArgS(), true, true); } void InitialiseChatCommands(HMODULE baseAddress) { - SayText = (ClientSayTextType)((char*)baseAddress + 0x54780); + 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); }
\ No newline at end of file |