Those dvars are patched in the new exe
I've been working on an in game console but I've encountered some problems.
I have defined this function:
which works fine for stuff like r_fog 0, disconnect or com_maxfps 90.Code:static const DWORD CA = (DWORD) 0x564760; void send(const char* command) { _asm { push command push 0 push 0 call CA add esp, 0x0C } }
However, it fails for commands like cg_fov 90, name Something or clientkick 1.
I've also tried another function:
which also shows the same behavior.Code:static const DWORD CA2 = (DWORD) 0x563BA0; void send2(const char* command) { _asm { push command push 0 call CA2 add esp, 0x8 } }
Does someone know what I'm doing wrong?
Last edited by Scoudem; 01-09-2016 at 04:30 PM.
Those dvars are patched in the new exe
cg_fov has not been removed
https://i.imgur.com/ZRExrn2.png
But it doesnt accept a value above 80
Does that mean my method is no longer working, or is there some form of a work around?
Can you show how you found the ASM in that representation? I've found that subroutine too, called it DVAR_SET but from your image it looks like some form of dvar registering function.Originally Posted by [NEWACCOUNT
Cant't post links... imgur/RiSXFJC
Scoudem (01-10-2016)
Thanks, seems like 32 bit IDA was neede. But my pseudocode view always shows:Originally Posted by [NEWACCOUNT
Any idea?Code:int __cdecl sub_401000(int a1) { return (*(int (**)(void))(a1 + 20))(); }
Well, thats the problem. No matter what I click or select, viewing pseudo code always shows this functionsOriginally Posted by [NEWACCOUNT
Scoudem (01-10-2016)
I was trying to use your console for cheats such as AC130 drops from an emergency airdrop, and nothing happened. Same thing when I tried to kick a player. I was host both times I tried to do something on the console. Can you tell me how to use this console? Thank you.