Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEFINE_HOOK(5C9A69, Game_Over, 5)
- {
- Debug::Log("Game_Over\n");
- if(Debug::bLog)
- {
- GET(int, index, ESI); // Index
- Debug::Log(" Getting data\n");
- auto pScores = reinterpret_cast<ScoreType*>(0xA8D1FC);
- int idxColor = pScores[index].idxColor;
- const char* Status = (pScores[index].Wins > 0) ? "Winner" : "Loser";
- int Lost = pScores[index].Lost;
- int Kills = pScores[index].Kills;
- int Built = pScores[index].Built;
- int Score = pScores[index].Score;
- 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);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement