// // RandTriggerGameObject::getRandomGroupID from 0x4e8e50 to 0x4e8e9e (78 bytes) // // 1 xrefs: // > RandTriggerGameObject::triggerObject @ 0x4f56be // // 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:51:07 +0000 // int __fastcall RandTriggerGameObject::getRandomGroupID(RandTriggerGameObject *this) { GameToolbox *TotalChance; // s16 int v3; // r0 int v4; // r1 int v5; // r3 int v6; // r2 int v7; // r4 int v8; // r5 TotalChance = (GameToolbox *)RandTriggerGameObject::getTotalChance(this); GameToolbox::fast_rand_0_1(TotalChance); v3 = lroundf(); v4 = *((_DWORD *)this + 413); v5 = *((_DWORD *)this + 412); v6 = 0; while ( 1 ) { v7 = v5; if ( v5 == v4 ) break; v8 = *(_DWORD *)(v5 + 8); v5 += 16; v6 += v8; if ( v6 >= v3 ) return *(_DWORD *)v7; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source