// // GJBaseGameLayer::getGroundHeight from 0x46f1fc to 0x46f276 (122 bytes) // // 1 xrefs: // > GJBaseGameLayer::updateDualGround @ 0x487dba // // 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 // float GJBaseGameLayer::getGroundHeight(GJBaseGameLayer *a1, PlayerObject *a2, int a3) { float GroundHeightForMode; // r0 float v6; // s16 PlayerObject *OtherPlayer; // r5 GJBaseGameLayer *v8; // r0 int v9; // r1 float v10; // s15 GroundHeightForMode = GJBaseGameLayer::getGroundHeightForMode(a1, a3); v6 = GroundHeightForMode; if ( !a1->m_gameState.m_isDualMode ) return GroundHeightForMode; if ( GroundHeightForMode == 240.0 ) v6 = 270.0; OtherPlayer = GJBaseGameLayer::getOtherPlayer(a1, a2); if ( PlayerObject::isFlying(OtherPlayer) ) { v8 = a1; v9 = 5; } else { v8 = a1; if ( OtherPlayer->m_isBall ) v9 = 16; else v9 = 6; } v10 = GJBaseGameLayer::getGroundHeightForMode(v8, v9); if ( v6 >= v10 ) return v6; return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source