Downloads containing upuppercut.mut

Downloads
Name Author Game Mode Rating
JJ2 1.23 vanilla: Miscellaneous stuff Violet CLM Multiple N/A Download file

File preview

#pragma name "Up Uppercut"

array<float> lastXSpeed(jjLocalPlayerCount);
void onPlayer(jjPLAYER@ play) {
	if (jjCharacters[play.charCurr].groundJump == GROUND::JAZZ) {
		if (play.specialMove == 0) {
			lastXSpeed[play.localPlayerID] = 0;
			//jjCharacters[CHAR::JAZZ].xSpeed = abs(play.xSpeed);
			if (play.keyUp && play.keyJump) {
				const auto curAnim = play.curAnim - jjAnimSets[play.setID];
				if (curAnim == RABBIT::LOOKUP || curAnim == RABBIT::FIREUP || curAnim == RABBIT::FIREUPQUIT || (curAnim >= RABBIT::RUN1 && curAnim <= RABBIT::SKID3)) {
					play.specialMove = 16;
					lastXSpeed[play.localPlayerID] = play.xSpeed;
				}
			}
		} else
			play.xSpeed = lastXSpeed[play.localPlayerID];
	}
}