Hide followers toggle

This commit is contained in:
NepDisk 2025-11-08 13:00:18 -05:00
parent f8d5f6890f
commit 37831094a4
3 changed files with 6 additions and 1 deletions

View file

@ -17,6 +17,8 @@ follower_t followers[MAXSKINS];
CV_PossibleValue_t Followercolor_cons_t[MAXSKINCOLORS+3]; // +3 to account for "Match", "Opposite" & NULL
consvar_t cv_hidefollowers = CVAR_INIT ("hidefollowers", "Off", CV_SAVE, CV_OnOff, NULL);
/*--------------------------------------------------
INT32 K_FollowerAvailable(const char *name)
@ -453,7 +455,7 @@ void K_HandleFollower(player_t *player)
player->follower->renderflags = player->mo->renderflags;
// Make the follower invisible if we no contest'd rather than removing it. No one will notice the diff seriously.
if (player->pflags & PF_NOCONTEST)
if (player->pflags & PF_NOCONTEST || cv_hidefollowers.value)
{
player->follower->renderflags |= RF_DONTDRAW;
}

View file

@ -27,6 +27,8 @@ extern "C" {
extern CV_PossibleValue_t Followercolor_cons_t[]; // follower colours table, not a duplicate because of the "Match" option.
extern consvar_t cv_hidefollowers;
typedef enum
{
FOLLOWERMODE_FLOAT, // Default behavior, floats in the position you set it to.

View file

@ -434,6 +434,7 @@ void K_RegisterKartStuff(void)
CV_RegisterVar(&cv_kartdriftsounds);
CV_RegisterVar(&cv_kartdriftefx);
CV_RegisterVar(&cv_kartsplashefx);
CV_RegisterVar(&cv_hidefollowers);
CV_RegisterVar(&cv_driftsparkpulse);
CV_RegisterVar(&cv_itemtimers);
CV_RegisterVar(&cv_saltyhop);