1

Topic: [HELP] Adding custom commands

Basically i want to add commands like /pause from DDRace into a different mod. I have the source for DDNet but cant seem to find what im looking. (Yes im looking at the source in Visual Studio)

Any help would be appreciated

2

Re: [HELP] Adding custom commands

gamecontext.cpp

void CGameContext::OnMessage(...
...
if(MsgID == NETMSGTYPE_CL_SAY)
{
...

    if (strcmp(pMsg->m_pMessage, "/imgay") == 0)
        SendChatTarget(ClientID, "no u");

3

Re: [HELP] Adding custom commands

do i need to add something the gamecontext.h?

/imgay
no u