Two interesting functions in ILTClient

Posts 1–11 of 11 · Page 1 of 1
Two interesting functions in ILTClient
Hello guys !
Today I am going to show you 2 functions which I found in ILTClient class :

Code:
#define cLTClientOffset		0x600BBC

class cBase 
{
public:
     virtual const char* GetInterfaceName();
};

class cLTCSBase : public cBase 
{
public:
    virtual DWORD *Common();
    virtual DWORD *Physics();
    virtual DWORD *GetTransformLT();
    virtual DWORD *GetModelLT();
    virtual DWORD *SoundMgr();
    virtual void Dummy();
};

class cLTClient : public cLTCSBase
{
public:

};

public:
    char Spacer00 [148];
    void (*Shutdown)();
    void (*ShutdownWithMessage)(const char *pMsg, ...);
};

class cCShell
{
public:
	char Spacer00[cLTClientOffset];
	cLTClient *LTClient;
};
these are the classes for CF NA...

so what do these funcs do ? well... simply shutdown the game

how to use:

1st define this:
Code:
cCShell *CShell;
2nd somewhere put this code :
Code:
dw_CShell = (DWORD)GetModuleHandle ("cshell.dll");
if (!CShell) CShell = (cCShell*)dw_CShell;
3rd after that depending on the func:
Code:
if (GetAsyncKeyState (VK_END)&1) CShell->LTClient->Shutdown();
and when you press END the game will shutdown


Code:
if (GetAsyncKeyState (VK_END)&1) CShell->LTClient->ShutdownWithMessage ("asd");
and when you press END there will be msg box like the "Send Error Report" one... with text asd

Code:
if (GetAsyncKeyState (VK_END)&1) CShell->LTClient->ShutdownWithMessage ("asd%d", 5);
and when you press END there will be msg box like the "Send Error Report" one... BUT with text asd5 just like printf function...

I believe that the ShutdownWithMessage func can be used to put buttons in the msg box but i am not sure i didnt find any GOOD documentation about it... Maybe it will be interesting to hook it



Press Thanks, Add Reps if you like my post I will be trying to post more and more cool stuff Have a nice day! Bye
about " end the game "
what can we use this feature in ?
PS : good job
Quote Originally Posted by mamo007 View Post
about " end the game "
what can we use this feature in ?
PS : good job
A panic key to quit the game
Good job kmanev
Quote Originally Posted by Lightning View Post


A panic key to quit the game
Good job kmanev
i know , But what the interesting in that ?
Nvm.... good job again
Quote Originally Posted by mamo007 View Post


i know , But what the interesting in that ?
Nvm.... good job again
Maybe it's needed sometimes like when your mum shouts on you to close the game xD
Quote Originally Posted by Lightning View Post

Maybe it's needed sometimes like when your mum shouts on you to close the game xD
yep exactly... and these funcs are better than terminating crossfire's process bcs they send to the server you are leaving
Quote Originally Posted by kmanev073 View Post
yep exactly... and these funcs are better than terminating crossfire's process bcs they send to the server you are leaving
so it can used when " hack tool detected " message ? O_o
not sure " anti ban " ?
Quote Originally Posted by mamo007 View Post


so it can used when " hack tool detected " message ? O_o
not sure " anti ban " ?
i dont think so :/ it just doesnt make sense
Nice work dude.
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us