public static void HookedPlayServer(NetState state, PacketReader pvSrc) { PacketHandlers.PlayServer(state, pvSrc); Encryption context = (Encryption)(state.PacketEncoder); context.m_AlreadyRelayed = true; }
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; }