squad comms

squad comms, ltms now work less (this will return better in a later update), performance, fixed some versions, fixed vulnerabilities
This commit is contained in:
Milxnor
2023-06-15 22:04:53 -04:00
parent ed0c9005e6
commit 4482192a2b
46 changed files with 444 additions and 427 deletions

View File

@@ -149,8 +149,6 @@ public:
return Get<EAthenaGamePhaseStep>(GamePhaseStepOffset);
}
void SetGamePhaseStep(EAthenaGamePhaseStep NewGamePhaseStep);
UFortPlaylist*& GetCurrentPlaylist();
TScriptInterface<UFortSafeZoneInterface> GetSafeZoneInterface();
@@ -166,36 +164,4 @@ public:
void AddToAdditionalPlaylistLevelsStreamed(const FName& Name, bool bServerOnly = false);
static UClass* StaticClass();
};
static void* ConstructOnGamePhaseStepChangedParams(EAthenaGamePhaseStep GamePhaseStep)
{
struct AFortAthenaAIBotController_OnGamePhaseStepChanged_Params
{
TScriptInterface<UFortSafeZoneInterface> SafeZoneInterface; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData, NoDestructor, UObjectWrapper, NativeAccessSpecifierPublic)
EAthenaGamePhaseStep GamePhaseStep; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
bool bHasSafeZoneInterfaceParam = Fortnite_Version >= 10; // idk what version
AFortAthenaAIBotController_OnGamePhaseStepChanged_Params* Params = Alloc<AFortAthenaAIBotController_OnGamePhaseStepChanged_Params>();
if (bHasSafeZoneInterfaceParam)
{
auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState();
auto Interface = GameState->GetSafeZoneInterface();
if (!Interface.ObjectPointer)
return nullptr;
Params->SafeZoneInterface = Interface;
Params->GamePhaseStep = GamePhaseStep;
}
else
{
*(EAthenaGamePhaseStep*)(__int64(Params) + 0) = GamePhaseStep;
}
return Params;
}
};