Advertisement
icharge

ScoreBoard

Oct 27th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. DEFINE_HOOK(5C9A69, Game_Over, 5)
  2. {
  3.     Debug::Log("Game_Over\n");
  4.     if(Debug::bLog)
  5.     {
  6.         GET(int, index, ESI); // Index
  7.         Debug::Log("   Getting data\n");
  8.         auto pScores = reinterpret_cast<ScoreType*>(0xA8D1FC);
  9.         int idxColor = pScores[index].idxColor;
  10.         const char* Status = (pScores[index].Wins > 0) ? "Winner" : "Loser";
  11.         int Lost = pScores[index].Lost;
  12.         int Kills = pScores[index].Kills;
  13.         int Built = pScores[index].Built;
  14.         int Score = pScores[index].Score;
  15.         Debug::Log("%hs: %s \n Scheme: %d\n Color = %d\n Lost = %d\n Kills = %d\n Built = %d\n Score = %d\n", pScores[index].Name,Status,idxColor,Lost,Kills,Built,Score);
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement