mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fix s11 idk
This commit is contained in:
16
Project Reboot 3.0/DataChannel.cpp
Normal file
16
Project Reboot 3.0/DataChannel.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user