GangwarFix zweiter Tag 8

This commit is contained in:
VegaZ
2021-03-30 21:49:57 +02:00
parent e64491c27f
commit 17f7899823

View File

@@ -154,14 +154,14 @@ namespace ReallifeGamemode.Server.Gangwar
{ {
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, this.Att_Score, this.Def_Score, 40 - timerCount); gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, this.Att_Score, this.Def_Score, 40 - timerCount);
} }
if (this.Att_Score >= 200) /*if (this.Att_Score >= 200)
{ {
this.takeOver(this.Attacker); this.takeOver(this.Attacker);
} }
else if (this.Def_Score >= 200) else if (this.Def_Score >= 200)
{ {
this.takeOver(this.Owner); this.takeOver(this.Owner);
} }*/
timerCount += 1; timerCount += 1;
if (timerCount >= 40) //change to 900 (seconds) before release for testing reasons change to whatever you like if (timerCount >= 40) //change to 900 (seconds) before release for testing reasons change to whatever you like
{ {
@@ -286,7 +286,7 @@ namespace ReallifeGamemode.Server.Gangwar
this.status = "conquered"; this.status = "conquered";
NAPI.ClientEvent.TriggerClientEventForAll("CLIENT:Turf_Conquered", JsonConvert.SerializeObject(this.TurfID), JsonConvert.SerializeObject(this.status), JsonConvert.SerializeObject(this.Owner)); NAPI.ClientEvent.TriggerClientEventForAll("CLIENT:Turf_Conquered", JsonConvert.SerializeObject(this.TurfID), JsonConvert.SerializeObject(this.status), JsonConvert.SerializeObject(this.Owner));
Gangwar.loadTurfs(); //Gangwar.loadTurfs();
Gangwar.loadTurfs_ToAllPlayers(); Gangwar.loadTurfs_ToAllPlayers();
} }