// // PlayerObject::updateRotation from 0x625c20 to 0x625dbc (412 bytes) // // 4 xrefs: // > MenuGameLayer::update @ 0x6c9940 // > GJBaseGameLayer::update @ 0x89e124 // > GJBaseGameLayer::update @ 0x89e384 // > @ 0x81c60 // // 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::updateRotation(PlayerObject *a1, float a2) { float m_rotateSpeed; // s9 void (__fastcall *setRotation)(PlayerObject *__hidden, float); // x20 float v6; // s0 _BOOL4 m_wasOnSlope; // w0 float v8; // s0 if ( a1->m_isLocked || a1->m_isDashing ) return; if ( a1->m_isBall ) goto LABEL_6; if ( a1->m_isOnSlope ) { PlayerObject::updateSlopeRotation(a1, a2); goto LABEL_6; } if ( PlayerObject::isFlying(a1) ) { PlayerObject::updateShipRotation(a1, a2); goto LABEL_6; } if ( PlayerObject::isFlying(a1) || a1->m_isBall || !a1->m_isOnGround2 || PlayerObject::playerIsFalling(a1, -0.25) ) { if ( a1->m_isRobot ) { LABEL_19: if ( a1->m_isOnSlope ) goto LABEL_6; m_wasOnSlope = a1->m_wasOnSlope; LABEL_21: if ( !m_wasOnSlope ) PlayerObject::updateRotation(a1, a2 * 0.5, 0.0); goto LABEL_6; } LABEL_18: if ( !a1->m_isSpider ) goto LABEL_6; goto LABEL_19; } if ( a1->m_isOnSlope ) { if ( a1->m_isRobot ) goto LABEL_6; goto LABEL_18; } m_wasOnSlope = a1->m_wasOnSlope; if ( !a1->m_wasOnSlope ) { if ( !a1->m_isPlatformer || !a1->m_isRotating ) { PlayerObject::stopRotation(a1, 0, 2); v8 = PlayerObject::convertToClosestRotation(a1, 0.0); PlayerObject::updateRotation(a1, a2, v8); } goto LABEL_6; } if ( !a1->m_isRobot && a1->m_isSpider ) goto LABEL_21; LABEL_6: if ( a1->m_rotationSpeed != 0.0 ) { if ( a1->m_isBallRotating && a1->m_isBall ) m_rotateSpeed = a1->m_rotateSpeed; else m_rotateSpeed = 1.0; setRotation = a1->setRotation; v6 = a1->getRotation(a1); setRotation(a1, v6 + (float)((float)((float)(a2 / 60.0) * a1->m_rotationSpeed) * m_rotateSpeed)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source