// // PlayerObject::preCollision from 0x348130 to 0x34820e (222 bytes) // // 1 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x49343a // // 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::preCollision(PlayerObject *a1) { bool m_isOnSlope; // r1 _BOOL4 m_isOnGround2; // r2 GameObject *m_currentPotentialSlope; // r3 GameObject *m_currentSlope; // r3 PlayerObject *m_uniqueID; // [sp+0h] [bp-8h] BYREF m_uniqueID = a1; a1->m_ringJumpRelated = 0; a1->m_collidedTopMinY = 0.0; a1->m_collidedBottomMaxY = 0.0; a1->m_collidedLeftMaxX = 0.0; a1->m_collidedRightMinX = 0.0; m_isOnSlope = a1->m_isOnSlope; a1->m_isOnSlope = 0; m_isOnGround2 = a1->m_isOnGround2; a1->m_wasOnSlope = m_isOnSlope; a1->m_isOnGround4 = m_isOnGround2; if ( m_isOnGround2 && !a1->m_platformerMovingLeft && !a1->m_platformerMovingRight && a1->m_maybeSlidingTime > 0 ) { a1->m_maybeSlidingTime = a1->m_platformerMovingRight; a1->m_maybeSlidingStartTime = a1->m_totalTime; } if ( a1->m_unk669 ) a1->m_currentPotentialSlope = nullptr; else a1->m_unk669 = 1; std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::clear((int)&a1->m_potentialSlopeMap); m_currentPotentialSlope = a1->m_currentPotentialSlope; if ( m_currentPotentialSlope ) { m_uniqueID = (PlayerObject *)m_currentPotentialSlope->m_uniqueID; *std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( &a1->m_potentialSlopeMap._M_h._M_buckets, (unsigned int *)&m_uniqueID) = a1->m_currentPotentialSlope; } m_currentSlope = a1->m_currentSlope; if ( m_currentSlope ) { m_uniqueID = (PlayerObject *)m_currentSlope->m_uniqueID; *std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( &a1->m_potentialSlopeMap._M_h._M_buckets, (unsigned int *)&m_uniqueID) = a1->m_currentSlope; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source