// // PlayerObject::limitDashRotation from 0x623504 to 0x623640 (316 bytes) // // 2 xrefs: // > PlayerObject::startDashing @ 0x62aad0 // > @ 0x45240 // // 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::limitDashRotation(PlayerObject *a1, float *a2) { float v2; // s8 float v3; // s0 float v4; // s0 float *v5; // [xsp+28h] [xbp+28h] float *v6; // [xsp+28h] [xbp+28h] if ( a1->m_isSideways ) { if ( a1->m_isGoingLeft ) v2 = 90.0; else v2 = -90.0; goto LABEL_4; } if ( a1->m_isGoingLeft ) { v2 = 180.0; LABEL_4: v5 = a2; *a2 = *a2 + v2; snapRotation360(a2); a2 = v5; goto LABEL_7; } v2 = 0.0; LABEL_7: v3 = *a2; if ( fabsf(*a2) > 90.0 ) { if ( v3 <= 0.0 ) v4 = -180.0 - v3; else v4 = 180.0 - v3; v6 = a2; *a2 = v4; snapRotation360(a2); a2 = v6; v3 = *v6; } if ( v3 <= 70.0 && v3 >= -70.0 ) { LABEL_17: if ( v2 == 0.0 ) return; LABEL_24: *a2 = *a2 - v2; snapRotation360(a2); return; } if ( v3 <= 0.0 ) { if ( v3 >= 70.0 || v3 <= -180.0 ) goto LABEL_16; } else if ( v3 > 70.0 && v3 < 180.0 ) { LABEL_16: *a2 = 70.0; goto LABEL_17; } *a2 = -70.0; if ( v2 != 0.0 ) goto LABEL_24; }
GD Web Decomp Icon

GD Web Decomp

Raw Source