No shotgun spread

Posts 1–13 of 13 · Page 1 of 1
No shotgun spread
Hey again, just requesting the code snippet for no shotgun spread.
Is it like the normal no recoil but with a different addy?
I think it's patched I tried it but my bullets don't damage even I shoot on the walls or floors there's no marks/
Quote Originally Posted by Ryuzaki2 View Post
I think it's patched I tried it but my bullets don't damage even I shoot on the walls or floors there's no marks/
Can you still post the snippet?
Quote Originally Posted by desertflame View Post
Can you still post the snippet?
Code:
for(int i=0 ; i<Wepcount ; i++) {
DWORD wep = *(DWORD*)(pWeaponMgr +(4*i));
if (wep)	{
*(float*)( wep + 0xaddy) = (float)noshotgunval;
}
}
Quote Originally Posted by Ryuzaki2 View Post
Code:
for(int i=0 ; i<Wepcount ; i++) {
DWORD wep = *(DWORD*)(pWeaponMgr +(4*i));
if (wep)	{
*(float*)( wep + 0xaddy) = (float)noshotgunval;
}
}
Aren't you supposed to use *(BYTE*)? The addy is with byte soo...
Quote Originally Posted by desertflame View Post
Aren't you supposed to use *(BYTE*)? The addy is with byte soo...
Haha I dunno because I made this when I am still a beginner
use integer , but anyway Shotgun spread patched
Quote Originally Posted by Dragon(H)ell View Post
use integer , but anyway Shotgun spread patched
integer? wth....
Quote Originally Posted by Dragon(H)ell View Post
int -.-
Would that work? I always thought it was supposed to be byte >.>.
Quote Originally Posted by desertflame View Post
Would that work? I always thought it was supposed to be byte >.>.
As long as the value is smaller than 256 it would be correct because of little endian (example : You got an integer with the value 9. When you read it in BYTEs, the result is 09 00 00 00. The first Byte (09) is the Byte you write in).
When the original value equals or is bigger than 256 and you write with BYTE into it, you get a number you don't want to have.
Quote Originally Posted by derh.acker View Post
As long as the value is smaller than 256 it would be correct, because of little endian (example : You got an integer with the value 9. When you read it in BYTEs, the result is 09 00 00 00. The first Byte (09) is the Byte you write in).
When the original value equals or is bigger than 256 and you write with BYTE into it, you get a number you don't want to have.
Wow, i never thought of it like that. Thx for the explanation
*(BYTE*)(pWeapon+0x860) = 1;
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us