// // PlayerObject::spawnFromPlayer from 0x631e54 to 0x631f4c (248 bytes) // // 2 xrefs: // > GJBaseGameLayer::spawnPlayer2 @ 0x85a818 // > @ 0x8c850 // // 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 // // local variable allocation has failed, the output may be wrong! void PlayerObject::spawnFromPlayer(PlayerObject *a1, bool a2) { unsigned __int8 v2; // w2 int v3; // w21 _BOOL8 v5; // x20 bool v6; // w1 double YVelocity; // d0 bool v8; // w1 double v9; // d0 bool v10; // w1 v3 = v2; v5 = a2; a1->setVisible(a1, 1); a1->setOpacity(a1, 0xFFFFFFFF); PlayerObject::copyAttributes(a1); v6 = *(_BYTE *)(v5 + 2455); if ( v3 ) { PlayerObject::flipGravity(a1, !v6, 1); YVelocity = PlayerObject::getYVelocity((PlayerObject *)v5); PlayerObject::setYVelocity(a1, -YVelocity, 49); v8 = *(_BYTE *)(v5 + 1803); a1->m_isOnGround = 0; a1->m_isOnGround2 = 0; PlayerObject::toggleVisibility(a1, !v8); if ( !a1->m_isDart ) return; LABEL_5: PlayerObject::placeStreakPoint(a1); return; } PlayerObject::flipGravity(a1, v6, 1); v9 = PlayerObject::getYVelocity((PlayerObject *)v5); PlayerObject::setYVelocity(a1, v9, 49); v10 = *(_BYTE *)(v5 + 1803); a1->m_isOnGround = 0; a1->m_isOnGround2 = 0; PlayerObject::toggleVisibility(a1, !v10); if ( a1->m_isDart ) goto LABEL_5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source