What am I doing wrong?
Hello, I'm new to Crossfire and the Lithtech engine. I was lurking this forum for a little while and I tried making a cheat using a memory modification to make all weapons have no damage.
This is the code inside my thread:
When I use this, my game crashes and I receive a messagebox saying "send error report?". Any idea what I am doing wrong?
This is the code inside my thread:
Code:
for(int i=0; i<445; i++)
{
*(float*)((*(DWORD*)((*(DWORD*)((DWORD)g_hCShell + 0x9F6544)) + i * 4)) + 0x7F8) = 0.0f;
}
Code:
1012F666 8B0D 44659F10 MOV ECX,DWORD PTR DS:[109F6544] 1012F66C 53 PUSH EBX 1012F66D 8D3CA9 LEA EDI,DWORD PTR DS:[ECX+EBP*4] 1012F670 90 NOP 1012F671 E8 FF26315E CALL 6E441D75 1012F676 D95C24 14 FSTP DWORD PTR SS:[ESP+14] 1012F67A D94424 14 FLD DWORD PTR SS:[ESP+14] 1012F67E 8B17 MOV EDX,DWORD PTR DS:[EDI] 1012F680 D99A F8070000 FSTP DWORD PTR DS:[EDX+7F8] 1012F686 83C4 04 ADD ESP,4 1012F689 8B4424 14 MOV EAX,DWORD PTR SS:[ESP+14] 1012F68D 68 3CC62B10 PUSH cshell_d.102BC63C ; ASCII "UnlimitedAmmo" 1012F692 50 PUSH EAX 1012F693 E8 B80A1500 CALL cshell_d.10280150 1012F698 83C4 08 ADD ESP,8
When I use this, my game crashes and I receive a messagebox saying "send error report?". Any idea what I am doing wrong?





