// // PlayerObject::updateRobotAnimationSpeed from 0x43f1d8 to 0x43f40e (566 bytes) // // 2 xrefs: // > PlayerObject::togglePlayerScale @ 0x43f62a // > PlayerObject::updateTimeMod @ 0x43f800 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:48:25 +0000 // int *__fastcall PlayerObject::updateRobotAnimationSpeed(PlayerObject *this) { float *v1; // r8 float v3; // s16 float v4; // s15 bool v5; // fnf int v6; // r0 float v7; // s14 float v8; // s17 _BOOL4 v9; // r10 int *v10; // r0 char *v11; // r1 int *result; // r0 int v13; // r8 int v14; // r2 int v15; // r3 int v16[3]; // [sp+0h] [bp-28h] BYREF int v17[3]; // [sp+Ch] [bp-1Ch] BYREF int v18[3]; // [sp+18h] [bp-10h] BYREF v1 = (float *)((char *)this + 2012); v3 = 0.9; v4 = *((float *)this + 503); if ( v4 == 0.9 ) { v3 = 1.0; } else if ( v4 != 0.7 ) { if ( v4 == 1.1 ) { v3 = 1.15; } else { v3 = 1.3; if ( v4 != 1.3 ) { v3 = 1.5; if ( v4 != 1.6 ) v3 = 1.0; } } } v5 = *((float *)this + 502) < 1.0; v6 = *(_DWORD *)(*((_DWORD *)this + 433) + 532); v7 = 0.85; if ( !v5 ) v7 = 1.0; if ( v4 < 1.1 ) v8 = v7; else v8 = v7 * 1.1; SpriteAnimationManager::updateAnimationSpeed(v6, v3 / v7); SpriteAnimationManager::updateAnimationSpeed(*(_DWORD *)(*((_DWORD *)this + 434) + 532), v3 / v8); if ( *((_BYTE *)this + 1958) ) { std::string::basic_string(v16, *(_DWORD *)(*((_DWORD *)this + 434) + 532) + 304); memset(v17, 0, sizeof(v17)); std::string::__init(v17, "walk", 4u); v9 = sub_434632((unsigned __int8 *)v16, (unsigned __int8 *)v17); if ( !v9 ) { memset(v18, 0, sizeof(v18)); std::string::__init(v18, "run", 3u); v9 = sub_434632((unsigned __int8 *)v16, (unsigned __int8 *)v18); std::string::~string((int)v18); } std::string::~string((int)v17); if ( v9 ) PlayerObject::playDynamicSpiderRun((int)this); std::string::~string((int)v16); } if ( *((_BYTE *)this + 2461) && *v1 == 0.7 ) { v10 = (int *)((char *)this + 2400); v11 = "run3"; } else if ( *((_BYTE *)this + 2462) && (*v1 == 1.3 || *v1 == 1.6) ) { v10 = (int *)((char *)this + 2400); v11 = "run2"; } else { v10 = (int *)((char *)this + 2400); v11 = "run"; } result = std::string::assign(v10, v11); if ( *((_BYTE *)this + 1957) ) { std::string::basic_string(v17, *(_DWORD *)(*((_DWORD *)this + 433) + 532) + 304); if ( !sub_434632((unsigned __int8 *)v17, (unsigned __int8 *)this + 2400) ) { v13 = *((_DWORD *)this + 433); std::string::basic_string(v18, (int)this + 2400); CCAnimatedSprite::runAnimation(v13, (int)v18, v14, v15); std::string::~string((int)v18); } return (int *)std::string::~string((int)v17); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source