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); } });