[feat] Emote panel, monkey rsi fix
This commit is contained in:
@@ -23,6 +23,8 @@ public partial class ChatSystem
|
||||
var emotes = _prototypeManager.EnumeratePrototypes<EmotePrototype>();
|
||||
foreach (var emote in emotes)
|
||||
{
|
||||
if (emote.ChatTriggers == null)
|
||||
continue;
|
||||
foreach (var word in emote.ChatTriggers)
|
||||
{
|
||||
var lowerWord = word.ToLower();
|
||||
|
||||
@@ -184,6 +184,9 @@ public sealed partial class ChatSystem : SharedChatSystem
|
||||
{
|
||||
if (HasComp<GhostComponent>(source))
|
||||
{
|
||||
if(desiredType == InGameICChatType.Emote)
|
||||
return;
|
||||
|
||||
// Ghosts can only send dead chat messages, so we'll forward it to InGame OOC.
|
||||
TrySendInGameOOCMessage(source, message, InGameOOCChatType.Dead, range == ChatTransmitRange.HideChat, shell, player);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user