change Gangwar-time & change KH-time & edit Indroduction & change help & delete Ahelp

This commit is contained in:
michael.reiswich
2021-04-03 11:51:27 +02:00
parent b4326c11cc
commit dacaf84cf7
8 changed files with 20 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ export default function deathScreen() {
var fade; var fade;
var deathDate: Date; var deathDate: Date;
var taskTimeout = false; var taskTimeout = false;
const maxDeathTime = 30; const maxDeathTime = 120;
const medicJobTime = maxDeathTime * -1; const medicJobTime = maxDeathTime * -1;
mp.game.gameplay.setFadeOutAfterDeath(false); mp.game.gameplay.setFadeOutAfterDeath(false);

View File

@@ -18,7 +18,11 @@
<h1>Willkommen auf Life of German</h1> <h1>Willkommen auf Life of German</h1>
</div> </div>
<div id="content" class="form" role="form"> <div id="content" class="form" role="form">
In dieser Info findest du alles wichtige zum Thema Steuerung und Funktionen.<br /> <br /> Was sind die ersten Schritte wirst du dich jetzt bestimmt fragen. Hier ein kleiner Guide.<br /> <br />
1. Mach deine Scheine (Führerschein, Flugschein, Waffenschein) <br />
2. Nimm einen Job in der Stadthalle an und verdien dir dein erstes Geld. <br />
3. Kauf dir ein eigenes Auto. <br />
4. Tritt einer Fraktion bei <br /> <br />
Steuerung: <br /> Steuerung: <br />
T - Chat öffnen <br /> T - Chat öffnen <br />
@@ -27,6 +31,8 @@
N - Fahrzeugmotor Starten <br /> N - Fahrzeugmotor Starten <br />
O - Onlineliste öffnen/schließen <br /> O - Onlineliste öffnen/schließen <br />
I - Inventar öffnen/schließen <br /> I - Inventar öffnen/schließen <br />
f4 - Mikrofon an und aus stellen <br /> <br />
Mit /help kannst du dir jederzeit die Steuerung angucken. Und nun viel Spaß auf unseren Server.
</div> </div>
<a target="_blank" id="close"></a> <a target="_blank" id="close"></a>

View File

@@ -499,9 +499,6 @@
z++ z++
} }
mp.gui.chat.push("DEBUG: Turf blips not removed: " + x + " / " + n);
mp.gui.chat.push("DEBUG: Attack blips not removed: " + y);
mp.gui.chat.push("DEBUG: LeaderBlips blips not removed: " + z);
} }
mp.events.add('GangAreas:Create', (turfsJSON) => { mp.events.add('GangAreas:Create', (turfsJSON) => {

View File

@@ -91,7 +91,6 @@
mp.events.add("entityStreamIn", (entity) => { mp.events.add("entityStreamIn", (entity) => {
if (entity.type === "player") { if (entity.type === "player") {
mp.gui.chat.push("headshot entity stream in" + entity.name);
entity.setSuffersCriticalHits(false); entity.setSuffersCriticalHits(false);
} }
}); });

View File

@@ -144,7 +144,7 @@ namespace ReallifeGamemode.Server.Commands
#region ahelp #region ahelp
[Command("ahelp", "~m~Benutzung: ~s~/ahelp")] /* [Command("ahelp", "~m~Benutzung: ~s~/ahelp")]
public void CmdAdminHelp(Player player) public void CmdAdminHelp(Player player)
{ {
if (!player.GetUser()?.IsAdmin(AdminLevel.MAPPING) ?? true) if (!player.GetUser()?.IsAdmin(AdminLevel.MAPPING) ?? true)
@@ -170,7 +170,7 @@ namespace ReallifeGamemode.Server.Commands
} }
} }
} }
*/
#endregion ahelp #endregion ahelp
#region Mapping / Entwicklung #region Mapping / Entwicklung

View File

@@ -79,7 +79,12 @@ namespace ReallifeGamemode.Server.Commands
[Command("help", "~m~Benutzung: ~s~/help")] [Command("help", "~m~Benutzung: ~s~/help")]
public void CmdHelp(Player player) public void CmdHelp(Player player)
{ {
player.TriggerEvent("showUserhelp"); player.SendChatMessage("M - Interaktionsmenü öffnen und schließen");
player.SendChatMessage("X - Fahrzeug auf -/ abschließen sowie im Fahrzeuginteraktionsmenü öffnen");
player.SendChatMessage("N - Fahrzeugmotor Starten");
player.SendChatMessage("O - Onlineliste öffnen / schließen");
player.SendChatMessage("I - Inventar öffnen / schließen");
player.SendChatMessage("f4 - Mikrofon an/aus schalten");
} }
[Command("hup")] [Command("hup")]

View File

@@ -118,11 +118,9 @@ namespace ReallifeGamemode.Server.Gangwar
{ {
var t = Task.Factory.StartNew(() => var t = Task.Factory.StartNew(() =>
{ {
ChatService.Broadcast("DEBUG: reloadGangTurfs(...)");
Task.Delay(10000).Wait(); Task.Delay(10000).Wait();
Gangwar.loadTurfs(); Gangwar.loadTurfs();
Gangwar.loadTurfs_ToAllPlayers(); Gangwar.loadTurfs_ToAllPlayers();
ChatService.Broadcast("DEBUG: reloadGangTurfs()...10 Sekunden um");
}); });
t.Wait(); t.Wait();
@@ -167,7 +165,7 @@ namespace ReallifeGamemode.Server.Gangwar
foreach (Player gangwarPlayer in this.playerInGangwar) foreach (Player gangwarPlayer in this.playerInGangwar)
{ {
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, 900 - timerCount);
} }
/*if (this.Att_Score >= 200) /*if (this.Att_Score >= 200)
{ {
@@ -178,7 +176,7 @@ namespace ReallifeGamemode.Server.Gangwar
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 >= 900) //change to 900 (seconds) before release for testing reasons change to whatever you like
{ {
if (this.Att_Score > this.Def_Score) if (this.Att_Score > this.Def_Score)
{ {

View File

@@ -137,7 +137,7 @@ public class AttachmentSyncExample : Script
player.AddAttachment(Base36Extensions.FromBase36(hash), true); player.AddAttachment(Base36Extensions.FromBase36(hash), true);
} }
[Command("xdd")] /* [Command("xdd")]
public void attachment(Player player) public void attachment(Player player)
{ {
Vehicle veh = player.Vehicle; Vehicle veh = player.Vehicle;
@@ -152,6 +152,7 @@ public class AttachmentSyncExample : Script
veh.ClearAttachments(); veh.ClearAttachments();
} }
} }
*/
} }