PostSome Questions

Posts 1–14 of 14 · Page 1 of 1
Some Questions
I need your help guys

First Question : Can i use the "GetModuleHandle" function only for Dynamic Link Library's ? (DLL's) If not, what should i do when i try to attach it to a EXE ? And wich operator (in GetModuleHandle its hDll).

Second Question : I am currently learning C++ and i took the Base from @Dead(H)ell
( Thx to him ) and i tried to change the code so it will work for another game (I dont want to publish it !)... but at the top i dont know what it defines, are those the offsets ? And if not, I would be glad if someone could explain it

Third Question :
Code:
if(norecoil)
{
for(int y = 0; y<10; y++)
{
*(float*)( NoRecoil1 + (0x051C + (szf*y))) = (float)0;
*(float*)( Norecoil2 + (0x0684 + (szf*y))) = (float)0;
*(float*)( Norecoil3 + (0x1938 + (szf*y))) = (float)0;
*(float*)( Norecoil4 + (0x1B14 + (szf*y))) = (float)0;
*(float*)( Norecoil5 + (0x1FA0 + (szf*y))) = (float)0;
*(float*)( Norecoil6 + (0x2108 + (szf*y))) = (float)0;
}
}
//CODE BY Dead(H)ell
Could someone please explain this part = NoRecoil1 + (0x051C + (szf*y)) = (float)0;
What is that Hexadecimal number ? What does it do ? and after (float) what does the 0 do ? what happens if i change it to something different ?
Thanks for the answers
Anyone here to help me ?
1- GetModuleHandleA("Crossfire.exe") will always return 0x400000
2- yes they are
3- hexdicemal number is the offset, 0 is the value, changing it may cause even more recoil than usual
Quote Originally Posted by giniyat101 View Post
1- GetModuleHandleA("Crossfire.exe") will always return 0x400000
2- yes they are
3- hexdicemal number is the offset, 0 is the value, changing it may cause even more recoil than usual
Ok, Thanks for the answer. So i can use GetModuleHandle for exe's when something is defined in that module ?
In OllyDbg at the left at CPU Window it says Adress and a Grey number ( for example i use 00553D04 ) so i need to replace the 00's with a 0x and define it like = '#define norecoil 0x553D04' ?
Quote Originally Posted by TheBeast13 View Post
Ok, Thanks for the answer. So i can use GetModuleHandle for exe's when something is defined in that module ?
In OllyDbg at the left at CPU Window it says Adress and a Grey number ( for example i use 00553D04 ) so i need to replace the 00's with a 0x and define it like = '#define norecoil 0x553D04' ?
Or do it like this:
Code:
*(float*)( pWeaponmgr + NoRecoil Addie) = 0;
This is and example and ur NoReload Addie,On CrossFire is Wrong,
The Seven Have 2 Bytes
Quote Originally Posted by TheBeast13 View Post
Ok, Thanks for the answer. So i can use GetModuleHandle for exe's when something is defined in that module ?
In OllyDbg at the left at CPU Window it says Adress and a Grey number ( for example i use 00553D04 ) so i need to replace the 00's with a 0x and define it like = '#define norecoil 0x553D04' ?
pictures? i dont understand
Quote Originally Posted by darlwis View Post
The Seven Have 2 Bytes
Sorry for this Question but, what do you mean with the seven has 2 bytes ?
Quote Originally Posted by TheBeast13 View Post
Sorry for this Question but, what do you mean with the seven has 2 bytes ?
The Seven Address for NoRecoil,
And 2 Bytes are:
0x????
Why do i need to add pWeaponmgr to the Norecoil addy ?
Quote Originally Posted by TheBeast13 View Post
Why do i need to add pWeaponmgr to the Norecoil addy ?
Cauz it its WeaponMgr,Without WeaponMgr how u will loop throught all weapons?
Is necesary for WeaponClass.
Quote Originally Posted by TheBeast13 View Post
Why do i need to add pWeaponmgr to the Norecoil addy ?
Because the Offset is relative to the info struct of a weapon
Quote Originally Posted by derh.acker View Post
Because the Offset is relative to the info struct of a weapon
So that means that the address of every weapon for example begins with 0x5BA. And the adress of the M16 is 0x5BA9AB so we define Weapon 0x5BA and add it to 0x9AB so it will give out 0x5BA9AB ?
Please correct me if i did something wrong
Quote Originally Posted by giniyat101 View Post
pictures? i dont understand
I hope you now understand
Dwm 2012-04-24 13-50-34-81.jpg450 KB · 6 downloads
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us