Skip to content

Commit

Permalink
Revert "Server Adjust dash visibility"
Browse files Browse the repository at this point in the history
This reverts commit 7796488.

Apparently there was a reason these dashes were not adjusted. Dash animation freezes on enemy clients, it looks very bad sometimes.
  • Loading branch information
Zheneq committed Jun 17, 2023
1 parent 39a5b54 commit 06c0cba
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Assembly-CSharp/ActorTeamSensitiveData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,7 @@ public bool ShouldAdjustMovementToVisibility(
{
return NetworkServer.active
&& m_typeObservingMe == ObservedBy.Hostiles

// rogues
// && (movementType == ActorData.MovementType.Normal || movementType == ActorData.MovementType.Teleport)
// custom
&& movementType != ActorData.MovementType.None
&& movementType != ActorData.MovementType.Knockback

&& (movementType == ActorData.MovementType.Normal || movementType == ActorData.MovementType.Teleport)
&& (movementType != ActorData.MovementType.Teleport || teleportType == ActorData.TeleportType.Evasion_AdjustToVision)
&& path != null
&& (ServerEffectManager.Get() == null || !ServerEffectManager.Get().HasEffectRequiringAccuratePositionOnClients(Actor));
Expand Down

0 comments on commit 06c0cba

Please sign in to comment.