mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
fix the fixes for the fixes
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Calendar
|
|||||||
{
|
{
|
||||||
static inline bool HasSnowModification()
|
static inline bool HasSnowModification()
|
||||||
{
|
{
|
||||||
return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 19.10;
|
return Fortnite_Version == 7.30 || Fortnite_Version == 11.31 || Fortnite_Version == 15.10 || Fortnite_Version == 19.10;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline UObject* GetSnowSetup()
|
static inline UObject* GetSnowSetup()
|
||||||
@@ -40,9 +40,9 @@ namespace Calendar
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void SetSnow(float NewValue)
|
static inline void SetSnow(float NewValue)
|
||||||
{
|
{
|
||||||
static auto SetSnowFn = FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") ? FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8") :
|
static auto SetSnowFn = FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") ? FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetSnow") :
|
||||||
FindObject<UFunction>(L"/Game/Athena/Environments/Landscape/Blueprints/BP_SnowSetup.BP_SnowSetup_C.SetSnow");
|
FindObject<UFunction>(L"/Game/Athena/Environments/Landscape/Blueprints/BP_SnowSetup.BP_SnowSetup_C.SetSnow");
|
||||||
auto SnowSetup = GetSnowSetup();
|
auto SnowSetup = GetSnowSetup();
|
||||||
|
|
||||||
@@ -53,6 +53,8 @@ namespace Calendar
|
|||||||
auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState();
|
auto GameState = (AFortGameStateAthena*)GetWorld()->GetGameState();
|
||||||
|
|
||||||
GET_PLAYLIST(GameState)
|
GET_PLAYLIST(GameState)
|
||||||
|
|
||||||
|
/*
|
||||||
struct { UObject* GameState; UObject* Playlist; FGameplayTagContainer PlaylistContextTags; } OnReadyParams{ GameState, CurrentPlaylist, FGameplayTagContainer()};
|
struct { UObject* GameState; UObject* Playlist; FGameplayTagContainer PlaylistContextTags; } OnReadyParams{ GameState, CurrentPlaylist, FGameplayTagContainer()};
|
||||||
|
|
||||||
UFunction* OnReadyFunc = FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8");
|
UFunction* OnReadyFunc = FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.OnReady_0A511B314AE165C51798519FB84738B8");
|
||||||
@@ -64,8 +66,14 @@ namespace Calendar
|
|||||||
SnowSetup->ProcessEvent(OnReadyFunc, &OnReadyParams);
|
SnowSetup->ProcessEvent(OnReadyFunc, &OnReadyParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
LOG_INFO(LogDev, "Called OnReady!");
|
LOG_INFO(LogDev, "Called OnReady!");
|
||||||
|
|
||||||
|
SnowSetup->ProcessEvent(SetSnowFn, &NewValue);
|
||||||
|
|
||||||
|
LOG_INFO(LogDev, "Called SetSnow!");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (NewValue != -1)
|
if (NewValue != -1)
|
||||||
@@ -85,6 +93,12 @@ namespace Calendar
|
|||||||
|
|
||||||
static auto ada = FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetFullSnowEd");
|
static auto ada = FindObject<UFunction>(L"/Game/Athena/Apollo/Environments/Blueprints/CalendarEvents/BP_ApolloSnowSetup.BP_ApolloSnowSetup_C.SetFullSnowEd");
|
||||||
SnowSetup->ProcessEvent(ada);
|
SnowSetup->ProcessEvent(ada);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LOG_INFO(LogDev, "Failed TO FIND!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user