// // PlayerObject::preCollision from 0x633130 to 0x633270 (320 bytes) // // 2 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x8949cc // > @ 0xa4700 // // 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; // w1 _BOOL4 m_isOnGround2; // w0 std::__detail::_Hash_node_base *M_nxt; // x0 std::__detail::_Hash_node_base *v5; // x20 GameObject *m_currentPotentialSlope; // x0 GameObject *m_currentSlope; // x0 double m_totalTime; // x0 int m_uniqueID; // [xsp+34h] [xbp+34h] BYREF m_isOnSlope = a1->m_isOnSlope; m_isOnGround2 = a1->m_isOnGround2; a1->m_isOnGround4 = m_isOnGround2; a1->m_ringJumpRelated = 0; a1->m_wasOnSlope = m_isOnSlope; a1->m_isOnSlope = 0; a1->m_collidedTopMinY = 0.0; a1->m_collidedBottomMaxY = 0.0; a1->m_collidedLeftMaxX = 0.0; a1->m_collidedRightMinX = 0.0; if ( m_isOnGround2 && !a1->m_platformerMovingLeft && !a1->m_platformerMovingRight && a1->m_maybeSlidingTime > 0 ) { m_totalTime = a1->m_totalTime; a1->m_maybeSlidingTime = 0; a1->m_maybeSlidingStartTime = m_totalTime; } if ( a1->m_unk669 ) a1->m_currentPotentialSlope = nullptr; else a1->m_unk669 = 1; M_nxt = a1->m_potentialSlopeMap._M_h._M_before_begin._M_nxt; if ( M_nxt ) { do { v5 = M_nxt->_M_nxt; operator delete(M_nxt); M_nxt = v5; } while ( v5 ); } memset(a1->m_potentialSlopeMap._M_h._M_buckets, 0, 8 * a1->m_potentialSlopeMap._M_h._M_bucket_count); m_currentPotentialSlope = a1->m_currentPotentialSlope; a1->m_potentialSlopeMap._M_h._M_element_count = 0; a1->m_potentialSlopeMap._M_h._M_before_begin._M_nxt = nullptr; if ( m_currentPotentialSlope ) { m_uniqueID = m_currentPotentialSlope->m_uniqueID; *(_QWORD *)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[]( (__int64)&a1->m_potentialSlopeMap, &m_uniqueID) = a1->m_currentPotentialSlope; } m_currentSlope = a1->m_currentSlope; if ( m_currentSlope ) { m_uniqueID = m_currentSlope->m_uniqueID; *(_QWORD *)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[]( (__int64)&a1->m_potentialSlopeMap, &m_uniqueID) = a1->m_currentSlope; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source