should work if yo inject before join room and after login
im trying to make my first hack, but i cant '-'
no error occurs, but in the game is like im without hack ._.
if anyone can help me, i will thankCode:#include <Windows.h> #define WeaponMgr 0xAB2940 #define NoReload 0x26C4 #define NoRecoil1 0x53C #define NoRecoil2 0x6A4 #define NoRecoil3 0x1958 #define NoRecoil4 0x1964 #define NoRecoil5 0x1FC0 #define NoRecoil6 0x2128 #define NoRecoil7 0x2290 void lol() { unsigned long CShell = (unsigned long)GetModuleHandleA("CShell.dll"); unsigned long pWeaponMgr = *(unsigned long*)(CShell+WeaponMgr); if(NoReload) { if (pWeaponMgr) { for(int i=0; i<560; i++) { if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL) *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100; } } } if(pWeaponMgr) { for(int y=0; y<9; y++) { *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f; *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil2) = 0.0f; *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil3) = 0.0f; *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil4) = 0.0f; *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil5) = 0.0f; *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil6) = 0.0f; *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil7) = 0.0f; } } } int gsc() { lol(); return true; } void _stdcall DllMain(HMODULE hDll, unsigned long dwReason, LPVOID lpReserved) { if (dwReason == 1) { gsc(); } if (dwReason == 0) { } }
should work if yo inject before join room and after login
[img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]
@giniyat101
thanks for help but, i tried this and not work
learn coding? stop leeching!
[G]a[M]e[R] (04-29-2012)
Last edited by DaRk; 04-29-2012 at 02:32 PM.
GunBoy120 (04-29-2012)
why u need these?
Just do it once:Code:void lol(){ //whatever } int gsc(){ //whatever return true; } void _stdcall DllMain(HMODULE hDll, unsigned long dwReason, LPVOID lpReserved){ //whatever }
Code:int lolgsc(void){ //whatever return 0; } void _stdcall DllMain(HMODULE hDll, unsigned long dwReason, LPVOID lpReserved){ //whatever return 1; }
Its To Hack...
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f; is the problem
you don't need double DWORD with pointers lol
*(float*)((((*(DWORD*)(CShell+WeaponMgr)) +(4*y))) + NoRecoil1) = 0.0f; should be your code
---------- Post added at 01:47 AM ---------- Previous post was at 01:28 AM ----------
well first of all your loop is wrong the outer one the new weapon log is up to 637
I am trying yours out and comparing with mine, but I think that main is patched
@twixxxx
It wasn't incorrect.
The WeaponMgr is built like this :
struct Weapon
{
BYTE Unknown[Length of Unknown area];
float ReloadSpeed;
//Something
};
struct WeaponMgr
{
Weapon *Weapons[900];
//Something
}
* WeaponPointer;
So *(DWORD*)(CShell+WeaponMgr) reads the Pointer to an instance from WeaponMgr from WeaponPointer,
*(DWORD*)(... +(4*y)) reads from the Pointer to the current Weapon
and
*(float*)(... + NoRecoil1) = 0.0f; writes the float 0.0f into ReloadSpeed from the current Weapon
@ Thread : If you use a new weapon, the reason could be that you don't activate the Hack for the weapon you are using because the weapon id of the newest weapopn is bigger than 600
Do not use any of this code that is put on forums because it is probably detected...take the code that people put out and make your own...it will not take long before you know what your doing. Just keep trying.
#define NoReload ...//whatever
you took the defined NoReload' for making the if codeCode:if(NoReload) { //code }
make it a "bool"
like
Hope this will work, Maybe I'm totally wrong, but i don't find other wrong things.Code:#define NoReload /*addie here*/ bool reload == true; if(reload) //if the bool reload is true (we turned it true) then the code works. So it need to work now. { //code here }
Otherwise just make ur ID bigger then 600 (maybe u use a weapon bigger then ID 600)
If u dont use this, then just leave the full if(reload) { .. } <= leave this
Last edited by CheatCreatorzz; 05-06-2012 at 05:03 AM.
(_¸.•*´'`°¤¸'¸¤°´'`*•.¸_)
Video Creator
GFX Creator
C++ Coder
D3D Coder
(¯`*•.¸,¤°´'`°¤,¸.•*´¯)