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:
parent
4c191f4bf5
commit
3d6e508d67
4 changed files with 51 additions and 47 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue