Change Gangwar scoring v2
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user