unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Combat Arms

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2010, 03:18 AM
disco disco is offline
Administrator
 
Join Date: Feb 2010
Posts: 271
Default Simple Windowed Mode

Posted by K@N@VEL.




Since the last update the other methods of setting your screen mode to window has changed, I found a new method using the base pointer of ILTClient here is the code, Use it or dont .


Code:
// Global

CILTClient * gILTClient = ( CILTClient* ) NULL;

// Function

void _cdecl hConsoleCMD( const char * szCommand )
{
    _asm 
    {
        MOV EAX, DWORD PTR DS:[g_pILTClient];
        PUSH szCommand;
        CALL DWORD PTR [EAX + 0x208];
        ADD ESP, 0x4;
    }
}


// Thread
DWORD WINAPI dwSleepThread( LPVOID lpArgs )
{
    DWORD dwCShell = NULL;
    while ( !dwCShell )
    {
        Sleep( 100 );
        dwCShell = ( DWORD ) GetModuleHandle( "CShell.dll" );
    }

    if ( gILTClient == NULL )
    {
        MemRead(( void* )( dwCShell + ( 0x803050 - 0x420000 )), &gILTClient, 4 );
    }

    Sleep( 1500 );

    while ( gILTClient != NULL )
    {
        static bool bDoOnce = TRUE;
        if ( bDoOnce == TRUE )
        {
            bDoOnce = FALSE;
            hConsoleCMD( "windowed 1" );
            AddLog( "ILTClient: 0x%.8X", ( DWORD ) gILTClient );
        }
    }
    return FALSE;
}
Also you can use this hooked hConsoleCMD for other CVar's such as:

Code:
hConsoleCMD( "drawguns 0" );
Which will not draw your guns, Kinda pointless but funny never the less .
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
mode, simple, windowed

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 08:11 AM.