Understanding this...

Posts 1–3 of 3 · Page 1 of 1
Understanding this...
So, i'm converting the 28_3 remover to C#
but i'm really shitty with C++ so i need some help to understand...

Here is this:
Code:
WeaponMgrCopy* bypass (int GunIndexNR)
{      
	return Weapons[GunIndexNR];
}
That means a Pointer to Weapons[GunIndexNR], or the byte array of Weapons[GunIndexNR] ?

So, with conversion, which one will be:
Code:
public static byte[] Bypass(int GunIndexNR)
        {
            return Weapons[GunIndexNR];
        }
or
Code:
public static uint Bypass(int GunIndexNR)
        {
            fixed (byte* PointerToByteArray = Weapons[GunIndexNR])
            return PointerToByteArray;
        }
Thanks for help...
the func returns pointer to the selected weapon index class means returns 4 bytes...
Quote Originally Posted by kmanev073 View Post
the func returns pointer to the selected weapon index class means returns 4 bytes...
Thanks...

And in this:
Code:
backup(CShell, WeaponMgr);
            if (*(BYTE*)(CShell + WeaponMgrByPass))
            {
                MakeCall((BYTE*)(CShell + WeaponMgrByPass), (DWORD)bypass, 5);
                IsBypassDone = true;
            }
            else continue;
This:
Code:
(DWORD)bypass
is the pointer for the WeaponsArray, or pointer to the function ?

Because the second one is a brainfuck in C#

Edit:
I think i decoded the bypass:
-It make a copy of weaponMgr
-And chnage the function, which is the CShell call, to gain the pointer (what we use as "CurrentWeapon")

So that means, i need the pointer of the function...
Well, fuck...
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us