From 5dab251587e451a127cc88ed2bd19351a6e99626 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 2 Aug 2020 21:33:58 +0200 Subject: [PATCH] kh 30sek --- ReallifeGamemode.Client/Gui/deathscreen.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Client/Gui/deathscreen.ts b/ReallifeGamemode.Client/Gui/deathscreen.ts index 709c65a4..0a80b2c0 100644 --- a/ReallifeGamemode.Client/Gui/deathscreen.ts +++ b/ReallifeGamemode.Client/Gui/deathscreen.ts @@ -18,6 +18,8 @@ export default function deathScreen() { var fade; var deathDate: Date; + const maxDeathTime = 30; + mp.game.gameplay.setFadeOutAfterDeath(false); mp.events.add("startDeathTimer", (isAdmin) => { @@ -31,8 +33,8 @@ export default function deathScreen() { } mp.game.audio.playSoundFrontend(-1, "Bed", "WastedSounds", true); deathDate = new Date(); - respawnTime = Math.floor(deathDate.getTime() / 1000 + 120); - fade = 255 - 120; + respawnTime = Math.floor(deathDate.getTime() / 1000 + maxDeathTime); + fade = 255 - maxDeathTime; mp.game.graphics.requestStreamedTextureDict("Mptattoos", true); } });