Prevent clients from chatting when unconscious on the serverside to prevent clients from "hacking" and enabling chat box.
This commit is contained in:
@@ -185,7 +185,7 @@ namespace Barotrauma.Networking
|
||||
GameMain.Server.SendChatMessage(denyMsg, c);
|
||||
return;
|
||||
}
|
||||
|
||||
if (c.Character != null && !c.Character.CanSpeak) return;
|
||||
GameMain.Server.SendChatMessage(txt, null, c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user