work on skyfire

This commit is contained in:
Milxnor
2023-05-19 20:21:24 -04:00
parent 45fbfbef74
commit f37e15927f
22 changed files with 250 additions and 52 deletions

View File

@@ -185,7 +185,7 @@ public:
void RespawnPlayerAfterDeath(bool bEnterSkydiving)
{
static auto RespawnPlayerAfterDeathFn = FindObject<UFunction>("/Script/FortniteGame.FortPlayerControllerAthena.RespawnPlayerAfterDeath");
static auto RespawnPlayerAfterDeathFn = FindObject<UFunction>(L"/Script/FortniteGame.FortPlayerControllerAthena.RespawnPlayerAfterDeath");
if (RespawnPlayerAfterDeathFn)
{
@@ -193,10 +193,16 @@ public:
}
else
{
// techinally we can remake this as all it really does on older versions is clear deathinfo
// techinally we can remake this as all it really does on older versions is clear deathinfo (I think?)
}
}
bool& IsMarkedAlive()
{
static auto bMarkedAliveOffset = GetOffset("bMarkedAlive");
return Get<bool>(bMarkedAliveOffset);
}
static void StartGhostModeHook(UObject* Context, FFrame* Stack, void* Ret); // we could native hook this but eh
static void EndGhostModeHook(AFortPlayerControllerAthena* PlayerController);
static void EnterAircraftHook(UObject* PC, AActor* Aircraft);