zum testen: gangwar

This commit is contained in:
Fabian
2021-04-29 19:37:13 +02:00
parent 550d2a9ef9
commit 9afb37f200
3 changed files with 4 additions and 5 deletions

View File

@@ -629,7 +629,7 @@
});
mp.events.add("gangWarKillNotification", (deathPlayername) => {
mp.events.call("BN_Show", "GANGWAR: Du hast ~r~" + deathPlayername + " ~w~getötet. Kills: " + ++gangwarKillCounter);
mp.events.call("BN_Show", "~y~GANGWAR~w~: Du hast ~r~" + deathPlayername + " ~w~getötet. Kills: " + ++gangwarKillCounter);
});
mp.events.add("resetKillcounter", () => {

View File

@@ -13,6 +13,7 @@ namespace ReallifeGamemode.Server.Gangwar
{
public static Turf[] _loadedTurfs;
private static List<Turfs> turfs;
public const int GANGWAR_TOTAL_TIME = 90;
public static void loadTurfs()
{

View File

@@ -31,8 +31,6 @@ namespace ReallifeGamemode.Server.Gangwar
public Player[] playerInGangwar { get; set; }
public int timerCount;
private const int GANGWAR_TOTAL_TIME = 30;
public Turf(int TurfID, string TurfName, int color, string Owner, int value, int maxValue, bool surplus)
{
this.TurfID = TurfID;
@@ -144,7 +142,7 @@ namespace ReallifeGamemode.Server.Gangwar
continue;
}
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, this.Att_Score, this.Def_Score, GANGWAR_TOTAL_TIME - timerCount);
gangwarPlayer.TriggerEvent("GangwarScore", this.Attacker, this.Owner, this.Att_Score, this.Def_Score, Gangwar.GANGWAR_TOTAL_TIME - timerCount);
}
/*if (this.Att_Score >= 200)
{
@@ -155,7 +153,7 @@ namespace ReallifeGamemode.Server.Gangwar
this.takeOver(this.Owner);
}*/
timerCount += 1;
if (timerCount >= GANGWAR_TOTAL_TIME)
if (timerCount >= Gangwar.GANGWAR_TOTAL_TIME)
{
if (this.Att_Score > this.Def_Score)
{