Esempio n. 1
0
        public static void HookedPlayServer(NetState state, PacketReader pvSrc)
        {
            PacketHandlers.PlayServer(state, pvSrc);

            Encryption context = (Encryption)(state.PacketEncoder);

            context.m_AlreadyRelayed = true;
        }
Esempio n. 2
0
        public static void HookedPlayServer(NetState state, PacketReader pvSrc)
        {
            // Call the original handler
            PacketHandlers.PlayServer(state, pvSrc);

            // Now indicate, that the state has been relayed already. If it's used again,
            // it means we're entering a special encryption state
            Encryption context = (Encryption)(state.PacketEncoder);

            context.m_AlreadyRelayed = true;
        }