Cave Story Tribute Site Forums

IdioticBaka1824
IdioticBaka1824
Thanks a lot, you're so nice!
Hina
Hina
OK, so do this:

<strong class='bbc'>406575</strong> JMP 4068A7

Then

<strong class='bbc'>4068A7</strong> ADD ESP, 10
<strong class='bbc'>4068AA</strong> JMP 407893

Then

<strong class='bbc'>407893</strong> SUB DWORD [49E670],300 <-- THIS CAN BE CHANGED, IT'S SPEED OF GOING UP
<strong class='bbc'>40789D</strong> JMP SHORT 407905

And

<strong class='bbc'>407905</strong> JMP 406893

Should work...
IdioticBaka1824
IdioticBaka1824
Wow, it worked! Thanks again!
Hina
Hina
No problem!
IdioticBaka1824
IdioticBaka1824
Um, if you don't mind, could you please explain all the steps in this?
Hina
Hina
OK.

1. Instead of ending the CreateBullet function and jumping to the end of code, we make a (long) jump to free space.

2. We end the CreateBullet function and jump (long) to another free space (it wasn't enough to fit everything).

3. We substract 300 (hex) (or other value) from player's Y-velocity. Then we make a short jump (takes only 2 bits instead of 5, but it can only be done on short „distances” in the code) to some more space.

And finally, we jump back to the end of bullet code.
Hina
Hina
It's based on jumps, because there is so little space between bullet codes, only about 9-10 bits...
IdioticBaka1824
IdioticBaka1824
I think I understand!
So 'ADD ESP, 10' ends the CreateBullet function?
Thanks again!
Top