(e8b93e8d7) Increase the door ai target ranges. The values are halved for most monsters, because they currently have the sight of 0.5.
This commit is contained in:
+6
@@ -358,6 +358,12 @@ namespace Barotrauma.Networking
|
|||||||
client.EntityEventLastSent[entityEvent.ID] = NetTime.Now;
|
client.EntityEventLastSent[entityEvent.ID] = NetTime.Now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach (NetEntityEvent entityEvent in sentEvents)
|
||||||
|
{
|
||||||
|
(entityEvent as ServerEntityEvent).Sent = true;
|
||||||
|
client.EntityEventLastSent[entityEvent.ID] = NetTime.Now;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (NetEntityEvent entityEvent in sentEvents)
|
foreach (NetEntityEvent entityEvent in sentEvents)
|
||||||
{
|
{
|
||||||
(entityEvent as ServerEntityEvent).Sent = true;
|
(entityEvent as ServerEntityEvent).Sent = true;
|
||||||
|
|||||||
@@ -1127,15 +1127,7 @@ namespace Barotrauma
|
|||||||
valueModifier = isOutdoor ? 1 : 0;
|
valueModifier = isOutdoor ? 1 : 0;
|
||||||
valueModifier *= isOpen ? 5 : 1;
|
valueModifier *= isOpen ? 5 : 1;
|
||||||
}
|
}
|
||||||
}
|
for (int i = 0; i < s.Sections.Length; i++)
|
||||||
}
|
|
||||||
else if (target.Entity is Structure s)
|
|
||||||
{
|
|
||||||
targetingTag = "wall";
|
|
||||||
if (character.CurrentHull == null && aggressiveBoarding)
|
|
||||||
{
|
|
||||||
valueModifier = s.HasBody ? 2 : 0;
|
|
||||||
foreach (var section in s.Sections)
|
|
||||||
{
|
{
|
||||||
valueModifier = isOutdoor ? 0 : 1;
|
valueModifier = isOutdoor ? 0 : 1;
|
||||||
valueModifier *= isOpen ? 0 : 1;
|
valueModifier *= isOpen ? 0 : 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user