(42b18ccca) Allow to return to the initial combat mode after retreating. Implement reloading (disabled because only reloads one ammunition) -> TODO: only load ammunition when found in the inventory. Implement a generic method for removing subobjectives and resetting the reference. Refuel the repair tool.
This commit is contained in:
@@ -491,6 +491,18 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
foreach (MapEntity e in MapEntity.mapEntityList)
|
||||
{
|
||||
if (Vector2.Distance(e.Position, HiddenSubPosition) > 20000)
|
||||
{
|
||||
//move disabled items (wires, items inside containers) inside the sub
|
||||
if (e is Item item && item.body != null && !item.body.Enabled)
|
||||
{
|
||||
item.SetTransform(ConvertUnits.ToSimUnits(HiddenSubPosition), 0.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (MapEntity e in MapEntity.mapEntityList)
|
||||
{
|
||||
if (Vector2.Distance(e.Position, HiddenSubPosition) > 20000)
|
||||
|
||||
Reference in New Issue
Block a user