Feb 1, 2011 at 1:43 PM
Join Date: Jan 21, 2011
Location:
Posts: 249
Noxid said:Code:CPU Disasm Address Hex dump Command Comments 00471C4B |. 837A 44 06 cmp dword ptr [edx+44],6 00471C4F |. 7E 09 jle short 00471C5A 00471C51 |. C745 FC 06000 mov dword ptr [local.1],6 ; Six missle 00471C58 |. EB 07 jmp short 00471C61 00471C5A |> C745 FC 02000 mov dword ptr [local.1],2 ; Two missle 00471C61 |> 8B45 FC mov eax,[local.1]
That was harder to find than it should have been.
If it says six and two, but in the game it's three and one, is there a divisor somewhere then?
Edit 1:
Err, I just figured it out. The addresses you showed were actually for hearts! A few lines below, is:
Code:
00471C80 837A 44 06 CMP DWORD PTR DS:[EDX+44],6
00471C84 7E 09 JLE SHORT 00471C8F
00471C86 C745 FC 03000000 MOV DWORD PTR SS:[EBP-4],3
00471C8D EB 07 JMP SHORT 00471C96
00471C8F C745 FC 01000000 MOV DWORD PTR SS:[EBP-4],1
Changed the two values from 3 & 1 to 5 & 2, yet missiles don't seem to appear at all now. Thank you very much!
Edit 2:
Ah, it does work, but the sprites stop showing up. I think I can figure this part out on my own though.
Edit 3:
Got the sprites showing up properly! :}