Add option to log oneliners to the Messages tab.

This commit is contained in:
Mari the Deer 2022-04-12 18:14:47 +02:00
commit f46ccaa651
7 changed files with 12 additions and 2 deletions

View file

@ -546,7 +546,10 @@ extend Class SWWMHandler
if ( swwm_mutevoice >= e.Args[1] ) return;
double dist = players[consoleplayer].Camera.Distance3D(players[e.Args[0]].mo);
if ( dist < 2000 )
{
Console.Printf("\cx%s\cx: %s\c-",players[e.Args[0]].GetUserName(),StringTable.Localize(e.Name.Mid(19)));
if ( swwm_voicelog ) SWWMFullHistory.PushMessage("\cd"..players[e.Args[0]].GetUserName().."\c-: "..StringTable.Localize(e.Name.Mid(19)),level.totaltime,PRINT_CHAT);
}
}
else if ( e.Name.Left(8) ~== "swwmcbt." )
{