Skip to content

Commit

Permalink
Teleporter zoom for multiplayer respawning
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlaux committed Oct 31, 2023
1 parent 55a2302 commit 53564a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 53564a2

Please sign in to comment.