(92fc1380e) Allow interacting with items inside outposts (only prevent deattaching items from walls)

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:48:15 +03:00
parent 088f7e5485
commit 8d3a48584b
5 changed files with 261 additions and 35 deletions
@@ -380,6 +380,19 @@ namespace Barotrauma.Items.Components
return true;
}
public override void OnItemLoaded()
{
sonar = item.GetComponent<Sonar>();
}
public override bool Select(Character character)
{
if (!CanBeSelected) return false;
user = character;
return true;
}
public override void Update(float deltaTime, Camera cam)
{
networkUpdateTimer -= deltaTime;