// // PlayerObject::redirectPlayerForce from 0x1404fe0a0 to 0x1404fe2f0 (592 bytes) // // 4 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x140316644 // > @ 0x1408d59e4 // > @ 0x1408d5a1c // > @ 0x14092a59c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:33:23 +0000 // void __fastcall PlayerObject::redirectPlayerForce(__int64 a1, double a2, __int64 a3, float a4, float a5) { float v6; // xmm9_4 double v7; // xmm2_8 double v8; // xmm0_8 float v9; // xmm12_4 float v10; // xmm6_4 float v11; // xmm0_4 __int64 v12; // rax float v13; // xmm1_4 float v14; // xmm0_4 float v15; // xmm6_4 float v16; // xmm0_4 _BYTE *v17; // rax _BYTE *v18; // rdx float v19; // xmm1_4 float *v20; // rax bool v21; // zf double v22; // xmm0_8 _BYTE v23[8]; // [rsp+28h] [rbp-21h] BYREF float X; // [rsp+A8h] [rbp+5Fh] BYREF float Y; // [rsp+ACh] [rbp+63h] v6 = *(float *)&a2 * 0.017453292; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&X, *(double *)(a1 + 2816), *(double *)(a1 + 2472)); HIDWORD(v7) = HIDWORD(a2); *(float *)&v7 = (float)(*(float *)&a2 * 0.017453292) - atan2f(Y, X); v8 = GJBaseGameLayer::convertToClosestDirection(v7, 3.1415927); v9 = *(float *)&v8; if ( *(float *)&v8 != 0.0 ) { v10 = cosf(*(float *)&v8); v11 = sinf(v9); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v23, (float)(v10 * X) - (float)(v11 * Y), (float)(v10 * Y) + (float)(v11 * X)); cocos2d::CCPoint::operator=(&X, v12); } cocos2d::CCPoint::operator*(&X, v23); cocos2d::CCPoint::operator=(&X, v23); v13 = (float)(Y * Y) + (float)(X * X); if ( v13 < 0.0 ) v14 = sqrtf(v13); else v14 = fsqrt(v13); if ( a5 > 0.0 && v14 > a5 ) goto LABEL_12; if ( a4 > 0.0 && a4 > v14 ) { if ( v14 == 0.0 ) { v15 = sinf(v6) * a4; v16 = cosf(v6); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v16 * a4, v15); v18 = v17; LABEL_13: cocos2d::CCPoint::operator=(&X, v18); goto LABEL_14; } LABEL_12: cocos2d::CCPoint::operator*(&X, v23); v18 = v23; goto LABEL_13; } LABEL_14: if ( *(_BYTE *)(a1 + 2507) ) { v19 = X; X = Y; Y = v19; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, (const struct cocos2d::CCPoint *)&X); v21 = *(_BYTE *)(a1 + 2936) == 0; *(_BYTE *)(a1 + 2394) = 1; *(double *)(a1 + 2472) = v20[1]; if ( !v21 ) { v22 = *v20; *(_BYTE *)(a1 + 2972) = 1; *(double *)(a1 + 2816) = v22; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source