// // PlayerObject::getOldPosition from 0x10021d74c to 0x10021d7bc (112 bytes) // // 1 xrefs: // > GJBaseGameLayer::processPlayerFollowActions @ 0x1001f86dc // // 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 // float __fastcall PlayerObject::getOldPosition(PlayerObject *a1, float a2) { int v2; // w8 int v3; // w8 int v4; // w9 bool v5; // vf int v6; // w8 float *p_y; // x8 if ( a2 <= 0.0 ) { p_y = &a1->m_obPosition.y; } else { v2 = vcvtms_s32_f32(a2 / 0.01); if ( v2 >= 199 ) v2 = 199; v3 = v2 & ~(v2 >> 31); v4 = a1->m_followRelated % 200; v5 = __OFSUB__(v4, v3); v6 = v4 - v3; if ( v6 < 0 != v5 ) v6 += 200; p_y = &a1->m_playerFollowFloats.__begin_[v6]; } return *p_y; }
GD Web Decomp Icon

GD Web Decomp

Raw Source