03-24-2021, 11:40 PM
Broken weapon pieces uses id 999, can I change it to a different one for a certain piece?
The whole code is here, but these are correct addresses
Code:
id list 1
004203ED . 8B8A 68030000 MOV ECX,DWORD PTR DS:[EDX+368]
id list 2
0042065D . 8B91 68030000 MOV EDX,DWORD PTR DS:[ECX+368]
broken pieces
00420703 . 81B8 F4060000 CMP DWORD PTR DS:[EAX+6F4],96
0042070D . 75 3C JNE SHORT 0042074B
0042070F . 837C24 38 05 CMP DWORD PTR SS:[ESP+38],5
00420714 . 6A 04 PUSH 4
00420716 . 7D 19 JGE SHORT 00420731
00420718 . 68 AB000000 PUSH 0AB
0042071D . E8 4E6AFFFF CALL 00417170
00420722 . 8B8CB3 940100 MOV ECX,DWORD PTR DS:[ESI*4+EBX+194]
00420729 . 83C4 08 ADD ESP,8 ←←←←←←←←←←←←←←←←←←←no frame records means pieces is frame 0
0042072C . 8941 70 MOV DWORD PTR DS:[ECX+70],EAX
0042072F . EB 1A JMP SHORT 0042074B
00420731 > 68 AC000000 PUSH 0AC
00420736 . E8 356AFFFF CALL 00417170
0042073B . 8B94B3 940100 MOV EDX,DWORD PTR DS:[ESI*4+EBX+194]
00420742 . 83C4 08 ADD ESP,8
00420745 . 83C0 04 ADD EAX,4 ←←←←←←←←←←←←←←←←←←←←frame of pieces
00420748 . 8942 70 MOV DWORD PTR DS:[EDX+70],EAX
The whole code is here, but these are correct addresses