OldSchoolHack

Register / Login English

NonSDK Project

icon Thread: NonSDK Project

Join Date: Aug 2007

Posts: 8643

User-Rating:

199 positive
33 negative
Update für GetBaseEntityOrigin, die alte Version hatte nen Bug:

CPP Code:
  1. Vector *GetBaseEntityOrigin(CBaseEntity *entity)
  2. {
  3. Vector *ret;
  4. _asm
  5. {
  6. MOV ECX, entity
  7. MOV EAX, DWORD PTR DS:[ECX]
  8. CALL DWORD PTR DS:[EAX+0x24]
  9. MOV ret, EAX
  10. }
  11. return ret;
  12. }
  13.  
  14. Vector *GetBaseEntityViewAngle(CBaseEntity *entity)
  15. {
  16. Vector *ret;
  17. _asm
  18. {
  19. MOV ECX, entity
  20. MOV EAX, DWORD PTR DS:[ECX]
  21. CALL DWORD PTR DS:[EAX+0x28]
  22. MOV ret, EAX
  23. }
  24. return ret;
  25. }

greetz KN4CK3R

__________________

Hallo