Пример #1
0
        private static IntPtr GetPointerAddress(MemoryAddress memoryAddress)
        {
            if (memoryAddress.Offsets == null)
            {
                return(memoryAddress.Address);
            }

            IntPtr addr = MS.ReadMemory <IntPtr>(memoryAddress.Address);

            for (int i = 0; i < memoryAddress.Offsets.Length; i++)
            {
                addr = IntPtr.Add(addr, memoryAddress.Offsets[i]);
                if (memoryAddress.Offsets.Length - 1 == i)
                {
                    break;
                }
                addr = MS.ReadMemory <IntPtr>(addr);
            }
            return(addr);
        }
Пример #2
0
 static void Main(string[] args)
 {
     var memory = new MemoryScanner(p => p.ProcessName == "Zombidle");
     var a      = memory.ReadMemory <double>(new IntPtr(0x14B18878 - 0x8));
 }
Пример #3
0
 public void Update()
 {
     readData = Memory.ReadMemory(address, ExternalCounterstrike.NetVars.Values.Max() + Marshal.SizeOf(typeof(Vector3D)));
 }