Network messages will now show usernames instead of just numbers

Gives more useful feedback as it's not obvious which node belongs to who.

Added line breaks to network messages for cases where a large amount of players are desynced.
This commit is contained in:
Boondorl 2024-04-29 07:43:14 -04:00 committed by Ricardo Luís Vaz Silva
commit 3d6e508d67
4 changed files with 51 additions and 47 deletions

View file

@ -727,7 +727,8 @@ DEFINE_ACTION_FUNCTION(_PlayerInfo, Resurrect)
DEFINE_ACTION_FUNCTION(_PlayerInfo, GetUserName)
{
PARAM_SELF_STRUCT_PROLOGUE(player_t);
ACTION_RETURN_STRING(self->userinfo.GetName());
PARAM_UINT(charLimit);
ACTION_RETURN_STRING(self->userinfo.GetName(charLimit));
}
DEFINE_ACTION_FUNCTION(_PlayerInfo, GetNeverSwitch)