mackal

Untitled

May 2nd, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:0053AEC0 loc_53AEC0:                             ; CODE XREF: sub_53AD50+14Cj
  2. .text:0053AEC0                 mov     edx, [esp+18h+pTarget] ; Start of melee LOS?
  3. .text:0053AEC4                 mov     eax, [esp+18h+var_C]
  4. .text:0053AEC8                 mov     ecx, [esp+18h+var_8]
  5. .text:0053AECC                 push    edx
  6. .text:0053AECD                 mov     edx, [esp+1Ch+var_4]
  7. .text:0053AED1                 push    eax
  8. .text:0053AED2                 push    ecx
  9. .text:0053AED3                 push    edx
  10. .text:0053AED4                 call    sub_4B9C60
  11. .text:0053AED9                 fcom    ds:flt_81B924   ; 4.72e2
  12. .text:0053AEDF                 add     esp, 10h
  13. .text:0053AEE2                 fnstsw  ax
  14. .text:0053AEE4                 test    ah, 41h
  15. .text:0053AEE7                 jnz     short loc_53AF04
  16. .text:0053AEE9                 fld     dword ptr [esi+80h] ; player heading
  17. .text:0053AEEF                 fcomp   ds:flt_81297C   ; 4.0e1
  18. .text:0053AEF5                 fnstsw  ax
  19. .text:0053AEF7                 test    ah, 5
  20. .text:0053AEFA                 jp      short loc_53AF04
  21. .text:0053AEFC                 fstp    st
  22. .text:0053AEFE                 fld     dword ptr [esi+80h] ; player heading
  23. .text:0053AF04
  24. .text:0053AF04 loc_53AF04:                             ; CODE XREF: sub_53AD50+197j
  25. .text:0053AF04                                         ; sub_53AD50+1AAj
  26. .text:0053AF04                 fcom    ds:flt_81297C   ; 4.0e1
  27. .text:0053AF0A                 fnstsw  ax
  28. .text:0053AF0C                 test    ah, 5
  29. .text:0053AF0F                 jp      short loc_53AF2C
  30. .text:0053AF11                 fld     dword ptr [esi+80h] ; player heading
  31. .text:0053AF17                 fcomp   ds:flt_81B924   ; 4.72e2
  32. .text:0053AF1D                 fnstsw  ax
  33. .text:0053AF1F                 test    ah, 41h
  34. .text:0053AF22                 jnz     short loc_53AF2C
  35. .text:0053AF24                 fstp    st
  36. .text:0053AF26                 fld     dword ptr [esi+80h] ; player heading
  37. .text:0053AF2C
  38. .text:0053AF2C loc_53AF2C:                             ; CODE XREF: sub_53AD50+1BFj
  39. .text:0053AF2C                                         ; sub_53AD50+1D2j
  40. .text:0053AF2C                 mov     al, [edi+125h]  ; target type
  41. .text:0053AF32                 test    al, al
  42. .text:0053AF34                 jnz     short loc_53AF98
  43. .text:0053AF36                 mov     al, [esi+125h]  ; player type
  44. .text:0053AF3C                 test    al, al
  45. .text:0053AF3E                 jnz     short loc_53AF98
  46. .text:0053AF40                 fcom    ds:flt_814E38   ; 3.5e2
  47. .text:0053AF46                 mov     [esp+18h+var_10], 43800000h ; 256.0f
  48. .text:0053AF4E                 fnstsw  ax
  49. .text:0053AF50                 test    ah, 41h
  50. .text:0053AF53                 jnz     short loc_53AF70
  51. .text:0053AF55                 fld     dword ptr [esi+80h] ; player heading
  52. .text:0053AF5B                 fcomp   ds:flt_8109B4   ; 1.5e2
  53. .text:0053AF61                 fnstsw  ax
  54. .text:0053AF63                 test    ah, 5
  55. .text:0053AF66                 jp      short loc_53AF70
  56. .text:0053AF68                 fstp    st
  57. .text:0053AF6A                 fld     dword ptr [esi+80h] ; player heading
  58. .text:0053AF70
  59. .text:0053AF70 loc_53AF70:                             ; CODE XREF: sub_53AD50+203j
  60. .text:0053AF70                                         ; sub_53AD50+216j
  61. .text:0053AF70                 fcom    ds:flt_8109B4   ; 1.5e2
  62. .text:0053AF76                 fnstsw  ax
  63. .text:0053AF78                 test    ah, 5
  64. .text:0053AF7B                 jp      short loc_53AF98
  65. .text:0053AF7D                 fld     dword ptr [esi+80h] ; player heading
  66. .text:0053AF83                 fcomp   ds:flt_814E38   ; 3.5e2
  67. .text:0053AF89                 fnstsw  ax
  68. .text:0053AF8B                 test    ah, 41h
  69. .text:0053AF8E                 jnz     short loc_53AF98
  70. .text:0053AF90                 fstp    st
  71. .text:0053AF92                 fld     dword ptr [esi+80h] ; player heading
  72. .text:0053AF98
  73. .text:0053AF98 loc_53AF98:                             ; CODE XREF: sub_53AD50+1E4j
  74. .text:0053AF98                                         ; sub_53AD50+1EEj ...
  75. .text:0053AF98                 fsub    dword ptr [esi+80h] ; player heading
  76. .text:0053AF9E                 fabs
  77. .text:0053AFA0                 fcomp   [esp+18h+var_10] ; either 256.0f or 80.0f
  78. .text:0053AFA4                 fnstsw  ax
  79. .text:0053AFA6                 test    ah, 41h
  80. .text:0053AFA9                 jnz     short loc_53AFCD
  81. .text:0053AFAB                 mov     eax, [esi+2D4h]
  82. .text:0053AFB1                 push    0
  83. .text:0053AFB3                 push    12Fh            ; MT_TooFarAway
  84. .text:0053AFB8                 push    6Ch             ; You cannot see your target
  85. .text:0053AFBA                 push    eax
  86. .text:0053AFBB                 call    sub_4A8A10      ; Prints to chat window
  87. .text:0053AFC0                 add     esp, 10h
  88. .text:0053AFC3                 pop     edi
  89. .text:0053AFC4                 xor     al, al
  90. .text:0053AFC6                 pop     esi
  91. .text:0053AFC7                 add     esp, 10h
  92. .text:0053AFCA                 retn    8
  93. .text:0053AFCD ; ---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment