Making UD Base?

Posts 1–11 of 11 · Page 1 of 1
Making UD Base?
Hey, sorry for posting so much. But i was creating a base and it worked then it didnt? So then i started from scratch again, it injected the thread perfectly and then when i went into game there was no effect, so am i using wrong values or offsets?

Code:
#include <Windows.h>
#pragma warning(default:4716)

bool reload = true;



int Hacks(void)
{
 DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
 DWORD WeaponMgr = *(DWORD*)(CShell + 0xAAC3D0);
 
 if(WeaponMgr) {
     for(int i=0 ; i<601 ; i++) {
		DWORD Weapon = *(DWORD*)(WeaponMgr +(4*i));
			if (Weapon)	{
				if(reload = true){
					*(float*)(Weapon + 0x26A4) = (float) 100.0f;
				}
			}
	 }

				
	Sleep(100);
 }

}

bool WINAPI DllMain(HMODULE hDll, DWORD dwReason, PVOID pvReserved)
{
	if(dwReason == DLL_PROCESS_ATTACH)
	{
	DisableThreadLibraryCalls(hDll);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
	}
	else if(dwReason == DLL_PROCESS_DETACH)
	{
		
	}

    return true;
}

Thanks.
Quote Originally Posted by Dead(H)ell View Post
yup
msg2short
Ah, i see can i ask what value do you use for NoReload. I used the value 72 and i did not get any error, but then i used 45(My original value) and i seem to have then got a send error report.
Quote Originally Posted by _Coder. View Post
Ah, i see can i ask what value do you use for NoReload. I used the value 72 and i did not get any error, but then i used 45(My original value) and i seem to have then got a send error report.
I use 100.0f; For no Reload and Work Perfectly


---------- Post added at 10:02 PM ---------- Previous post was at 10:02 PM ----------

Can u share the base ??
Quote Originally Posted by Ryuesi View Post

I use 100.0f; For no Reload and Work Perfectly


---------- Post added at 10:02 PM ---------- Previous post was at 10:02 PM ----------

Can u share the base ??
I'll send it via pm
Quote Originally Posted by _Coder. View Post
I'll send it via pm
Umm,I mines what like yours and i fix it,but if you dont put the code or your base we cant help you..
u can add @giniyat101 simple menu to your hack this makes it works as i use it and its works for me and thanks to him also thanks for @ramo he helped me alot.
@_Coder
i think this will work:
Code:
#include <Windows.h>
#include "exports.h"

#define Ptr 0xAAC3D0
#define NoReload 0x26A4

bool reload = true;

void Hacks()
{
while(1)
{
 DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
 DWORD WeaponMgr = *(DWORD*)(CShell + 0xAAC3D0);

 if(reload)
 {
 if (WeaponMgr)
 {
 for(int i=0; i<620; i++)
 {
 if((*(DWORD*)((*(DWORD*)(CShell+Ptr))+(4*i))) != NULL)
 *(float*)((*(DWORD*)((*(DWORD*)(CShell+Ptr))+(4*i))) + NoReload) = 72;	     
   }
   }
   }
   }
     }

BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, PVOID pvReserved)
{
	if(dwReason == DLL_PROCESS_ATTACH)
	{
	DisableThreadLibraryCalls(hDll);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
	}
    return TRUE;
}
Quote Originally Posted by darlwis View Post
@_Coder
i think this will work:
Code:
#include <Windows.h>
#include "exports.h"

#define Ptr 0xAAC3D0
#define NoReload 0x26A4

bool reload = true;

void Hacks()
{
while(1)
{
 DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
 DWORD WeaponMgr = *(DWORD*)(CShell + 0xAAC3D0);

 if(reload)
 {
 if (WeaponMgr)
 {
 for(int i=0; i<620; i++)
 {
 if((*(DWORD*)((*(DWORD*)(CShell+Ptr))+(4*i))) != NULL)
 *(float*)((*(DWORD*)((*(DWORD*)(CShell+Ptr))+(4*i))) + NoReload) = 72;	     
   }
   }
   }
   }
     }

BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, PVOID pvReserved)
{
	if(dwReason == DLL_PROCESS_ATTACH)
	{
	DisableThreadLibraryCalls(hDll);
	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
	}
    return TRUE;
}
Lol, ill try it but there is not much of a diffrence. You just changed the type(float to dword) and you made the defines also making the weapon loop much higher?
Quote Originally Posted by _Coder. View Post
Lol, ill try it but there is not much of a diffrence. You just changed the type(float to dword) and you made the defines also making the weapon loop much higher?
That is the way i get mines.
I just tested and got send error report. I just think SndDrv is detected thats all. Because i have created so many bases and none of them work and i also use SndDrv for all of them and my operating system is Windows 7 64 bit.
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us