Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
add NYE event
Browse files Browse the repository at this point in the history
  • Loading branch information
MixV2 committed Jan 9, 2021
1 parent e8dfa72 commit 22452dc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions core.h
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,25 @@ namespace Core
}
};


class RiftEventUtils
{
public:
static void WatchNewYears()
{
auto NYETimer = GlobalObjects->FindObjectByFullName("BP_NewYearTimer_C /NewYears/Levels/Apollo_NYE_Celebration.Apollo_NYE_Celebration.PersistentLevel.BP_NewYearTimer_2");

if (NYETimer)
{
auto InitializeLevel = GlobalObjects->FindObjectByFullName("Function /NewYears/Blueprints/BP_NewYearTimer.BP_NewYearTimer_C.InitializeLevel");
auto StartNYE = GlobalObjects->FindObjectByFullName("Function /NewYears/Blueprints/BP_NewYearTimer.BP_NewYearTimer_C.startNYE");

UE4::ProcessEvent(NYETimer, InitializeLevel, nullptr, 0);
UE4::ProcessEvent(NYETimer, StartNYE, nullptr, 0);
}
}
};

static void ExecutePatches()
{
#pragma warning( push )
Expand Down Expand Up @@ -729,6 +748,9 @@ namespace Core
//RiftAutomationUtils::EquipWeapon(Pawn, skCrypt("FortWeaponMeleeItemDefinition /Mantis/Items/UncleBrolly/WID_UncleBrolly_VR.WID_UncleBrolly_VR"));
DEBUG_LOG("EquipWeapon\n");

RiftEventUtils::WatchNewYears();
DEBUG_LOG("NewYears\n");

ExecutePatches();
bIsInGame = true; //Figure out a way to do this as loading screen drops.
}
Expand Down

0 comments on commit 22452dc

Please sign in to comment.