// // GJBaseGameLayer::getGroundHeight from 0x1001e5954 to 0x1001e5a5c (264 bytes) // // 2 xrefs: // > GJBaseGameLayer::getGroundHeight @ 0x1001e596c // > GJBaseGameLayer::updateDualGround @ 0x1001e6740 // // 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 __fastcall GJBaseGameLayer::getGroundHeight(GJBaseGameLayer *a1, PlayerObject *a2, int m_dualRelated) { float v3; // w8 float result; // s0 float v5; // s8 __int64 v6; // x8 PlayerObject *v7; // x19 while ( (unsigned int)(m_dualRelated - 23) < 2 ) { m_dualRelated = a1->m_gameState.m_dualRelated; if ( (unsigned int)(m_dualRelated - 23) < 2 ) goto LABEL_9; } if ( (unsigned int)m_dualRelated <= 0x29 ) { if ( ((1LL << m_dualRelated) & 0x20004080020LL) != 0 ) { v3 = 300.0; goto LABEL_10; } if ( m_dualRelated == 16 ) { v3 = 240.0; goto LABEL_10; } } LABEL_9: v3 = 270.0; LABEL_10: result = v3; if ( a1->m_gameState.m_isDualMode ) { if ( v3 == 240.0 ) v5 = 270.0; else v5 = v3; v6 = 3272; if ( a2->m_uniqueID == a1->m_player1->m_uniqueID ) v6 = 3280; v7 = *(PlayerObject **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v6); if ( PlayerObject::isFlying(v7) ) { result = 300.0; } else { result = 270.0; if ( v7->m_isBall ) result = 240.0; } if ( v5 >= result ) return v5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source