feat: added rounds_played to getinfo
This commit is contained in:
parent
7e27007b72
commit
655c277631
@ -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');
|
||||
|
@ -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};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user