Skip to content

Commit 8e294e5

Browse files
authored
Temporarly disable inf cap jumps
1 parent 5867513 commit 8e294e5

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

source/ExtrasCode.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,20 @@ void handleNoclip(PlayerActorHakoniwa* hakoniwa, bool gNoclip, bool isYukimaru)
7777

7878
void handleInfiniteCapBounce(PlayerActorHakoniwa* playerBase, bool gInfiniteCapBounce) {
7979

80-
static int capBounceFrameCounter = 0; //für die frames
81-
static int x = 3; //für die frames
82-
83-
if (playerBase && gInfiniteCapBounce) {
84-
capBounceFrameCounter++;
85-
if (capBounceFrameCounter >= x) { // alle 3 Frames
86-
PlayerActorHakoniwa* hakoniwa = static_cast<PlayerActorHakoniwa*>(playerBase);
87-
if (hakoniwa && hakoniwa->mHackCap && hakoniwa->mHackCap->mCapActionHistory && hakoniwa->mPlayerWallActionHistory) { //wenn hakoniwa und hackcap und capactionhistory und playerwallactionhistory
88-
hakoniwa->mHackCap->mCapActionHistory->clearCapJump(); //cap jump reset
89-
hakoniwa->mPlayerWallActionHistory->reset(); //wall jump reset
90-
}
91-
capBounceFrameCounter = 0; // zurücksetzen
92-
}
93-
}
80+
//static int capBounceFrameCounter = 0; //für die frames
81+
//static int x = 3; //für die frames
82+
83+
//if (playerBase && gInfiniteCapBounce) {
84+
// capBounceFrameCounter++;
85+
// if (capBounceFrameCounter >= x) { // alle 3 Frames
86+
// PlayerActorHakoniwa* hakoniwa = static_cast<PlayerActorHakoniwa*>(playerBase);
87+
// if (hakoniwa && hakoniwa->mHackCap && hakoniwa->mHackCap->mCapActionHistory && hakoniwa->mPlayerWallActionHistory) { //wenn hakoniwa und hackcap und capactionhistory und playerwallactionhistory
88+
// hakoniwa->mHackCap->mCapActionHistory->clearCapJump(); //cap jump reset
89+
// hakoniwa->mPlayerWallActionHistory->reset(); //wall jump reset
90+
// }
91+
// capBounceFrameCounter = 0; // zurücksetzen
92+
// }
93+
//}
9494
}
9595

9696

0 commit comments

Comments
 (0)