Added Whisper system for talking with players 2 tiles away. (#5994)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -15,60 +15,65 @@ namespace Content.Shared.Chat
|
||||
/// </summary>
|
||||
Local = 1 << 0,
|
||||
|
||||
/// <summary>
|
||||
/// Chat heard by players right next to each other
|
||||
/// </summary>
|
||||
Whisper = 1 << 1,
|
||||
|
||||
/// <summary>
|
||||
/// Messages from the server
|
||||
/// </summary>
|
||||
Server = 1 << 1,
|
||||
Server = 1 << 2,
|
||||
|
||||
/// <summary>
|
||||
/// Damage messages
|
||||
/// </summary>
|
||||
Damage = 1 << 2,
|
||||
Damage = 1 << 3,
|
||||
|
||||
/// <summary>
|
||||
/// Radio messages
|
||||
/// </summary>
|
||||
Radio = 1 << 3,
|
||||
Radio = 1 << 4,
|
||||
|
||||
/// <summary>
|
||||
/// Local out-of-character channel
|
||||
/// </summary>
|
||||
LOOC = 1 << 4,
|
||||
LOOC = 1 << 5,
|
||||
|
||||
/// <summary>
|
||||
/// Out-of-character channel
|
||||
/// </summary>
|
||||
OOC = 1 << 5,
|
||||
OOC = 1 << 6,
|
||||
|
||||
/// <summary>
|
||||
/// Visual events the player can see.
|
||||
/// Basically like visual_message in SS13.
|
||||
/// </summary>
|
||||
Visual = 1 << 6,
|
||||
Visual = 1 << 7,
|
||||
|
||||
/// <summary>
|
||||
/// Emotes
|
||||
/// </summary>
|
||||
Emotes = 1 << 7,
|
||||
Emotes = 1 << 8,
|
||||
|
||||
/// <summary>
|
||||
/// Deadchat
|
||||
/// </summary>
|
||||
Dead = 1 << 8,
|
||||
Dead = 1 << 9,
|
||||
|
||||
/// <summary>
|
||||
/// Admin chat
|
||||
/// </summary>
|
||||
Admin = 1 << 9,
|
||||
Admin = 1 << 10,
|
||||
|
||||
/// <summary>
|
||||
/// Unspecified.
|
||||
/// </summary>
|
||||
Unspecified = 1 << 10,
|
||||
Unspecified = 1 << 11,
|
||||
|
||||
/// <summary>
|
||||
/// Channels considered to be IC.
|
||||
/// </summary>
|
||||
IC = Local | Radio | Dead | Emotes | Damage | Visual,
|
||||
IC = Local | Whisper | Radio | Dead | Emotes | Damage | Visual,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,11 @@ namespace Content.Shared.Chat
|
||||
/// </summary>
|
||||
Local = ChatChannel.Local,
|
||||
|
||||
/// <summary>
|
||||
/// Chat heard by players right next to each other
|
||||
/// </summary>
|
||||
Whisper = ChatChannel.Whisper,
|
||||
|
||||
/// <summary>
|
||||
/// Radio messages
|
||||
/// </summary>
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace Content.Shared.Chat
|
||||
switch (Channel)
|
||||
{
|
||||
case ChatChannel.Local:
|
||||
case ChatChannel.Whisper:
|
||||
case ChatChannel.Dead:
|
||||
case ChatChannel.Admin:
|
||||
case ChatChannel.Emotes:
|
||||
@@ -71,6 +72,7 @@ namespace Content.Shared.Chat
|
||||
switch (Channel)
|
||||
{
|
||||
case ChatChannel.Local:
|
||||
case ChatChannel.Whisper:
|
||||
case ChatChannel.Dead:
|
||||
case ChatChannel.Admin:
|
||||
case ChatChannel.Emotes:
|
||||
|
||||
Reference in New Issue
Block a user