Learning to code cheats for games, so far coded an external hack but now I'm coding one to be injected. I launched up the game with ollydbg, but, how do I tell whether or not when the break-points stop firing if it's the end of the function or not? Let's say for ammo:
onEvent("Fire") {
if(ammo > 0) {
fire();
} else {
reload():
}
}
if I add a break point to fire, it won't break for reload. How do I make sure EVERYTHING in that function break points?
Yes, I am new to olllydbg >:(
EDIT: Worked it out, found two returns surrounded the function:
return 4
jmp/dec/inc/randomshit
return 4
However, I'm not closing this thread because I want to ask:
Is that always the case?
onEvent("Fire") {
if(ammo > 0) {
fire();
} else {
reload():
}
}
if I add a break point to fire, it won't break for reload. How do I make sure EVERYTHING in that function break points?
Yes, I am new to olllydbg >:(
EDIT: Worked it out, found two returns surrounded the function:
return 4
jmp/dec/inc/randomshit
return 4
However, I'm not closing this thread because I want to ask:
Is that always the case?
