Executing console commands for CS:S?

Posts 16–24 of 24 · Page 2 of 2
Quote Originally Posted by Hell_Demon View Post
Get access to the IVEngineClient in engine.dll using CreateInterface(exported from engine dll) and use ClientCmd
I've been checking out stuff to do with CreateInterface with engine.dll in CE. It mentions it when you're looking for memory addresses and stuff.

I'll check it out some more, thanks .
I spent a few days on this game in Olly.
I mainly traced a bunch of chat function and console functions.
That's where i found tier0.msg
I also found that the console messages are raised as an exception through RtlRaiseException
Unfortunatley I didnt find out how to change my name in multiplayer, although i could in singleplayer. I could only hook the chat function and intersept the text
CreateInterfaceFn CI = (CreateInterfaceFn) GetProcAddress(GetModuleHandle("engine.dll"), "CreateInterface");
IVEngineClient *engine = (IVEngineClient*)CI("Interface version here, figure it out yourself", 0);

engine->ClientCmd("sv_cheats 1");
Quote Originally Posted by Hell_Demon View Post
CreateInterfaceFn CI = (CreateInterfaceFn) GetProcAddress(GetModuleHandle("engine.dll"), "CreateInterface");
IVEngineClient *engine = (IVEngineClient*)CI("Interface version here, figure it out yourself", 0);

engine->ClientCmd("sv_cheats 1");
Thanks, but I tried something very similar.

It couldn't define CreateInterfaceFn and there were some other errors. I'll try figure it out, I don't want to be spoon fed or anything, I actually want to learn.

Thanks again.
Quote Originally Posted by Phizo View Post
Thanks, but I tried something very similar.

It couldn't define CreateInterfaceFn and there were some other errors. I'll try figure it out, I don't want to be spoon fed or anything, I actually want to learn.

Thanks again.
Get the source SDK from the tools tab in steam.
edit: I wrote a tutorial some time ago on how to make a base for Vindictus(also source engine), it's the same as for CS: S http://www.mpgh.net/forum/437-vindic...ell_demon.html
Ah, I see. Thanks again man .
Use the force...
jk
use the SDK
Dude. what do you mean with that It failed? lol.. obv it will fail to just bypass the value in the offset, but sv_cheats is running inside engine.dll , Build up a modulebase and youre ready to go!! Works for me..
Quote Originally Posted by aCheats View Post
Dude. what do you mean with that It failed? lol.. obv it will fail to just bypass the value in the offset, but sv_cheats is running inside engine.dll , Build up a modulebase and youre ready to go!! Works for me..
Good job, you posted something vaguely resembling English in a thread that died over half a year ago.
Posts 16–24 of 24 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us