// // PlayerObject::runBallRotation2 from 0x33e4a8 to 0x33e58c (228 bytes) // // 3 xrefs: // > PlayerObject::flipGravity @ 0x34529e // > PlayerObject::ringJump @ 0x34e4a8 // > PlayerObject::ringJump @ 0x34e6fa // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void PlayerObject::runBallRotation2(PlayerObject *a1) { float v2; // s17 float m_playerSpeed; // s15 float v4; // s16 int v5; // r5 float v6; // s14 if ( !a1->m_isDashing ) { v2 = 0.8; m_playerSpeed = a1->m_playerSpeed; if ( a1->m_vehicleSize == 1.0 ) v2 = 1.0; if ( m_playerSpeed == 0.7 ) { v4 = 1.2406; } else if ( m_playerSpeed == 1.1 ) { v4 = 0.80424; } else if ( m_playerSpeed == 1.3 ) { v4 = 0.66577; } else { v4 = 0.54094; if ( m_playerSpeed != 1.6 ) v4 = 1.0; } v5 = PlayerObject::flipMod(a1); v6 = (float)((float)(PlayerObject::reverseMod(a1) * -340 * v5) * a1->m_gravityMod) / (v2 * 0.8 * v4); a1->m_rotationSpeed = v6; a1->m_isBallRotating2 = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source