Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. ; test isAlive
  2. .text:00445F97 mov ecx, [ebp+var_4]
  3. .text:00445F9A mov eax, [ecx]
  4. .text:00445F9C call dword ptr [eax+68h]
  5. .text:00445F9F test al, al
  6. .text:00445FA1 jz short SET_1 ; *Set 1 if dead*
  7.  
  8. ; test isManDown
  9. .text:00445FA3 mov ecx, [ebp+var_4]
  10. .text:00445FA6 mov edx, [ecx]
  11. .text:00445FA8 call dword ptr [edx+0FCh]
  12. .text:00445FAE test al, al
  13. .text:00445FB0 jz short SET_0 ; *Set 0 if not wounded*
  14.  
  15. ; if chat channel is "local revive" (i'm guessing its the call for medic?) then set 0 so wounded players can communicate with alive players for revive
  16. .text:00445FB2 mov eax, [esi]
  17. .text:00445FB4 mov ecx, esi
  18. .text:00445FB6 call dword ptr [eax+0Ch]
  19. .text:00445FB9 cmp eax, 0Fh ; "localRevive" channel
  20. .text:00445FBC jz short SET_0
  21. .text:00445FBE mov edx, [esi]
  22. .text:00445FC0 mov ecx, esi
  23. .text:00445FC2 call dword ptr [edx+0Ch]
  24. .text:00445FC5 cmp eax, 10h ; different kind of localRevive channel? both 0x0F and 0x10 are called "localRevive"
  25. .text:00445FC8 jnz short SET_1
  26. .text:00445FCA
  27. .text:00445FCA SET_0:
  28. .text:00445FCA
  29. .text:00445FCA mov byte ptr [ebp+arg_0+3], 0
  30. .text:00445FCE jmp short loc_445FD4
  31. .text:00445FD0 ; ---------------------------------------------------------------------------
  32. .text:00445FD0
  33. .text:00445FD0 SET_1:
  34. .text:00445FD0
  35. .text:00445FD0 mov byte ptr [ebp+arg_0+3], 1 ; <- *Gets set when (isManDown or not isAlive), change to 0*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement