lategame pretty much working, work on some string stuff, some memory optimizations, summon should now work with non-bps
This commit is contained in:
Milxnor
2023-06-03 15:01:24 -04:00
parent fbf392e0a1
commit 5e6d120c09
20 changed files with 358 additions and 174 deletions

View File

@@ -146,22 +146,24 @@ public:
((UKismetSystemLibrary_LineTraceSingle_Params*)Params)->bTraceComplex = bTraceComplex;
*(bool*)(__int64(Params) + bIgnoreSelfOffset) = bIgnoreSelf;
static auto KismetSystemLibrary = FindObject("/Script/Engine.Default__KismetSystemLibrary");
static auto KismetSystemLibrary = FindObject(L"/Script/Engine.Default__KismetSystemLibrary");
KismetSystemLibrary->ProcessEvent(LineTraceSingleFn, Params);
if (OutHit)
*OutHit = (FHitResult*)(__int64(Params) + OutHitOffset);
return *(bool*)(__int64(Params) + ReturnValueOffset);
bool ReturnValue = *(bool*)(__int64(Params) + ReturnValueOffset);
// free params frfr
// VirtualFree(Params, 0, MEM_RELEASE);
return ReturnValue;
}
static bool LineTraceSingleByProfile(UObject* WorldContextObject, const FVector& Start, const FVector& End, FName ProfileName, bool bTraceComplex,
const TArray<AActor*>& ActorsToIgnore, EDrawDebugTrace DrawDebugType, FHitResult** OutHit, bool bIgnoreSelf, const FLinearColor& TraceColor,
const FLinearColor& TraceHitColor, float DrawTime)
{
auto LineTraceSingleByProfileFn = FindObject<UFunction>("/Script/Engine.KismetSystemLibrary.LineTraceSingleByProfile");
auto LineTraceSingleByProfileFn = FindObject<UFunction>(L"/Script/Engine.KismetSystemLibrary.LineTraceSingleByProfile");
if (!LineTraceSingleByProfileFn)
return false;