mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
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:
@@ -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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user