Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. class IGameResources
  2. {
  3. public:
  4. virtual ~IGameResources() {};
  5.  
  6. virtual const char* GetTeamName(int iTeamIndex) = 0;
  7. virtual int GetTeamScore(int iTeamIndex) = 0;
  8. virtual const DWORD& GetTeamColor(int iTeamIndex) = 0;
  9. virtual bool IsConnected(int iEntityIndex) = 0;
  10. virtual bool IsAlive(int iEntityIndex) = 0;
  11. virtual bool IsFakePlayer(int iEntityIndex) = 0;
  12. virtual bool IsLocalPlayer(int iEntityIndex) = 0;
  13. virtual const char* GetPlayerName(int iEntityIndex) = 0;
  14. virtual int GetPlayerScore(int iEntityIndex) = 0;
  15. virtual int GetPing(int iEntityIndex) = 0;
  16. virtual int GetDeaths(int iEntityIndex) = 0;
  17. virtual int GetFrags(int iEntityIndex) = 0;
  18. virtual int GetTeam(int iEntityIndex) = 0;
  19. virtual int GetHealth(int iEntityIndex) = 0;
  20. };
  21.  
  22.  
  23. class CInterfaces
  24. {
  25. public:
  26. IGameResources* GameResources;
  27. };
  28.  
  29.  
  30. DWORD dwGameResourcesAddress = gSignatures.GetClientSignature("8B 0D ? ? ? ? 8B 00 89 45 F0");
  31. XASSERT(dwGameResourcesAddress);
  32. gInts.GameResources = **(IGameResources***)(dwGameResourcesAddress + 2);
  33.  
  34.  
  35.  
  36. gDrawManager.DrawString(vScreen.x, vScreen.y, color, "%i", gInts.GameResources->GetHealth(pBaseEntity->GetIndex()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement