mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
disable rebooting again
fixed looting bug, fixed parachute not auto deploying on some builds
This commit is contained in:
@@ -24,31 +24,13 @@ struct FUniqueNetIdRepl // : public FUniqueNetIdWrapper
|
||||
return *(TArray<uint8>*)(__int64(this) + ReplicationBytesOffset);
|
||||
}
|
||||
|
||||
bool IsIdentical(FUniqueNetIdRepl* OtherUniqueId)
|
||||
FORCEINLINE int GetSize() { return GetReplicationBytes().Num(); } // LITERLALY IDK IF THIS IS RIGHT CUZ I CANT FIND IMPL
|
||||
FORCEINLINE uint8* GetBytes() { return GetReplicationBytes().Data; } // ^^^
|
||||
|
||||
FORCENOINLINE bool IsIdentical(FUniqueNetIdRepl* OtherUniqueId)
|
||||
{
|
||||
// idk if this is right but whatever
|
||||
|
||||
bool bTest = true;
|
||||
|
||||
if (this->GetReplicationBytes().Num() >= OtherUniqueId->GetReplicationBytes().Num())
|
||||
{
|
||||
for (int i = 0; i < this->GetReplicationBytes().Num(); i++)
|
||||
{
|
||||
if (this->GetReplicationBytes().at(i) != OtherUniqueId->GetReplicationBytes().at(i))
|
||||
{
|
||||
bTest = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bTest = false;
|
||||
}
|
||||
|
||||
// LOG_INFO(LogDev, "btest: {}", bTest);
|
||||
|
||||
return bTest;
|
||||
return (GetSize() == OtherUniqueId->GetSize()) &&
|
||||
(memcmp(GetBytes(), OtherUniqueId->GetBytes(), GetSize()) == 0);
|
||||
}
|
||||
|
||||
void CopyFromAnotherUniqueId(FUniqueNetIdRepl* OtherUniqueId)
|
||||
|
||||
Reference in New Issue
Block a user