OutdatedMaking your own god mode (Working 02/10/2012)

Posts 1–13 of 13 · Page 1 of 1
Making your own god mode (Working 02/10/2012)
Making your own god mode (Working 02/10/2012)

It isn't Nico's god. It's just a simple god and doesn't work with some ranged Attacks.

To make your god, you must hook IVEngineClient::ClientCmd function.
When Vindctus call this function with a string like "force_damage_player(...)" you just return from your HookFunction without doing anything.



Code:
(...)

DWORD OriFunc_ptr, *AddrToHook, PageProtection;

AddrToHook = (unsigned int *)((*(unsigned int*) MyIVEngineClient_ptr) + 0x1C);
OriFunc_ptr = *AddrToHook;

VirtualProtect( (LPVOID) AddrToHook, 4, PAGE_EXECUTE_READWRITE, &PageProtection );

*AddrToHook = (DWORD) MyHookFunction;

(...)

void __declspec(naked) MyHookFunction()
{
	_asm
	{
		push [esp+4]	// cmd
		call TestDmg
		cmp al, 1
		jz  RETURN
		pop eax
		mov eax, OriFunc_ptr
		jmp eax
RETURN:
		pop eax
		retn 4
		
	}
}



bool __cdecl TestDmg( char *vinCmd )
{
	char tmp[128];
	memset( tmp, 0, 128);
	memcpy( tmp, cmd, strlen( cmd ));
	tmp[19] = 0;
	if( strcmp( "force_damage_player", tmp) == 0 )
	{
		return true;
	}

	return false;
}
Nice idea tho.
actually how do you compile it, what program do you use, if you can give more help i thank u ^^
Quote Originally Posted by kakkola_ch View Post
actually how do you compile it, what program do you use, if you can give more help i thank u ^^
Visual Studio. Learn C++ first.
Quote Originally Posted by Nico View Post


Visual Studio. Learn C++ first.
When I have more time I would like to pick up C++ on my own. Any place where I should start? Looking at some source code here looks daunting.
Quote Originally Posted by reallybanana View Post
When I have more time I would like to pick up C++ on my own. Any place where I should start? Looking at some source code here looks daunting.
Well, I started using a book back then. But there are a lot of tutorials in the internet.
Quote Originally Posted by reallybanana View Post
When I have more time I would like to pick up C++ on my own. Any place where I should start? Looking at some source code here looks daunting.
Well I just started c++ by following HD's tut and asking for help from nico and HD when I didn't understand things... Using MSDN and just testing things until I understood it, but I also have a background in programming in other languages.
Quote Originally Posted by DanK View Post


Well I just started c++ by following HD's tut and asking for help from nico and HD when I didn't understand things... Using MSDN and just testing things until I understood it, but I also have a background in programming in other languages.
I have very limited programming experience, namely in python (but mostly basic stuff). It doesn't help that I'm a busy grad student so picking up a programming language doesn't fit so easily into my schedule....
what difference does it make? use Notepad++ and M$ visual
I use C# can you help me transcribe this thing?
Quote Originally Posted by massacremam View Post
I use C# can you help me transcribe this thing?
Nope, C# cannot do this。
Try learn C++ and asm yourself。
What do i save it as, when i'm done ?
Quote Originally Posted by TimEdits View Post
What do i save it as, when i'm done ?
Doesn't work anymore. And your questions kinda shows that you might want to learn C++ first
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us