// // getRotateCommandAngleDelta from 0x863528 to 0x863750 (552 bytes) // // 3 xrefs: // > GJBaseGameLayer::triggerRotateCommand @ 0x86cf08 // > GJBaseGameLayer::processDynamicObjectActions @ 0x879d14 // > @ 0xbde88 // // 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 // __int64 __fastcall getRotateCommandAngleDelta( __int64 a1, __int64 a2, __int64 a3, __int64 a4, GameObject *a5, GameObject *a6, GameObject *a7, GameObject *a8) { float v14; // s8 float v15; // s0 __int64 v19; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v20; // [xsp+90h] [xbp+90h] BYREF __int64 v21; // [xsp+98h] [xbp+98h] BYREF __int64 x; // [xsp+A0h] [xbp+A0h] BYREF (*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)a2 + 1344LL))(&v19, a2); (*(void (__fastcall **)(cocos2d::CCPoint *__return_ptr, __int64))(*(_QWORD *)a4 + 1344LL))(&v20, a4); (*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)a3 + 1344LL))(&v21, a3); if ( a2 == a3 ) { v14 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 352LL))(a2); LABEL_4: if ( a2 != a4 ) goto LABEL_5; LABEL_10: v15 = 0.0; goto LABEL_8; } cocos2d::CCPoint::operator-(&x, &v21, &v19); if ( sqrtf((float)(*((float *)&x + 1) * *((float *)&x + 1)) + (float)(*(float *)&x * *(float *)&x)) >= 0.01 ) { v14 = 90.0 - (float)(atan2f(*((float *)&x + 1), *(float *)&x) * 57.296); goto LABEL_4; } v14 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a3 + 352LL))(a3); if ( a2 == a4 ) goto LABEL_10; LABEL_5: if ( *(_BYTE *)(a1 + 1492) ) { applyPositionLimits(&v20, a5, a6, a7, a8); cocos2d::CCPoint::operator-(&x, &v20, &v19); v15 = 0.0; if ( sqrtf((float)(*((float *)&x + 1) * *((float *)&x + 1)) + (float)(*(float *)&x * *(float *)&x)) >= 0.01 ) v15 = 90.0 - (float)(atan2f(*((float *)&x + 1), *(float *)&x) * 57.296); } else { (*(void (__fastcall **)(__int64))(*(_QWORD *)a4 + 352LL))(a4); } LABEL_8: GJBaseGameLayer::convertToClosestDirection((float)(v15 - v14) + *(float *)(a1 + 1544), 180.0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source