// // GameObject::slopeYPos from 0x10069b0e0 to 0x10069b20e (302 bytes) // // 4 xrefs: // > PlayerObject::collidedWithSlopeInternal @ 0x1003f45db // > PlayerObject::spiderTestJumpInternal @ 0x1003faec7 // > GameObject::slopeYPos_2 @ 0x10069b082 // > GameObject::slopeYPos_1 @ 0x10069b0db // // 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 12:35:16 +0000 // double __fastcall GameObject::slopeYPos(__int64 a1, float a2) { unsigned __int64 *v2; // rax double v3; // xmm0_8 double v4; // xmm1_8 double v5; // xmm2_8 char v6; // al double v7; // xmm2_8 double result; // xmm0_8 double v9; // xmm3_8 unsigned int v10; // eax int v11; // ecx __m128 v12; // [rsp+8h] [rbp-38h] BYREF double v13; // [rsp+18h] [rbp-28h] float v14; // [rsp+24h] [rbp-1Ch] float v15; // [rsp+28h] [rbp-18h] float v16; // [rsp+2Ch] [rbp-14h] v14 = a2; v2 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1328LL))(a1); sub_1002787F0(&v12, v2); v15 = sub_1002788E0((__int64)&v12); v16 = sub_1002788A0(v12.f32); v13 = sub_100278930((__int64)&v12); v3 = sub_1002788F0((__int64)&v12); v4 = (float)(v12.f32[3] / v12.f32[2]); v5 = v14; v6 = *(_BYTE *)(a1 + 1080); if ( v15 >= v14 ) { v9 = (v15 - v5) * v4; if ( v6 ) { result = v13 - v9; if ( *(_BYTE *)(a1 + 1088) != 1 ) return result; } else { result = v9 + v3; if ( *(_BYTE *)(a1 + 1088) != 1 ) return result; } } else { v7 = (v5 - v16) * v4; if ( v6 ) { result = v7 + v3; if ( *(_BYTE *)(a1 + 1088) != 1 ) return result; } else { result = v13 - v7; if ( *(_BYTE *)(a1 + 1088) != 1 ) return result; } } v10 = *(_DWORD *)(a1 + 1084); if ( v10 <= 6 && (v11 = 106, _bittest(&v11, v10)) ) return result + -4.0; else return result + 4.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source