Pr0nogo

Untitled

Jul 8th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // 1
  2. CUNIT *__usercall FindNextBounceTarget@<eax>(CBULLET *eax0@<eax>)
  3. {
  4. CUNIT *v2; // edx
  5. CUNIT *v3; // ecx
  6. CSPRITE *v4; // eax
  7. dwBox a1; // [esp+0h] [ebp-8h]
  8.  
  9. if ( !eax0->sourceUnit )
  10. return 0;
  11. v2 = eax0->nextBounceUnit;
  12. bulletBounceMissileSource = eax0->sourceUnit;
  13. v3 = eax0->targetUnit;
  14. v4 = eax0->sprite;
  15. bulletBounceMissileTarget = v3;
  16. LOWORD(v3) = v4->position.y;
  17. LOWORD(v4) = v4->position.x;
  18. bulletBounceMissileNextTarget = v2;
  19. a1.x = (_WORD)v4 - 96;
  20. a1.w = (_WORD)v4 + 96;
  21. a1.y = (_WORD)v3 - 96;
  22. a1.h = (_WORD)v3 + 96;
  23. return (CUNIT *)IterateUnitsAtLocationTargetProc(&a1, (int (__fastcall *)(_DWORD, _DWORD))FindNextBounceTargetProc, 0);
  24. }
Add Comment
Please, Sign In to add comment