i broke the whole project but its fine

complete pickup rewrite, idle pawns
This commit is contained in:
Milxnor
2023-05-07 17:34:24 -04:00
parent 5e92f2e90b
commit 3405177d20
51 changed files with 1439 additions and 338 deletions

View File

@@ -11,4 +11,23 @@ UStruct* FHitResult::GetStruct()
int FHitResult::GetStructSize()
{
return GetStruct()->GetPropertiesSize();
}
bool FHitResult::IsBlockingHit()
{
// return true;
static auto bBlockingHitOffset = FindOffsetStruct("/Script/Engine.HitResult", "bBlockingHit");
static auto bBlockingHitFieldMask = GetFieldMask(FindPropertyStruct("/Script/Engine.HitResult", "bBlockingHit"));
return ReadBitfield((PlaceholderBitfield*)(__int64(this) + bBlockingHitOffset), bBlockingHitFieldMask);
}
FVector& FHitResult::GetLocation()
{
static auto LocationOffset = FindOffsetStruct("/Script/Engine.HitResult", "Location");
return *(FVector*)(__int64(this) + LocationOffset);
}
void FHitResult::CopyFromHitResult(FHitResult* Other)
{
this->GetLocation() = Other->GetLocation();
}