// // PlayerObject::redirectDash from 0x3425c8 to 0x342726 (350 bytes) // // 1 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x49160a // // 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::redirectDash(PlayerObject *a1, float a2) { double *p_m_dashX; // r8 double *p_m_dashY; // r7 float m_dashX; // s13 float m_dashY; // s15 float v8; // r0 float v9; // r0 float v10; // s17 float v11; // s16 float v12; // r0 float v13; // r0 _BOOL4 m_isSideways; // r6 int v15; // r0 float y; // r2 double v17; // d7 double v18; // d6 PlayerObject *v19; // r0 bool v20; // r1 cocos2d::CCPoint x; // [sp+4h] [bp-18h] BYREF cocos2d::CCPoint v22; // [sp+Ch] [bp-10h] BYREF if ( a1->m_isDashing ) { p_m_dashX = &a1->m_dashX; p_m_dashY = &a1->m_dashY; m_dashX = a1->m_dashX; m_dashY = a1->m_dashY; cocos2d::CCPoint::CCPoint(&x, m_dashX, m_dashY); v8 = atan2f(x.y, x.x); v9 = GJBaseGameLayer::convertToClosestDirection((float)(a2 * 0.017453) - v8, 3.1416); v10 = v9; if ( v9 != 0.0 ) { v11 = cosf(v9); v12 = sinf(v10); cocos2d::CCPoint::CCPoint(&v22, (float)(x.x * v11) - (float)(x.y * v12), (float)(x.x * v12) + (float)(x.y * v11)); cocos2d::CCPoint::operator=(&x, &v22); } v13 = atan2f(x.y, x.x); m_isSideways = a1->m_isSideways; v15 = (int)(float)-(float)(57.296 * v13); if ( a1->m_isSideways ) v15 -= 90; a1->m_dashAngle = (double)-(v15 % 360 + (v15 % 360 < 0 ? 0x168 : 0)); if ( m_isSideways ) { y = x.y; x.y = x.x; x.x = y; } v17 = x.x; v18 = x.y; *p_m_dashX = x.x; *p_m_dashY = v18; if ( v17 >= 0.0 ) { if ( v17 <= 0.0 ) { LABEL_13: PlayerObject::updateDashArt(a1); return; } v19 = a1; v20 = m_isSideways; } else { v19 = a1; v20 = !m_isSideways; } PlayerObject::doReversePlayer(v19, v20); goto LABEL_13; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source