Merge pull request #655 from JariKCoding/rounds_played

feat: added rounds_played to getinfo
This commit is contained in:
Maurice Heumann 2023-05-07 11:41:13 +02:00 committed by GitHub
commit cac471b97b
2 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,7 @@ namespace getinfo
info.set("hc", std::to_string(game::Com_GametypeSettings_GetUInt("hardcoremode", false)));
info.set("modName", workshop::get_mod_resized_name());
info.set("modId", workshop::get_mod_publisher_id());
info.set("rounds_played", std::to_string(*game::level_rounds_played));
info.set("shortversion", SHORTVERSION);
network::send(target, "infoResponse", info.build(), '\n');

View File

@ -218,6 +218,7 @@ namespace game
WEAK symbol<gentity_s> g_entities{0x0, 0x1471031B0};
WEAK symbol<int> level_time{0x0, 0x1474FDC94};
WEAK symbol<int> level_rounds_played{0x14A55BDEC, 0x1475097BC};
WEAK symbol<SOCKET> ip_socket{0x157E75818, 0x14A640988};