mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
i broke the whole project but its fine
complete pickup rewrite, idle pawns
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user