Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DynamicMarkers/OtherPlayersMarkerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private void TryAddMarker(IPlayer iPlayer)
return;
}

if (_lastMapView == null || player.IsBTRShooter() || _playerMarkers.ContainsKey(player))
if (_lastMapView == null || player.IsBTRShooter() || _playerMarkers.ContainsKey(player) || player.IsDedicatedServer())
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion DynamicMarkers/PlayerMarkerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void TryAddMarker(MapView map)
}

var player = GameUtils.GetMainPlayer();
if (player == null)
if (player == null || player.IsDedicatedServer())
{
return;
}
Expand Down
6 changes: 6 additions & 0 deletions Utils/GameUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ public static bool IsPMC(this IPlayer player)
return player.Profile.Side == EPlayerSide.Bear || player.Profile.Side == EPlayerSide.Usec;
}

public static bool IsDedicatedServer(this IPlayer player)
{
string pattern = @"^dedicated_[a-fA-F0-9]{24}$";
return Regex.IsMatch(player.Profile.GetCorrectedNickname(), pattern);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second through I feel like this might need to be player.Profile.Info.Nickname instead as I am assuming GetCorrectedNickname() will return a pretty name for scavs? Tbh I haven't tested this, I just noticed this issue in game.

}

public static bool DidMainPlayerKill(this IPlayer player)
{
var aggressor = _playerLastAggressorField.GetValue(player) as IPlayer;
Expand Down