/* 111D1C86 5F POP EDI 111D1C87 5E POP ESI 111D1C88 83C4 18 ADD ESP,18 111D1C8B C3 RETN 111D1C8C 5F POP EDI 111D1C8D 5E POP ESI 111D1C8E 83C4 18 ADD ESP,18 111D1C91 ^E9 8AF7FFFF JMP client.111D1420 */ DWORD dwSetViewAnglesReturnAddress = FindPattern( (DWORD)GetModuleHandle( "client" ), 0x300000, (BYTE*)"x5Fx5Ex83xC4x18xC3x5Fx5Ex83xC4x18xE9x8AxF7xFFxFF", "xxxxxxxxxxxx????" ); __declspec(naked) unsigned int _ReturnAddress() { __asm { mov eax, [ebp+4]; ret; } } void __stdcall new_SetViewAngles( QAngle &va ) { if( _ReturnAddress() == /*For old DOD:S it's 0x241B7C37 ( static ) for the new engine its dynamic*/dwSetViewAnglesReturnAddress ) return; /*the following steps depends on hooking method*/ //remove your hook gDrxHook.SetViewAnglesBreakpoint( false ); //call the original function gEngine.SetViewAngles( va ); //rehook gDrxHook.SetViewAnglesBreakpoint( true ); //or simply call the original func w/o removing teh hookz }
Announcement
Collapse
No announcement yet.
[DOD:S BETA/new Engine] visual no recoil
Collapse
X
-
[DOD:S BETA/new Engine] visual no recoil
Hi. :wheelchair:
Code:I 0x90 you!Tags: None
-
i don't want to be banned !
I apologize
Thanks for the share of the code, aVitamin. Ill have a look into it tomorrow.Last edited by Om1; 05-27-2008, 10:23 PM.
Originally posted by Dead8 digit steam acount willing to trade for any steam acount that everey one knows as a hacker lmao or BANNED ON ALOT OF SERVERS.
made by kimmi
Comment
-
Re: [DOD:S BETA/new Engine] visual no recoil
to bump this epic thread,
css beta visual no-recoil.
credits:
j1gs4w for the addresses
Code:void plugdrawing::patch_visual_recoil() { // j1gs4w // base = 148C0000 // // 148DA7EE D886 940D0000 FADD DWORD PTR DS:[ESI+D94] // 148DA7F4 D91F FSTP DWORD PTR DS:[EDI] // 148DA7F6 D986 980D0000 FLD DWORD PTR DS:[ESI+D98] // 148DA7FC D847 04 FADD DWORD PTR DS:[EDI+4] // 148DA7FF D95F 04 FSTP DWORD PTR DS:[EDI+4] // 148DA802 D986 9C0D0000 FLD DWORD PTR DS:[ESI+D9C] // 148DA808 D847 08 FADD DWORD PTR DS:[EDI+8] // 148DA80B D95F 08 FSTP DWORD PTR DS:[EDI+8] // // x = 148DA7EE // y = 148DA7F6 // // x = base + 1A7EE // y = base + 1A7F6 // // czkb static byte bak_x = 0x94; static byte bak_y = 0x98; static byte bak_z = 0x9C; static dword baseme = (dword)GetModuleHandleA("client.dll"); static dword x = (dword)baseme + 0x1A7EE + 2; static dword y = (dword)baseme + 0x1A7F6 + 2; static bool been_patch = false; if ( m_pCvars->aim_norecoil->GetBool() ) { if ( !been_patch ) { /*m_pExport->_memory->secured_*/memset((void*)x,bak_z,1); /*m_pExport->_memory->secured_*/memset((void*)y,bak_z,1); been_patch = true; } } else { if ( been_patch ) { /*m_pExport->_memory->secured_*/memset((void*)x,bak_x,1); /*m_pExport->_memory->secured_*/memset((void*)y,bak_y,1); been_patch = false; } } }
Comment
Comment