@@ -84,6 +84,28 @@ void PortEnhancements_Init() {
8484 }
8585 });
8686
87+ REGISTER_LISTENER (SetTripleJumpAction, EVENT_PRIORITY_NORMAL , [](IEvent* event) {
88+ if (CVarGetInteger (" gCheats.AlwaysFlyTripleJump" , 0 ) == 0 ) {
89+ return ;
90+ }
91+ SetTripleJumpAction* ev = (SetTripleJumpAction*)event;
92+ *ev->useFlyingVariant = true ;
93+ });
94+ REGISTER_LISTENER (FlyingActionUpdate, EVENT_PRIORITY_NORMAL , [](IEvent* event) {
95+ if (CVarGetInteger (" gCheats.AlwaysFlyTripleJump" , 0 ) == 0 ) {
96+ return ;
97+ }
98+ FlyingActionUpdate* ev = (FlyingActionUpdate*)event;
99+ *ev->canFly = true ;
100+ });
101+ REGISTER_LISTENER (FlyingTripleJumpLaunch, EVENT_PRIORITY_NORMAL , [](IEvent* event) {
102+ if (CVarGetInteger (" gCheats.FlyingTripleJumpHighLaunch" , 0 ) == 0 ) {
103+ return ;
104+ }
105+ FlyingTripleJumpLaunch* ev = (FlyingTripleJumpLaunch*)event;
106+ *ev->launchVelocity = 246 .0f ;
107+ });
108+
87109 auto OnDistanceFunc = [](IEvent* event) {
88110 if (CVarGetInteger (" gEnhancements.DisableDrawDistance" , 0 ) == 0 ) {
89111 return ;
@@ -117,6 +139,9 @@ void PortEnhancements_Register() {
117139 REGISTER_EVENT (PlayerStartedDialog);
118140 REGISTER_EVENT (PlayerDeath);
119141 REGISTER_EVENT (PlayerExecuteAction);
142+ REGISTER_EVENT (SetTripleJumpAction);
143+ REGISTER_EVENT (FlyingActionUpdate);
144+ REGISTER_EVENT (FlyingTripleJumpLaunch);
120145
121146 // Register Rando Events
122147 REGISTER_EVENT (ItemCollected);
0 commit comments