// // PlayerObject::didHitHead from 0x140393c30 to 0x140393ca5 (117 bytes) // // 4 xrefs: // > PlayerObject::collidedWithObjectInternal @ 0x14039283b // > PlayerObject::collidedWithObjectInternal @ 0x140392e5b // > PlayerObject::collidedWithObjectInternal @ 0x140393b84 // > @ 0x1406d626c // // 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 // void PlayerObject::didHitHead(PlayerObject *a1) { int v2; // r8d int v3; // eax bool v4; // zf bool v5; // sf if ( a1->m_stateFlipGravity > 0 ) { PlayerObject::flipGravity(a1, !a1->m_isUpsideDown, 1); v3 = 2; if ( !a1->m_isUpsideDown ) v3 = -2; PlayerObject::setYVelocity(a1, (double)v3, v2); v4 = a1->m_stateNoAutoJump == 0; v5 = a1->m_stateNoAutoJump < 0; a1->m_maybeIsBoosted = 1; a1->m_isOnGround2 = 0; if ( !v5 && !v4 ) { a1->m_isOnGround = 0; *(_WORD *)&a1->m_jumpBuffered = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source