mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02:22 +01:00
Dude 💀
This commit is contained in:
@@ -3,9 +3,29 @@
|
||||
#include "Channel.h"
|
||||
#include "NetworkGuid.h"
|
||||
|
||||
enum ESetChannelActorFlags
|
||||
{
|
||||
None1 = 0, // Bro compiler what
|
||||
SkipReplicatorCreation = (1 << 0),
|
||||
SkipMarkActive = (1 << 1),
|
||||
};
|
||||
|
||||
class UActorChannel : public UChannel
|
||||
{
|
||||
public:
|
||||
static inline void (*originalSetChannelActor)(UActorChannel*, AActor*);
|
||||
static inline __int64 (*originalReplicateActor)(UActorChannel*);
|
||||
|
||||
void SetChannelActor(AActor* Actor, ESetChannelActorFlags Flags)
|
||||
{
|
||||
originalSetChannelActor(this, Actor); // T(REP) ADD FLAGS FOR NEWER BUILDS
|
||||
}
|
||||
|
||||
__int64 ReplicateActor() // Returns how many bits were replicated (does not include non-bunch packet overhead)
|
||||
{
|
||||
return originalReplicateActor(this);
|
||||
}
|
||||
|
||||
double& GetLastUpdateTime()
|
||||
{
|
||||
static auto LastUpdateTimeOffset = GetOffset("Actor") + 8 + 4 + 4 + 8; // checked on 4.19
|
||||
|
||||
Reference in New Issue
Block a user