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

@@ -7,6 +7,7 @@
#include "FortKismetLibrary.h"
#include "AthenaMarkerComponent.h"
#include "FortVolume.h"
#include "AthenaPlayerMatchReport.h"
static void ApplyHID(AFortPlayerPawn* Pawn, UObject* HeroDefinition, bool bUseServerChoosePart = false)
{
@@ -191,6 +192,25 @@ public:
this->ProcessEvent(ClientClearDeathNotificationFn);
}
UAthenaPlayerMatchReport*& GetMatchReport()
{
static auto MatchReportOffset = GetOffset("MatchReport");
return Get<UAthenaPlayerMatchReport*>(MatchReportOffset);
}
void ClientSendTeamStatsForPlayer(FAthenaMatchTeamStats* TeamStats)
{
static auto ClientSendTeamStatsForPlayerFn = FindObject<UFunction>("/Script/FortniteGame.FortPlayerControllerAthena.ClientSendTeamStatsForPlayer");
static auto ParamSize = ClientSendTeamStatsForPlayerFn->GetPropertiesSize();
auto Params = malloc(ParamSize);
memcpy_s(Params, ParamSize, TeamStats, TeamStats->GetStructSize());
this->ProcessEvent(ClientSendTeamStatsForPlayerFn, Params);
free(Params);
}
void RespawnPlayerAfterDeath(bool bEnterSkydiving)
{
static auto RespawnPlayerAfterDeathFn = FindObject<UFunction>(L"/Script/FortniteGame.FortPlayerControllerAthena.RespawnPlayerAfterDeath");