Change Gangwar scoring v2

This commit is contained in:
CroniX
2020-06-22 20:15:19 +02:00
parent 03d88fcb75
commit 6ae4adc468

View File

@@ -169,7 +169,7 @@ namespace ReallifeGamemode.Server.Gangwar
{ {
foreach (Player gangwarPlayer in this.playerInGangwar) foreach (Player gangwarPlayer in this.playerInGangwar)
{ {
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 0, 0); gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 5, 5);
} }
this.takeOver(this.Owner); this.takeOver(this.Owner);
this.Att_Score = 5; this.Att_Score = 5;
@@ -178,7 +178,7 @@ namespace ReallifeGamemode.Server.Gangwar
{ {
foreach (Player gangwarPlayer in this.playerInGangwar) foreach (Player gangwarPlayer in this.playerInGangwar)
{ {
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 0, 0); gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 5, 5);
} }
this.takeOver(this.Attacker); this.takeOver(this.Attacker);
this.Def_Score = 5; this.Def_Score = 5;
@@ -188,7 +188,7 @@ namespace ReallifeGamemode.Server.Gangwar
{ {
foreach (Player gangwarPlayer in this.playerInGangwar) foreach (Player gangwarPlayer in this.playerInGangwar)
{ {
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 0, 0); gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, 5, 5);
} }
this.takeOver(this.Attacker); this.takeOver(this.Attacker);
this.Def_Score = 5; this.Def_Score = 5;
@@ -341,11 +341,11 @@ namespace ReallifeGamemode.Server.Gangwar
{ {
if (getOwner() == FactionName) if (getOwner() == FactionName)
{ {
Def_Score += 1; Att_Score += 1;
} }
else if (getAttacker() == FactionName) else if (getAttacker() == FactionName)
{ {
Att_Score += 1; Def_Score += 1;
} }
} }
} }