Viewpoint key improvements

- Don't cycle through exiting players
- Don't cycle through karma players in Battle
- Disable console print on switch, it's already got a HUD element
This commit is contained in:
TehRealSalt 2018-09-26 21:35:57 -04:00
parent 2d5e603974
commit 0a2be735bd

View file

@ -1831,6 +1831,7 @@ boolean G_Responder(event_t *ev)
if (players[displayplayer].spectator) if (players[displayplayer].spectator)
continue; continue;
// SRB2Kart: we have no team-based modes, YET...
/*if (G_GametypeHasTeams()) /*if (G_GametypeHasTeams())
{ {
if (players[consoleplayer].ctfteam if (players[consoleplayer].ctfteam
@ -1855,12 +1856,16 @@ boolean G_Responder(event_t *ev)
continue; continue;
}*/ }*/
// SRB2Kart: Ehhh, who cares, Mario Kart's designed around screen-cheating anyway // SRB2Kart: Only go through players who are actually playing
/*if (gametype != GT_RACE) if (players[displayplayer].exiting)
continue;
// I don't know if we want this actually, but I'll humor the suggestion anyway
if (G_BattleGametype())
{ {
if (players[consoleplayer].kartstuff[k_bumper] > 0) if (players[displayplayer].kartstuff[k_bumper] <= 0)
continue; continue;
}*/ }
break; break;
} while (displayplayer != consoleplayer); } while (displayplayer != consoleplayer);
@ -1869,10 +1874,6 @@ boolean G_Responder(event_t *ev)
if (singledemo) if (singledemo)
ST_changeDemoView(); ST_changeDemoView();
// tell who's the view
CONS_Printf(M_GetText("Viewpoint: %s\n"), player_names[displayplayer]);
P_ResetCamera(&players[displayplayer], &camera);
return true; return true;
} }
} }