コード例 #1
0
ファイル: EntityList.cs プロジェクト: RequiDev/phoenix_mw3
        public ClientInfo GetLocalClient()
        {
            var localPlayerIndex = Phoenix.Memory.Read <int>(SignatureManager.GetLocalIndex() + 0x150);

            return(Clients[localPlayerIndex]);
        }
コード例 #2
0
ファイル: EntityList.cs プロジェクト: RequiDev/phoenix_mw3
        public Entity GetLocalPlayer()
        {
            var localPlayerIndex = Phoenix.Memory.Read <int>(SignatureManager.GetLocalIndex() + 0x150);

            return(Players == null ? new Entity() : Players.FirstOrDefault(player => player.ClientNum == localPlayerIndex));
        }