mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fix editing s8-s10
This commit is contained in:
@@ -83,7 +83,7 @@ static inline UFortAbilitySet* GetPlayerAbilitySet()
|
|||||||
{
|
{
|
||||||
// There are some variables that contain this but it changes through versions soo..
|
// There are some variables that contain this but it changes through versions soo..
|
||||||
|
|
||||||
static auto GameplayAbilitySet = (Fortnite_Version >= 8.30 ? LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_AthenaPlayer.GAS_AthenaPlayer")
|
static auto GameplayAbilitySet = (Fortnite_Version > 8.30 ? LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_AthenaPlayer.GAS_AthenaPlayer")
|
||||||
: LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_DefaultPlayer.GAS_DefaultPlayer"));
|
: LoadObject<UFortAbilitySet>(L"/Game/Abilities/Player/Generic/Traits/DefaultPlayer/GAS_DefaultPlayer.GAS_DefaultPlayer"));
|
||||||
|
|
||||||
return GameplayAbilitySet;
|
return GameplayAbilitySet;
|
||||||
|
|||||||
@@ -1756,8 +1756,8 @@ void AFortPlayerController::ServerEditBuildingActorHook(UObject* Context, FFrame
|
|||||||
// if (!PlayerState || PlayerState->GetTeamIndex() != BuildingActorToEdit->GetTeamIndex())
|
// if (!PlayerState || PlayerState->GetTeamIndex() != BuildingActorToEdit->GetTeamIndex())
|
||||||
//return ServerEditBuildingActorOriginal(Context, Frame, Ret);
|
//return ServerEditBuildingActorOriginal(Context, Frame, Ret);
|
||||||
|
|
||||||
// if (Fortnite_Version < 16)
|
if (Fortnite_Version >= 8 && Fortnite_Version < 11) // uhhmmm
|
||||||
// BuildingActorToEdit->SetEditingPlayer(nullptr);
|
BuildingActorToEdit->SetEditingPlayer(nullptr);
|
||||||
|
|
||||||
static ABuildingSMActor* (*BuildingSMActorReplaceBuildingActor)(ABuildingSMActor*, __int64, UClass*, int, int, uint8_t, AFortPlayerController*) =
|
static ABuildingSMActor* (*BuildingSMActorReplaceBuildingActor)(ABuildingSMActor*, __int64, UClass*, int, int, uint8_t, AFortPlayerController*) =
|
||||||
decltype(BuildingSMActorReplaceBuildingActor)(Addresses::ReplaceBuildingActor);
|
decltype(BuildingSMActorReplaceBuildingActor)(Addresses::ReplaceBuildingActor);
|
||||||
@@ -1840,5 +1840,6 @@ void AFortPlayerController::ServerEndEditingBuildingActorHook(AFortPlayerControl
|
|||||||
if (EditTool)
|
if (EditTool)
|
||||||
{
|
{
|
||||||
EditTool->GetEditActor() = nullptr;
|
EditTool->GetEditActor() = nullptr;
|
||||||
|
EditTool->OnRep_EditActor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -49,6 +49,13 @@
|
|||||||
#include "FortServerBotManagerAthena.h"
|
#include "FortServerBotManagerAthena.h"
|
||||||
#include "botnames.h"
|
#include "botnames.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
KNOWN VERSIONS BROKEN:
|
||||||
|
v8.30
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
enum class EMeshNetworkNodeType : uint8_t
|
enum class EMeshNetworkNodeType : uint8_t
|
||||||
{
|
{
|
||||||
Root = 0,
|
Root = 0,
|
||||||
@@ -822,7 +829,7 @@ DWORD WINAPI Main(LPVOID)
|
|||||||
std::ios_base::sync_with_stdio(false);
|
std::ios_base::sync_with_stdio(false);
|
||||||
|
|
||||||
auto MH_InitCode = MH_Initialize();
|
auto MH_InitCode = MH_Initialize();
|
||||||
|
|
||||||
if (MH_InitCode != MH_OK)
|
if (MH_InitCode != MH_OK)
|
||||||
{
|
{
|
||||||
LOG_ERROR(LogInit, "Failed to initialize MinHook {}!", MH_StatusToString(MH_InitCode));
|
LOG_ERROR(LogInit, "Failed to initialize MinHook {}!", MH_StatusToString(MH_InitCode));
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ inline void InitLogger()
|
|||||||
#define LOG_FATAL(loggerName, ...)
|
#define LOG_FATAL(loggerName, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
#define DEBUG_LOG_INFO(loggerName, ...) \
|
#define DEBUG_LOG_INFO(loggerName, ...) \
|
||||||
if (spdlog::get(#loggerName)) \
|
if (spdlog::get(#loggerName)) \
|
||||||
spdlog::get(#loggerName)->info(std::format(__VA_ARGS__));
|
spdlog::get(#loggerName)->info(std::format(__VA_ARGS__));
|
||||||
|
|||||||
Reference in New Issue
Block a user