Results 1 to 3 of 3
  1. #1
    Eithan1231's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Australia
    Posts
    1,596
    Reputation
    429
    Thanks
    4,279
    My Mood
    Angelic

    sendToConsole/ShowConsole/Sv_Gamesends.....

    just posted thease on another thread so i thought i would allso put in the place where im soposted to

    Show the console:
    Code:
    void cEngine::ShowDevConsole(){
    	if (DisableShowConsole){//check if it == true
    		DisableShowConsole = !DisableShowConsole;//Makes it so you can only show console once incase a bug causes you to call function more then once
    
    		((int(__cdecl*)())OFFS_ShowDevConsole)();//calling show console function within game
    
    		MSG Message;//this loop prevents menu from closing and crashing game
    		while (GetMessage(&Message, 0, 0, 0)){
    			TranslateMessage(&Message);
    			DispatchMessage(&Message);
    		}
    	}
    }
    Print to console:
    Code:
    void cEngine::PrintToConsole(const char* Text){
    	((void(__cdecl*)(const char*))OFFS_PrintToConsole)(Text);
    }
    SV_GameSendServerCommand:
    Code:
    void cEngine::Sv_GameSendServerCommand(int Client, char* Command){
    	((int(__cdecl*)(int Client, int commandType, char* Command))OFFS_PrintToConsole)(Client, 0, Command);
    }
    Cbuf_AddText:
    Code:
    void cEngine::Cbuf_AddText(char* Command){
    	((int(__cdecl*)(int Client, char* Command))OFFS_Cbuf_AddText)(0, Command);
    }
    sv_gmasendservercommand can click clients with r and then client number example Sv_GameSendServerCommand(ClientNumber, 0, "r \"HaHa Get l33t hacked\"");

    Force start game is xpartygo with a few nops then send xpartygo to console i think(im proberly wrong)

    Forcehost is party_minplayers (console command)

    Change team is console command

    18 lobby is party_maxplayers 18

    kick is above

    extras
    text screen cmd: "c \"text on screen text\"" you can allso use materials


    Addressess:
    #define OFFS_ShowDevConsole 0x5CB490
    #define OFFS_PrintToConsole 0x5CB600
    #define OFFS_Sv_GameSendServerCommand 0x5882D0
    #define OFFS_Cbuf_AddText 0x563BA0

    Credits eithan as i found everything on this list(well the addresses i found and i just rember commands and stuff from other cods)

    EDIT: this took a hole 10 minutes of my day(I dident mind doing it since i gotta get needles today )



     
    https://www.youtube.com/watch?v=-GcAc0kovUs

  2. The Following 3 Users Say Thank You to Eithan1231 For This Useful Post:

    Kid a (05-19-2016),Tiiiiimooo (05-20-2016),Zmain09 (05-26-2016)

  3. #2
    Zmain09's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    Well, that's cool !

    Now, just missing how to send commands from external !

  4. #3
    Eithan1231's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Australia
    Posts
    1,596
    Reputation
    429
    Thanks
    4,279
    My Mood
    Angelic
    Quote Originally Posted by Zmain09 View Post
    Well, that's cool !

    Now, just missing how to send commands from external !
    There is a console somewhere you can download it's coded in c# so it's external



     
    https://www.youtube.com/watch?v=-GcAc0kovUs