Welcome to Polarmods!

Join us today to get access to a wide variety of free mods, tutorials and more, for free! None of our mods contain any ads or malicious content, so what are you waiting for?

Register Now!

Help! namespace class imposible hooking?

depo

New member
Joined
Aug 9, 2021
Messages
3
because of the namespace, the hook field does not work. are there any options?
1637599000067.png
1637599024223.png

my code is killing the game:
C++:
monoArray<void **> *get_PlayerList(uint64_t klass)
{
    monoArray<void **> *playerList;
    void *plhClass = *(void **)(klass);

    if(plhClass)
    {
        void *plhStaticFields = *(void **)((uint32_t)plhClass + 0x5C);

        if(plhStaticFields)
        {
            playerList = *(monoArray<void **> **)((uint32_t)plhStaticFields + 0x0);
            LOGD("Player List Find");
            return playerList;
        } else LOGD("PLH Static Fields not Found");
    } else LOGD("PLH Class not Found");
}

void(*old_PLHUpdate)(void *player);
void PLHUpdate(void *player)
{
    monoArray<void **> *playerList = get_PlayerList((uint64_t)player);

    for(int i = 0; i < playerList->getLength(); ++i)
    {
        void *doca = playerList->getPointer()[i];
        LOGD("BEBRA: %d", *(bool *)((uint64_t)doca + 0x8));
    }

    old_PLHUpdate(player);
}
 
Last edited:
Top