// // PlayerObject::touchedObject from 0x34de30 to 0x34df60 (304 bytes) // // 1 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x492aa0 // // 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::touchedObject(PlayerObject *a1, GameObject *a2) { int m_objectID; // r3 int v5; // r2 int v6; // r2 PlayerObject *v7; // r2 PlayerObject *p_m_stateForceVector; // r4 int v9; // r2 bool v10; // r3 float Length; // s16 int v12; // r2 bool v13; // r3 float m_fTextureLeft; // [sp+0h] [bp-18h] BYREF cocos2d::CCPoint v15; // [sp+4h] [bp-14h] BYREF _BYTE v16[8]; // [sp+Ch] [bp-Ch] BYREF m_objectID = a2->m_objectID; if ( m_objectID == 1859 ) { a1->m_stateHitHead = 2; } else if ( m_objectID > 1859 ) { if ( m_objectID == 2866 ) { a1->m_stateFlipGravity = 2; return; } v5 = 3645; if ( m_objectID == 3645 || (v5 = 2069, m_objectID == 2069) ) { a1->m_stateForce = 2; m_fTextureLeft = a2[1].m_fTextureLeft; if ( SLODWORD(m_fTextureLeft) > 0 ) { if ( *(_BYTE *)std::map::operator[](&a1->m_jumpPadRelated.compare.pad, &m_fTextureLeft, v5) ) return; *(_BYTE *)std::map::operator[](&a1->m_jumpPadRelated.compare.pad, &m_fTextureLeft, v6) = 1; } v7 = a1; p_m_stateForceVector = (PlayerObject *)&a1->m_stateForceVector; ForceBlockGameObject::calculateForceToTarget(&v15, (ForceBlockGameObject *)a2, v7); cocos2d::CCPoint::operator+(v16, p_m_stateForceVector, &v15); cocos2d::CCPoint::operator=( p_m_stateForceVector, COERCE_FLOAT(v16), v9, v10, (GameObject *)LODWORD(m_fTextureLeft)); Length = cocos2d::CCPoint::getLength((cocos2d::CCPoint *)p_m_stateForceVector); if ( cocos2d::CCPoint::getLength((cocos2d::CCPoint *)p_m_stateForceVector) > 9999.0 ) { cocos2d::CCPoint::operator*(v16, p_m_stateForceVector, 9999.0 / Length); cocos2d::CCPoint::operator=( p_m_stateForceVector, COERCE_FLOAT(v16), v12, v13, (GameObject *)LODWORD(m_fTextureLeft)); } } } else { switch ( m_objectID ) { case 1813: a1->m_stateNoAutoJump = 2; break; case 1829: if ( a1->m_isDashing ) { PlayerObject::stopDashing(a1); a1->m_jumpBuffered = 0; } break; case 1755: a1->m_stateDartSlide = 2; break; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source