// // PlayerObject::limitDashRotation from 0x10022614c to 0x1002262e8 (412 bytes) // // 1 xrefs: // > PlayerObject::startDashing @ 0x1002264a4 // // 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 __fastcall PlayerObject::limitDashRotation(PlayerObject *a1, float *a2) { float v2; // s0 float v3; // s1 float v4; // w8 float v5; // s2 float v6; // w8 float v8; // s2 float v10; // s3 float v12; // s0 float v13; // w8 v2 = -90.0; if ( !a1->m_isSideways ) v2 = 0.0; if ( a1->m_isGoingLeft ) v2 = v2 + 180.0; v3 = *a2; if ( v2 != 0.0 ) { v3 = v2 + v3; *a2 = v3; if ( v3 <= 180.0 ) { if ( v3 >= -180.0 ) goto LABEL_11; v4 = 360.0; } else { v4 = -360.0; } v3 = v3 + v4; *a2 = v3; } LABEL_11: if ( fabsf(v3) <= 90.0 ) goto LABEL_19; v5 = -180.0; if ( v3 > 0.0 ) v5 = 180.0; v3 = v5 - v3; *a2 = v3; if ( v3 <= 180.0 ) { if ( v3 >= -180.0 ) goto LABEL_19; v6 = 360.0; } else { v6 = -360.0; } v3 = v3 + v6; *a2 = v3; LABEL_19: if ( v3 > 70.0 || v3 < -70.0 ) { v8 = 70.0; if ( v3 > -180.0 && v3 < 70.0 ) v8 = -70.0; v10 = 70.0; if ( v3 >= 180.0 || v3 <= 70.0 ) v10 = -70.0; if ( v3 > 0.0 ) v3 = v10; else v3 = v8; *a2 = v3; } if ( v2 != 0.0 ) { v12 = v3 - v2; *a2 = v12; if ( v12 <= 180.0 ) { if ( v12 >= -180.0 ) return; v13 = 360.0; } else { v13 = -360.0; } *a2 = v12 + v13; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source