Question How find IInput * input for connect CUserCmd * cmd ?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

mihas404

Newbie
Full Member
Apr 19, 2013
28
232
0
Hi guys! How find IInput * input for connect CUserCmd * cmd ?
Console say : input = 0x0


C++:
CUserCmd * cmd = input->GetUserCmd(90);
Sorry for the quick question (this hurry)
 

brinkz

Coder
Meme Tier VIP
Sep 3, 2012
209
1,688
12
CInput pointer can be found in various functions in IBaseClientDLL
 

mihas404

Newbie
Full Member
Apr 19, 2013
28
232
0
Unfortunately, I'm bad friend with reverse . Not sure what i do this true . :(

I found in the SDK "class CHLClient: public IBaseClientDLL" it contains a function for example:
virtual void IN_ActivateMouse (void);

I connect to olydbg CSS, open module client.dll and "all referenced text strings". But I can not find there "IN_ActivateMouse"

please kick me in the right direction . :confused:
 

brinkz

Coder
Meme Tier VIP
Sep 3, 2012
209
1,688
12
Because it is a function name, not a string. Check how i reversed WorldToScreen and do the same with VClient.
 

mihas404

Newbie
Full Member
Apr 19, 2013
28
232
0
Ok. I tride your tutorial:

1. I find VClient017 in client.dll (in SDK - #define CLIENT_DLL_INTERFACE_VERSION "VClient017" ), and when i take IBaseClientDLL

C++:
g_pBaseCDll = (IBaseClientDLL*) clientBase(CLIENT_DLL_INTERFACE_VERSION, NULL);
my console show , what take is good :

step1.PNG

2. I see this :

step2.PNG

3. I copy 25B89E68 and go in ReClass

step3.jpg

What i do wrong ?
 

brinkz

Coder
Meme Tier VIP
Sep 3, 2012
209
1,688
12
For 2:
Try following the PUSH 256A93A0, at that memory region should be the mov of the pointer.
 

mihas404

Newbie
Full Member
Apr 19, 2013
28
232
0
and so in the end I was able to take W2S.),

I tried to take the "Input" by your tutorial W2S, but since I'm bad in reverse, I stopped at the last stages ...

in SDK in abstract_class IBaseClientDLL , func № 14 - IN_ActivateMouse()
C++:
abstract_class IBaseClientDLL
{
public:
	// Called once when the client DLL is loaded
	virtual int				Init( CreateInterfaceFn appSystemFactory, 
									CreateInterfaceFn physicsFactory,
									CGlobalVarsBase *pGlobals ) = 0;

	virtual void			PostInit() = 0;

	// Called once when the client DLL is being unloaded
	virtual void			Shutdown( void ) = 0;
	
	// Called once the client is initialized to setup client-side replay interface pointers
	virtual bool			ReplayInit( CreateInterfaceFn replayFactory ) = 0;
	virtual bool			ReplayPostInit() = 0;

	// Called at the start of each level change
	virtual void			LevelInitPreEntity( char const* pMapName ) = 0;
	// Called at the start of a new level, after the entities have been received and created
	virtual void			LevelInitPostEntity( ) = 0;
	// Called at the end of a level
	virtual void			LevelShutdown( void ) = 0;

	// Request a pointer to the list of client datatable classes
	virtual ClientClass		*GetAllClasses( void ) = 0;

	// Called once per level to re-initialize any hud element drawing stuff
	virtual int				HudVidInit( void ) = 0;
	// Called by the engine when gathering user input
	virtual void			HudProcessInput( bool bActive ) = 0;
	// Called oncer per frame to allow the hud elements to think
	virtual void			HudUpdate( bool bActive ) = 0;
	// Reset the hud elements to their initial states
	virtual void			HudReset( void ) = 0;
	// Display a hud text message
	virtual void			HudText( const char * message ) = 0;

	// Mouse Input Interfaces
	// Activate the mouse (hides the cursor and locks it to the center of the screen)
	virtual void			IN_ActivateMouse( void ) = 0;
	// Deactivates the mouse (shows the cursor and unlocks it)
IN_ActivateMouse() contains "input"

C++:
void CHLClient::IN_ActivateMouse( void )
{
	input->ActivateMouse();
}
i found EDX in CE and go in Olly.

I doubt what to do next: input.jpg

please explain what's next.
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods