Code:
alloc(newmem,256)
label(returnhere)
label(originalcode)
label(exit)
00705C67: [COLOR="Blue"]// The address of the instruction that tells the client which animation to play when someone jumps[/COLOR]
jmp newmem
nop
returnhere:
newmem:
mov eax,[913D3C] [COLOR="Blue"]// Player base pointer. Purpose of the code is to check whether it was yourself or someone else who jumped - only change the animation of other players.[/COLOR]
cmp eax,ecx
je originalcode
mov [edi],00000395
jmp returnhere
originalcode:
mov [edi],00000082
exit:
jmp returnhere