AgaHackTools.Example.MemoryModule.OffsetScanner.SetViewAngles C# (CSharp) Method

SetViewAngles() static private method

static private SetViewAngles ( ISmartMemory memUtils ) : void
memUtils ISmartMemory
return void
        static void SetViewAngles(ISmartMemory memUtils)
        {
            scan = memUtils["engine.dll"].Find(new byte[] { 0x8B, 0x15, 0x00, 0x00, 0x00, 0x00, 0x8B, 0x4D, 0x08, 0x8B, 0x82, 0x00, 0x00, 0x00, 0x00, 0x89, 0x01, 0x8B, 0x82, 0x00, 0x00, 0x00, 0x00, 0x89, 0x41, 0x04 }, "xx????xxxxx????xxxx????xxx");
            if (scan.Success)
            {
                int tmp = memUtils.Read<int>((IntPtr)(scan.Address.ToInt32() + 11));
                Offsets.SetViewAngles = (IntPtr)tmp;
                Logger.Info(ObjectEx.GetName(() => Offsets.SetViewAngles) + "\n" + Offsets.SetViewAngles.ToString("X8"));
            }
        }