j0d
j0d
CC#
Created by j0d on 3/8/2023 in #help
✅ Adding functionality to a call of duty mw2 (2009) steam tool
Hello, I have a tool which creates clean mw2 lobbies (free from mods etc). It has a kick feature which i use to kick players who are modding, but it does not ban them. To ban them i have to take their XUID from the tool and put it into a notepad file, but unfortunately my tool doesn't specify which XUID links to which players steam name. I have code which gets the steam name and i have code which grabs the XUID but i am struggling to put them together. Here is the code for getting the players steam name using hexadecimal memory address within cod mw2.
char * getPlayerName(int client)
{
return (char*)(0x9978EC + (client * 0x52C));
}
char * getPlayerName(int client)
{
return (char*)(0x9978EC + (client * 0x52C));
}
Here is the code it uses to kick players, the lobby size is 18.
if (ImGui::Button(getPlayerName(0), ImVec2(150, 25)))
{
SV_GameSendServerCommand(0, 0, "t EXE_DISCONNECTED");

}
if (ImGui::Button(getPlayerName(0), ImVec2(150, 25)))
{
SV_GameSendServerCommand(0, 0, "t EXE_DISCONNECTED");

}
I will post below the code which gets the XUID:
11 replies