disable rebooting again

fixed looting bug, fixed parachute not auto deploying on some builds
This commit is contained in:
Milxnor
2023-06-21 10:51:24 -04:00
parent 1d12b8929f
commit 5e2a74764a
24 changed files with 479 additions and 99 deletions

View File

@@ -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)