// // PlayerObject::toggleRollMode from 0x3473ec to 0x3474ca (222 bytes) // // 4 xrefs: // > PlayerObject::switchedToMode @ 0x346bb0 // > PlayerObject::copyAttributes @ 0x347774 // > MenuGameLayer::resetPlayer @ 0x3a983a // > GJBaseGameLayer::switchToRollMode @ 0x46f032 // // 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::toggleRollMode(PlayerObject *a1, bool a2, bool a3) { _BOOL4 v4; // r5 _BOOL4 v5; // r6 int m_isBall; // r1 float m_vehicleSize; // s14 GameManager *v8; // r0 int random; // r1 int seed; // r3 PlayerObject *v11; // r0 int v12; // r1 int v13; // r1 cocos2d::ccColor3B v14; // [sp+4h] [bp-4h] v4 = a2; v5 = a3; if ( a1->m_isBall != a2 ) { a1->m_gameModeChangedTime = a1->m_totalTime; a1->m_isBall = a2; if ( a2 ) PlayerObject::switchedToMode(a1, BallPortal); m_isBall = a1->m_isBall; m_vehicleSize = a1->m_vehicleSize; if ( a1->m_isBall ) { if ( m_vehicleSize != 1.0 && a1->m_defaultMiniIcon ) { v11 = a1; v12 = 0; } else { v8 = GameManager::sharedState(); random = v8->m_playerBall.random; seed = v8->m_playerBall.seed; v11 = a1; v12 = random - seed; } PlayerObject::updatePlayerRollFrame(v11, v12); if ( !v5 ) { *(_WORD *)&v14.r = 13055; v14.b = 50; PlayerObject::spawnPortalCircle(a1, v14, 50.0); } } else { if ( m_vehicleSize == 1.0 || !a1->m_defaultMiniIcon ) m_isBall = a1->m_maybeSavedPlayerFrame; PlayerObject::updatePlayerFrame(a1, m_isBall); if ( a1->m_isUpsideDown ) v13 = 1127481344; else v13 = 0; ((void (__fastcall *)(PlayerObject *, int))a1->setRotation)(a1, v13); } PlayerObject::stopRotation(a1, 1, 11); if ( v4 ) PlayerObject::modeDidChange(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source