Updated.
Newest version [16/04/09]: http://www.mediafire.com/download.php?mnon2vo4mzg
3 things updated:
Hiding shadow
State 85 and state 86 (see below)
Whole Davis AI (By Silva)
Mark, for the demonstration of state 86:
mark.dat (Size: 61.75 KB / Downloads: 215)
Newest version [16/04/09]: http://www.mediafire.com/download.php?mnon2vo4mzg
3 things updated:
Hiding shadow
State 85 and state 86 (see below)
Whole Davis AI (By Silva)
Code:
State_Turning proc
;This 2 states allow you control the direction in a move (both ^, v, < and >).
;Imagine you use mark's Body Attack D>J, with state 85 or 86 you can turn back without stop.
;State 86 merely allows you to use the direction key.
;State 85 does it similarly but additionally increments the frame number by 1.
;###This is mainly copy from the state of dash, I didn't understand most of it
cmp dword ptr ds:[edx+ecx+7ACh],5
je short r1
cmp dword ptr ds:[edx+ecx+7ACh],85
je short s85
cmp dword ptr ds:[edx+ecx+7ACh],86
je short s86
jmp dword ptr [st_r2]
r1: jmp dword ptr [st_r1]
s85:push ecx
mov ecx,1
jmp short st0
s86:push ecx
mov ecx,0
st0:mov bl,byte ptr ds:[esi+0D0h]
mov dl,0
call c0
mov dl,1
call c0
pop ecx
jmp dword ptr [st_r2]
c0: cmp byte ptr ds:[esi+0D0h],dl
je short c1
cmp byte ptr ds:[esi+0CFh],dl
jnz short c1
mov byte ptr ds:[esi+80h],dl
c1: cmp byte ptr ds:[esi+80h],dl
jnz short c5
cmp dword ptr ds:[esi+70h],edi
je short c5
fxch st(1)
fcom qword ptr ds:[esi+40h]
fstsw ax
test dl,dl
jnz short c2
test ah,5
jpe short c4
jmp short c3
c2: test ah,41h
jnz short c4
c3: add dword ptr ds:[esi+70h],ecx
c4: fxch st(1)
c5: retn
State_Turning endp
Mark, for the demonstration of state 86:
mark.dat (Size: 61.75 KB / Downloads: 215)