Scooters can't be used when stunned, limb damage sound position fix, longer view distance when outside

This commit is contained in:
Regalis
2016-02-15 17:50:17 +02:00
parent 35e2d441fc
commit a57f1feb63
10 changed files with 25 additions and 13 deletions
@@ -1286,6 +1286,11 @@ namespace Barotrauma.Networking
targetClient = ConnectedClients.Find(c =>
words[0] == "/" + c.name.ToLower() ||
c.Character != null && words[0] == "/" + c.Character.Name.ToLower());
if (targetClient==null)
{
AddChatMessage("Player ''"+words[0].Replace("/", "")+"'' not found!", ChatMessageType.Admin);
}
}
message = words[0] + " " + string.Join(" ", words, 2, words.Length - 2);