From 53564a2dc825464683c500eda78c3928dad1872b Mon Sep 17 00:00:00 2001 From: Alaux <73968015+MrAlaux@users.noreply.github.com> Date: Tue, 31 Oct 2023 02:45:03 -0300 Subject: [PATCH] Teleporter zoom for multiplayer respawning --- CHANGELOG.md | 1 + src/g_game.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7810b7d62..2564c4120 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Let Ammo and Armor icons fall back to vanilla sprites; - Made Patches and Ammo and Armor icons alignable horizontally and vertically; - Disabled Armor icon by default. +- **Implemented Teleporter Zoom for multiplayer respawning** - **MDK Fist attacks now prioritize enemies over friends** ## Bug Fixes diff --git a/src/g_game.c b/src/g_game.c index 48837639a..c77a88e9f 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -2697,6 +2697,10 @@ static boolean G_CheckSpot(int playernum, mapthing_t *mthing) ss->sector->floorheight, MT_TFOG); } + // [Nugget] Teleporter zoom + if (&players[playernum] == &players[displayplayer]) + { R_SetFOVFX(FOVFX_TELEPORT); } + if (players[consoleplayer].viewz != 1) S_StartSound(mo, sfx_telept); // don't start sound on first frame