Solved Features not working

Status
Not open for further replies.

AASIM_456

Support
Original poster
Staff member
Support
Jan 18, 2023
738
33,986
1,193
a Sperm Cell
Hii everyone, I hope y'all r having a good day, evening and night lol.
I need some help ://
Screenshot_2023-09-26-19-01-30-889_com.aide.ui.crustacean-edit.jpg

1. Here I have hooked filed offset for "Loaded bullets which gives unlimited bullets" and "Recoil".

Screenshot_2023-09-26-19-01-54-609_com.aide.ui.crustacean-edit.jpg

2. Here I've called the update offsets. Both have the same update offsets. Is this of any concern????

The class only had one update offset named as "UpdateBulletCounter" so I used it.

IMG_20230926_190343.jpg


3. Lastly here are my cases.

Problems:- So, the things in facing is only loaded bullets is working and not the recoil. If u see where I've called out the update offset. When I put recoil over loaded bullets it works and vice-versa. But, both aren't working at the same time.

Note:- I've mentioned "loaded bullets and Recoil" as "bool PatchLoadedBullets = false, PatchRecoil = false; " as they are both toggle buttons.

Also the game works fine and doesn't crash.
If anyone has any solutions, plss help

Thanks for reading this and thanks for ur time.
Have a nice day!!!
 

·҉ dollaz·҉. .

Approved iModder
Approved iModder
Mar 26, 2021
159
1,819
193
Somewhere
You only need to call update once. You don’t need 2 different ones to call the fields. You can put it in the same one like this for example since both the fields have the same update
C++:
void (*old_Update)(void *instance);
void Update(void *instance)
{
    if(Field1)
    {
       *(int *)((uint32_t)instance + 0x30) = 9999;
    }
   
    if(Field2)
    {
       *(int *)((uint32_t)instance + 0x34) = 9999;
    }
    return old_Update(instance);
}
 

AASIM_456

Support
Original poster
Staff member
Support
Jan 18, 2023
738
33,986
1,193
a Sperm Cell
You only need to call update once. You don’t need 2 different ones to call the fields. You can put it in the same one like this for example since both the fields have the same update
C++:
void (*old_Update)(void *instance);
void Update(void *instance)
{
    if(Field1)
    {
       *(int *)((uint32_t)instance + 0x30) = 9999;
    }
  
    if(Field2)
    {
       *(int *)((uint32_t)instance + 0x34) = 9999;
    }
    return old_Update(instance);
}
Ooohhhh ohkk I'll try thnak u for ur time.🛐🛐
 

AASIM_456

Support
Original poster
Staff member
Support
Jan 18, 2023
738
33,986
1,193
a Sperm Cell
You only need to call update once. You don’t need 2 different ones to call the fields. You can put it in the same one like this for example since both the fields have the same update
C++:
void (*old_Update)(void *instance);
void Update(void *instance)
{
    if(Field1)
    {
       *(int *)((uint32_t)instance + 0x30) = 9999;
    }
  
    if(Field2)
    {
       *(int *)((uint32_t)instance + 0x34) = 9999;
    }
    return old_Update(instance);
}
It worked!!!!!. Thanks for ur time and efforts.
 
Status
Not open for further replies.