// // GJBaseGameLayer::getFollowSpeedVal from 0x1001f9364 to 0x1001f94d8 (372 bytes) // // 2 xrefs: // > GJBaseGameLayer::modifyObjectPhysics @ 0x1001f9880 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x1001f9c98 // // 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 // cocos2d::CCPoint __fastcall GJBaseGameLayer::getFollowSpeedVal( GJBaseGameLayer *a1, GameObject *a2, int a3, int a4, float a5, float a6) { float32x2_t *v6; // x8 float32x2_t *v12; // x19 float v13; // s9 GameObject *Object; // x0 GameObject *v15; // x23 const cocos2d::CCPoint *LastPosition; // x20 float32x2_t *v17; // x1 float32x2_t *v18; // x0 GameObject *v19; // x0 GameObject *v20; // x21 float v21; // s9 float v22; // s0 __int64 v25; // [xsp+0h] [xbp-70h] BYREF __int64 v26; // [xsp+8h] [xbp-68h] BYREF float32x2_t v27; // [xsp+10h] [xbp-60h] BYREF __int64 v28; // [xsp+18h] [xbp-58h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v12 = v6; v13 = 90.0 - a5; sub_1000229B8(&v28, &qword_10086C9A0); if ( a3 >= 1 ) { Object = GJBaseGameLayer::tryGetObject(a1, a3); if ( Object ) { v15 = Object; LastPosition = GameObject::getLastPosition(Object); ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))v15->getRealPosition)(&v26, v15); v17 = (float32x2_t *)&v26; v18 = (float32x2_t *)LastPosition; LABEL_7: sub_1000229F0(v18, v17, &v27); sub_1000229D0(&v28, (double *)&v27); goto LABEL_8; } } if ( a4 >= 1 ) { v19 = GJBaseGameLayer::tryGetObject(a1, a4); if ( v19 ) { v20 = v19; ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a2->getRealPosition)(&v26, a2); ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))v20->getRealPosition)(&v25, v20); v18 = (float32x2_t *)&v26; v17 = (float32x2_t *)&v25; goto LABEL_7; } } LABEL_8: v21 = v13 * 0.017453; if ( *(float *)&v28 != 0.0 || *((float *)&v28 + 1) != 0.0 ) { v22 = atan2f(*((float *)&v28 + 1), *(float *)&v28) + 1.57079633; v21 = v21 + v22; } cocos2d::ccpForAngle(v21); result.x = sub_100022A14(&v27, v12, a6).f32[0]; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source