legendros How do I cheat?
Reputation: 0
Joined: 04 Jul 2011 Posts: 9
|
Posted: Thu Jan 19, 2017 1:02 am Post subject: trying to make an instant win mission script for EDF 4.1 |
|
|
like the title says im trying to do that, and I've gotten to a point, where i can make script give me a win when I've only killed half of the enemy's in a mission rather then all of them, im not to sure though what else to do to make it work properly, like i tried searching for the boolean value that says, you've won/completed the mission, with out much luck, as i was saying previously i found the little snippet of code that lets me halve the requirement for winning/completing a mission.
here's the bit of stuff i found that seems to influence how many enemys are still alive/if you've killed them all, which in turn should make the mission complete. however when i use the script that follows this little snippet, it has that effect of only triggering a mission complete when you kill half the enemys.
Code: | "EDF41.exe"+DB6EF:
dec rax
mov [rsi+08],rax |
here's the script i made with help from a friend as we were trying to achive this goal of an instant win script, since the only requirement to win/complete a mission is that you kill all the enemy's in the mission.
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"EDF41.exe"+DB6EF)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
dec rax
mov [rsi+08],00
exit:
jmp returnhere
"EDF41.exe"+DB6EF:
jmp newmem
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"EDF41.exe"+DB6EF:
dec rax
mov [rsi+08],rax
//Alt: db 48 FF C8 48 89 46 08 |
sorry if i rambled at all, im just both a bit tired and perplexed right now, and would love some pointers to get this working properly, if you need me to provide anything else i'd be more than happy to.
|
|