Posted: Tue Apr 15, 2025 2:03 pm Post subject: Finding function that rewards items
So I'm trying to find the function that spawns items after you successfully beat a mission.
There is one mission (the others are a bit different) in the game that gives you items based on how many waves you survived. With scanning for unknown values I found that there is a value for what I presume the waves you cleared. Then there is a command that reduces this value and gives you items. Then if the value is not 0, it reduces the wave count again and gives you more items. If I nop the function that reduces wave count, I can get infinite items from that mission.
However, the other missions don't have endless waves, so the function that I found is never getting called. What I want is to find the function that gives items.
Is there a way to get stack trace of what happens between 2 consecutive calls of the same breakpoint? Or maybe you have some suggestions to find that item function?
Please tell me if you need any more info
Ultimap / code filter is the standard way to search for functions
You could also go up the callstack from the instruction you found and probably reach a function used by any mission (not just endless) _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum