From 51e68f0949cf0cd5567b00617fb26822dfe030f3 Mon Sep 17 00:00:00 2001
From: Regalis
Date: Thu, 22 Oct 2015 01:04:42 +0300
Subject: [PATCH] Banning players, networkevent refactoring, wire syncing
bugfixes, wrenches can be used as a melee weapon, proper error message for
invalid IPs, drawing held items in correct position, fixed client crashing if
sending a chatmessage while connection is lost
---
Subsurface/Barotrauma.csproj | 1 +
Subsurface/Content/Items/Tools/tools.xml | 10 +-
Subsurface/Source/Characters/Character.cs | 41 ++---
.../Characters/HumanoidAnimController.cs | 8 +-
Subsurface/Source/GameMain.cs | 3 +-
Subsurface/Source/Items/CharacterInventory.cs | 68 ++++++++-
.../Items/Components/Holdable/Holdable.cs | 2 +-
.../Items/Components/Holdable/MeleeWeapon.cs | 2 +-
.../Items/Components/Machines/Engine.cs | 14 +-
.../Source/Items/Components/Machines/Pump.cs | 6 +-
.../Source/Items/Components/Machines/Radar.cs | 2 +-
.../Items/Components/Machines/Reactor.cs | 2 +-
.../Items/Components/Machines/Steering.cs | 4 +-
.../Items/Components/Power/PowerContainer.cs | 4 +-
.../Items/Components/Signal/Connection.cs | 2 +-
.../Components/Signal/ConnectionPanel.cs | 31 ++--
.../Source/Items/Components/Signal/Wire.cs | 12 +-
Subsurface/Source/Items/Inventory.cs | 10 +-
Subsurface/Source/Items/Item.cs | 36 +++--
Subsurface/Source/Networking/BanList.cs | 144 ++++++++++++++++++
Subsurface/Source/Networking/GameClient.cs | 48 +++---
Subsurface/Source/Networking/GameServer.cs | 109 +++++++++----
Subsurface/Source/Networking/NetStats.cs | 9 +-
Subsurface/Source/Networking/NetworkEvent.cs | 62 ++++++--
Subsurface/Source/Networking/NetworkMember.cs | 24 ++-
Subsurface/Source/Screens/MainMenuScreen.cs | 2 +
Subsurface/Source/Screens/NetLobbyScreen.cs | 18 ++-
Subsurface_Solution.v12.suo | Bin 829952 -> 784896 bytes
28 files changed, 520 insertions(+), 154 deletions(-)
create mode 100644 Subsurface/Source/Networking/BanList.cs
diff --git a/Subsurface/Barotrauma.csproj b/Subsurface/Barotrauma.csproj
index b825317a0..23696c51d 100644
--- a/Subsurface/Barotrauma.csproj
+++ b/Subsurface/Barotrauma.csproj
@@ -98,6 +98,7 @@
+
diff --git a/Subsurface/Content/Items/Tools/tools.xml b/Subsurface/Content/Items/Tools/tools.xml
index 619f92ab2..80e3f5f3d 100644
--- a/Subsurface/Content/Items/Tools/tools.xml
+++ b/Subsurface/Content/Items/Tools/tools.xml
@@ -56,7 +56,7 @@
-
@@ -110,7 +110,7 @@
+ holdangle="30" handle1="-5,0"/>
@@ -124,8 +124,10 @@