// // GJBaseGameLayer::getGroundHeight from 0x58f0b4 to 0x58f12e (122 bytes) // // 1 xrefs: // > GJBaseGameLayer::updateDualGround @ 0x5b8c5a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:53:04 +0000 // int __fastcall GJBaseGameLayer::getGroundHeight(GJBaseGameLayer *this, PlayerObject *a2, int a3) { float v5; // r0 float v6; // s16 PlayerObject *OtherPlayer; // r5 GJBaseGameLayer *v8; // r0 int v9; // r1 float v10; // s15 v5 = COERCE_FLOAT(GJBaseGameLayer::getGroundHeightForMode(this, a3)); v6 = v5; if ( *((_BYTE *)this + 866) ) { if ( v5 == 240.0 ) v6 = 270.0; OtherPlayer = (PlayerObject *)GJBaseGameLayer::getOtherPlayer(this, a2); if ( PlayerObject::isFlying(OtherPlayer) ) { v8 = this; v9 = 5; } else { v8 = this; if ( *((_BYTE *)OtherPlayer + 1955) ) v9 = 16; else v9 = 6; } v10 = COERCE_FLOAT(GJBaseGameLayer::getGroundHeightForMode(v8, v9)); if ( v6 >= v10 ) v10 = v6; } else { v10 = v5; } return LODWORD(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source