Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:0053AEC0 loc_53AEC0: ; CODE XREF: sub_53AD50+14Cj
- .text:0053AEC0 mov edx, [esp+18h+pTarget] ; Start of melee LOS?
- .text:0053AEC4 mov eax, [esp+18h+var_C]
- .text:0053AEC8 mov ecx, [esp+18h+var_8]
- .text:0053AECC push edx
- .text:0053AECD mov edx, [esp+1Ch+var_4]
- .text:0053AED1 push eax
- .text:0053AED2 push ecx
- .text:0053AED3 push edx
- .text:0053AED4 call sub_4B9C60
- .text:0053AED9 fcom ds:flt_81B924 ; 4.72e2
- .text:0053AEDF add esp, 10h
- .text:0053AEE2 fnstsw ax
- .text:0053AEE4 test ah, 41h
- .text:0053AEE7 jnz short loc_53AF04
- .text:0053AEE9 fld dword ptr [esi+80h] ; player heading
- .text:0053AEEF fcomp ds:flt_81297C ; 4.0e1
- .text:0053AEF5 fnstsw ax
- .text:0053AEF7 test ah, 5
- .text:0053AEFA jp short loc_53AF04
- .text:0053AEFC fstp st
- .text:0053AEFE fld dword ptr [esi+80h] ; player heading
- .text:0053AF04
- .text:0053AF04 loc_53AF04: ; CODE XREF: sub_53AD50+197j
- .text:0053AF04 ; sub_53AD50+1AAj
- .text:0053AF04 fcom ds:flt_81297C ; 4.0e1
- .text:0053AF0A fnstsw ax
- .text:0053AF0C test ah, 5
- .text:0053AF0F jp short loc_53AF2C
- .text:0053AF11 fld dword ptr [esi+80h] ; player heading
- .text:0053AF17 fcomp ds:flt_81B924 ; 4.72e2
- .text:0053AF1D fnstsw ax
- .text:0053AF1F test ah, 41h
- .text:0053AF22 jnz short loc_53AF2C
- .text:0053AF24 fstp st
- .text:0053AF26 fld dword ptr [esi+80h] ; player heading
- .text:0053AF2C
- .text:0053AF2C loc_53AF2C: ; CODE XREF: sub_53AD50+1BFj
- .text:0053AF2C ; sub_53AD50+1D2j
- .text:0053AF2C mov al, [edi+125h] ; target type
- .text:0053AF32 test al, al
- .text:0053AF34 jnz short loc_53AF98
- .text:0053AF36 mov al, [esi+125h] ; player type
- .text:0053AF3C test al, al
- .text:0053AF3E jnz short loc_53AF98
- .text:0053AF40 fcom ds:flt_814E38 ; 3.5e2
- .text:0053AF46 mov [esp+18h+var_10], 43800000h ; 256.0f
- .text:0053AF4E fnstsw ax
- .text:0053AF50 test ah, 41h
- .text:0053AF53 jnz short loc_53AF70
- .text:0053AF55 fld dword ptr [esi+80h] ; player heading
- .text:0053AF5B fcomp ds:flt_8109B4 ; 1.5e2
- .text:0053AF61 fnstsw ax
- .text:0053AF63 test ah, 5
- .text:0053AF66 jp short loc_53AF70
- .text:0053AF68 fstp st
- .text:0053AF6A fld dword ptr [esi+80h] ; player heading
- .text:0053AF70
- .text:0053AF70 loc_53AF70: ; CODE XREF: sub_53AD50+203j
- .text:0053AF70 ; sub_53AD50+216j
- .text:0053AF70 fcom ds:flt_8109B4 ; 1.5e2
- .text:0053AF76 fnstsw ax
- .text:0053AF78 test ah, 5
- .text:0053AF7B jp short loc_53AF98
- .text:0053AF7D fld dword ptr [esi+80h] ; player heading
- .text:0053AF83 fcomp ds:flt_814E38 ; 3.5e2
- .text:0053AF89 fnstsw ax
- .text:0053AF8B test ah, 41h
- .text:0053AF8E jnz short loc_53AF98
- .text:0053AF90 fstp st
- .text:0053AF92 fld dword ptr [esi+80h] ; player heading
- .text:0053AF98
- .text:0053AF98 loc_53AF98: ; CODE XREF: sub_53AD50+1E4j
- .text:0053AF98 ; sub_53AD50+1EEj ...
- .text:0053AF98 fsub dword ptr [esi+80h] ; player heading
- .text:0053AF9E fabs
- .text:0053AFA0 fcomp [esp+18h+var_10] ; either 256.0f or 80.0f
- .text:0053AFA4 fnstsw ax
- .text:0053AFA6 test ah, 41h
- .text:0053AFA9 jnz short loc_53AFCD
- .text:0053AFAB mov eax, [esi+2D4h]
- .text:0053AFB1 push 0
- .text:0053AFB3 push 12Fh ; MT_TooFarAway
- .text:0053AFB8 push 6Ch ; You cannot see your target
- .text:0053AFBA push eax
- .text:0053AFBB call sub_4A8A10 ; Prints to chat window
- .text:0053AFC0 add esp, 10h
- .text:0053AFC3 pop edi
- .text:0053AFC4 xor al, al
- .text:0053AFC6 pop esi
- .text:0053AFC7 add esp, 10h
- .text:0053AFCA retn 8
- .text:0053AFCD ; ---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment