// // GJBaseGameLayer::getGroundHeight from 0x85a120 to 0x85a1cc (172 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateDualGround @ 0x87fed8 // > @ 0x2b920 // // 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; // s8 PlayerObject *OtherPlayer; // x20 float v7; // s0 GroundHeightForMode = GJBaseGameLayer::getGroundHeightForMode(a1, a3); if ( a1->m_gameState.m_isDualMode ) { if ( GroundHeightForMode == 240.0 ) GroundHeightForMode = 270.0; OtherPlayer = GJBaseGameLayer::getOtherPlayer(a1, a2); if ( PlayerObject::isFlying(OtherPlayer) ) { v7 = GJBaseGameLayer::getGroundHeightForMode(a1, 5); } else if ( OtherPlayer->m_isBall ) { v7 = GJBaseGameLayer::getGroundHeightForMode(a1, 16); } else { v7 = GJBaseGameLayer::getGroundHeightForMode(a1, 6); } if ( GroundHeightForMode < v7 ) return v7; } return GroundHeightForMode; }
GD Web Decomp Icon

GD Web Decomp

Raw Source