feature(user_info): allow GSC to edit name/clantag

This commit is contained in:
2023-10-30 11:09:37 +01:00
parent 7d5060c8bc
commit 1aed1787ba
18 changed files with 991 additions and 796 deletions

View File

@@ -29,7 +29,7 @@ namespace command
game::CmdArgs* get_cmd_args()
{
return reinterpret_cast<game::CmdArgs*>(game::Sys_GetValue(4));
return static_cast<game::CmdArgs*>(game::Sys_GetValue(4));
}
void main_handler()
@@ -315,7 +315,7 @@ namespace command
gsc::method::add("tell", [](const scripting::entity& player, const std::string& msg)
{
const auto entref = player.get_entity_reference();
if (entref.classnum != 0 || entref.entnum >= 18)
if (entref.classnum)
{
throw std::runtime_error("Not a player entity");
}