Exemple #1
0
 // Use this for initialization
 void Start()
 {
     player_info     = GetComponent <PlayerInfo>();
     player_mouse    = GetComponent <PlayerMouse>();
     player_keyboard = GetComponent <PlayerKeyboard>();
     zoom            = 0.0f;
 }
Exemple #2
0
        private static async void UpdateDecorationArray(sDecoration[] array)
        {
            long address      = Address.GetAddress("BASE") + Address.GetAddress("GAME_HUD_INFO_OFFSET");
            long decoArrayPtr = Kernel.ReadMultilevelPtr(address, new [] { 0x490, 0x2b20 });

            if (Kernel.Write(decoArrayPtr, array))
            {
                sKeyConfig keyConfig = PlayerKeyboard.Get((MenuControls)28);

                char vkey = keyConfig.MainKey == 0 ? (char)keyConfig.SubKey : (char)keyConfig.MainKey;

                await VirtualInput.PressKey(vkey);

                await Task.Delay(10);

                await VirtualInput.PressKey(vkey);
            }
        }