Solved How to hook Field Offset Of Firerate

Status
Not open for further replies.
Code:
void (*old_Firerate)(void *instance);
void Firerate(void *instance) {
    if (instance != NULL) {
        if (firerate) {
            *(float *) ((uint64_t) instance + 0xC) = 0.000001f;
        }
    }
    return old_Firerate(instance);
}
bool firerate;
Use update from the same class.
If you using il2cpp/lgl menu, bool firerate = false;
 
Thread will be set to "solved" and closed.
When you're not happy with that just send me a message and i will re-open the thread for you.

Thanks.
 
Status
Not open for further replies.
Back
Top Bottom