Closed wbbarr closed 11 years ago
For reference, I've observed that "Server" messages are being successfully read currently (example: "Thanks to our donors..." etc). These messages are currently being filtered out in Core, as they are duplicated dozens of times for each player and clog up the feed. Unsure about admin-driven say/yell commands, though - did not get to test.
Ok. So as for those being filtered out, we need to filter those down to one copy of each message, then display if the "Show Server Messages" toggle is on.
One copy of each message is not quite as easy as it sounds - the server seems to send these messages at differing intervals to each player, with bursts getting sent at one time. Also, the "channel" of the messages (normally ALL/TEAM/SQUAD) is "PLAYER
Edit: To clarify, none of the above applies to admin say/yell messages - only server text messages. Admin say/yell has not been tested.
Taking ownership. Right now I know that you can conduct an admin say or yell with certain commands ('admin.say' and 'admin.yell'). I don't see any specific events for them, however player.onChat might be that event (it already is used for when the server makes annoucements -- see the player source field).
I'll investigate this and report back.
@maretard, what do you mean "only server text messages"? Aren't admin say/yell server text messages?
I'm not sure. The only messages I've seen are "Server: Thanks to our donors... etc" messages, I've never witnessed an admin personally say anything. Not sure if those are two different things.
admin.say generates a player.onchat event from the server.
I'm still investigating admin.yell.
Resolved as of commit f9f1907acb4dfd22785d08a46e089fc6a06221b9
We previously believed that it is impossible to see other admin say/yell commands from other RCON clients. This is false; there is likely another event that is triggered on admin chats. We need to find this event and also put it in the server chat history that is displayed, with the optional toggle specified in the spec for Track 1A1.
Assigned to Matt for investigation.