(53f9210d1) Check the line of sight before fixing leaks or extinguishing fires.

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:47:22 +03:00
parent d1dd0c6043
commit 1ff1584be5
7 changed files with 115 additions and 231 deletions
@@ -341,6 +341,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;