mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
16 lines
364 B
C++
16 lines
364 B
C++
#include "Channel.h"
|
|
#include "NetConnection.h"
|
|
|
|
int32 UChannel::IsNetReady(bool Saturate)
|
|
{
|
|
static auto NumOutRecOffset = 0x4C;
|
|
|
|
if (*(int*)(__int64(this) + NumOutRecOffset) < 255)
|
|
{
|
|
static auto ConnectionOffset = GetOffset("Connection");
|
|
auto Connection = Get<UNetConnection*>(ConnectionOffset);
|
|
return Connection->IsNetReady(Saturate);
|
|
}
|
|
|
|
return 0;
|
|
} |