This commit is contained in:
Lukas Moungos
2019-12-01 17:24:48 +01:00
parent 31899aa948
commit af08c85986

View File

@@ -38,7 +38,6 @@ namespace ReallifeGamemode.Server.Gangwar
this.Att_Score = 5;
this.Def_Score = 5;
this.status = "normal";
this.playerInside = new Client[0];
this.timer = null;
}
@@ -86,6 +85,7 @@ namespace ReallifeGamemode.Server.Gangwar
private void update()
{
/*
try
{
Client[] owners = NAPI.Pools.GetAllPlayers().Where(c => c.GetUser().Faction.Name == this.Owner).ToArray();
@@ -102,13 +102,12 @@ namespace ReallifeGamemode.Server.Gangwar
i++;
}
}
/*
if (owners.Length > attackers.Length)
this.Att_Score -= owners.Length - attackers.Length;
if(owners.Length < attackers.Length)
this.Def_Score -= attackers.Length - owners.Length;
*/
foreach (Client gangwarPlayer in this.playerInGangwar)
foreach (Client gangwarPlayer in this.playerInGangwar)
{
gangwarPlayer.TriggerEvent("CLIENT:ScoreUpdate", JsonConvert.SerializeObject(this.Att_Score), JsonConvert.SerializeObject(this.Def_Score), JsonConvert.SerializeObject(this.TurfID));
}