UnhappyNoRecoil help

Posts 1–14 of 14 · Page 1 of 1
NoRecoil help
#include "stdafx.h"

#include "Hacks.h"
cHacks* Hacks;

cHacks::cHacks()
{
DWORD CShell = (DWORD) GetModuleHandleA("CShell.dll");
if(!CShell) return;

dwWeaponMgr = *(DWORD*)GetAddressFromOffset(CShell, WeaponMgrOffset);
dwWallMgr = *(DWORD*)GetAddressFromOffset(CShell, WallMgrOffset);
dwPlayerMgr = *(DWORD*)GetAddressFromOffset(CShell, PlayerMgrOffset);
dwPlayerInfo= *(DWORD*)GetAddressFromOffset(CShell, PlayerInfoOffset);

if(dwWeaponMgr && dwWallMgr && dwPlayerMgr && dwPlayerInfo)
{
for(int i = 0; i < 560; i++)
{
DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
if(Weapon)
{
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset1) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset2) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset3) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset4) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset5) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset6) = 0.0f;
*(float*)GetAddressFromOffset(Weapon, WeaponMgr->BulletPosOffset7) = 0.0f;
}
}
}
else
return;
}

bool cHacks::ReadyForHacks()
{
if(GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFX.fxd") != NULL && GetModuleHandleA("crossfire.exe") != NULL)
return true;
return false;
}

DWORD cHacks::GetAddressFromOffset(DWORD Base, DWORD Offset)
{
if(Base)
return (Base + Offset);
else
return NULL;
}


What's wrong with my code?

i use Jeff base.
lol u cant copy and paste some ones base and ask for help+.... if u rly know coding..u could fix some of OBVIOUS AS SUN errors
Quote Originally Posted by moathebest View Post
lol u cant copy and paste some ones base and ask for help+.... if u rly know coding..u could fix some of OBVIOUS AS SUN errors
you do not use your own base (because you do not know how to make a base), you use Swiftdude´s base .So...yes i use Jeff's base,it's easy and very nice.(thanks again Jeff and credits for base)

1. I posted for help not for critique.
2. i make hack for me.
Quote Originally Posted by moathebest View Post
lol u cant copy and paste some ones base and ask for help+.... if u rly know coding..u could fix some of OBVIOUS AS SUN errors
Master leecher and leader of copy & paste noobs has spoken
bro you need to learn c++...and the way it is set right know you can make it into a hack ....just put the pointer offsets ....and your done...simple....
look in Jeff's base to see the pointers are in WeaponMgr class.

i dont have any error when i debug but in game nothing happened.
Can you type the error ?
I dont have any error when i debug but, in game nothing happened.
Quote Originally Posted by maximus8011 View Post
I dont have any error when i debug but, in game nothing happened.
Make sure the addy is updated
the addy are updated,i dont have any error when i debug,but in game not working.
I have the same recoil.
i try to make a hack for my own use, don't try to make a hack to upload and say it's mine.



1> Creating "Debug\sxs.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1> sxs.cpp
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>Manifest:
1> All outputs are up-to-date.
1>LinkEmbedManifest:
1> All outputs are up-to-date.
1> sxs.vcxproj -> C:\Documents and Settings\ \My Documents\Visual Studio 2010\Projects\sxs\Debug\sxs.dll
1>FinalizeBuildStatus:
1> Deleting file "Debug\sxs.unsuccessfulbuild".
1> Touching "Debug\sxs.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:08.60
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
1.offsets not addys xDDDD
2.i think ur offsets are outdated

if(dwWeaponMgr && dwWallMgr && dwPlayerMgr && dwGhostMgr && dwFallMgr)
{
for(int i = 0; i < 560; i++)
{ for(int y = 0; y<9; y++)
{
DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
if(Weapon)
{

//NoRecoil
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
give me credits or i kill you ^^
Quote Originally Posted by |Skrillex| View Post
1.offsets not addys xDDDD
2.i think ur offsets are outdated

if(dwWeaponMgr && dwWallMgr && dwPlayerMgr && dwGhostMgr && dwFallMgr)
{
for(int i = 0; i < 560; i++)
{ for(int y = 0; y<9; y++)
{
DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
if(Weapon)
{

//NoRecoil
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
give me credits or i kill you ^^

i make a mistake with offsets and addy.
i now what it's addy and what it's a offsets.

and you are the best.Thanks again

problem solved.
Quote Originally Posted by |Skrillex| View Post
1.offsets not addys xDDDD
2.i think ur offsets are outdated

if(dwWeaponMgr && dwWallMgr && dwPlayerMgr && dwGhostMgr && dwFallMgr)
{
for(int i = 0; i < 560; i++)
{ for(int y = 0; y<9; y++)
{
DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
if(Weapon)
{

//NoRecoil
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x0xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x1xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
*(float*)( Weapon + (0x2xxx + (4*y))) = (float)0;
give me credits or i kill you ^^

Man.. Dont tell them
Anyway Solved

Just add a Loop
Code:
 
For(Int y = 0; y < 9; y++)
and add this to your Code
Code:
+(4*y)
~Closed
Posts 1–14 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?