allow tracking of "zombie" clients to support stat tracking in zm
This commit is contained in:
parent
bc7dc3a71a
commit
cce6482541
@ -785,7 +785,7 @@ namespace IW4MAdmin
|
||||
|
||||
var polledClients = await PollPlayersAsync();
|
||||
|
||||
foreach (var disconnectingClient in polledClients[1])
|
||||
foreach (var disconnectingClient in polledClients[1].Where(_client => !_client.IsZombieClient /* ignores "fake" zombie clients */))
|
||||
{
|
||||
disconnectingClient.CurrentServer = this;
|
||||
var e = new GameEvent()
|
||||
|
@ -657,6 +657,8 @@ namespace SharedLibraryCore.Database.Models
|
||||
[NotMapped]
|
||||
public bool IsBot => NetworkId == Name.GenerateGuidFromString();
|
||||
[NotMapped]
|
||||
public bool IsZombieClient => IsBot && Name == "Zombie";
|
||||
[NotMapped]
|
||||
public string XuidString => (NetworkId + 0x110000100000000).ToString("x");
|
||||
[NotMapped]
|
||||
public string GuidString => NetworkId.ToString("x");
|
||||
|
Loading…
Reference in New Issue
Block a user