mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-09 16:32:33 +00:00
zvote_call runitback
- "Redo Level?" - Functionally `restartlevel` but votable
This commit is contained in:
parent
ec8a6247c2
commit
ddce2e9a2d
2 changed files with 24 additions and 0 deletions
|
|
@ -74,6 +74,22 @@ static void K_MidVoteRockTheVote(void)
|
|||
|
||||
SendNetXCmd(XD_EXITLEVEL, NULL, 0);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------
|
||||
static void K_MidVoteRunItBack(void)
|
||||
|
||||
MVT_RUNITBACK's success function.
|
||||
--------------------------------------------------*/
|
||||
static void K_MidVoteRunItBack(void)
|
||||
{
|
||||
boolean newencore = false;
|
||||
|
||||
if (cv_kartencore.value != 0)
|
||||
{
|
||||
newencore = (cv_kartencore.value == 1) || encoremode;
|
||||
}
|
||||
|
||||
D_MapChange(gamemap, gametype, newencore, false, 0, false, false);
|
||||
}
|
||||
|
||||
static midVoteTypeDef_t g_midVoteTypeDefs[MVT__MAX] =
|
||||
|
|
@ -91,6 +107,13 @@ static midVoteTypeDef_t g_midVoteTypeDefs[MVT__MAX] =
|
|||
CVAR_INIT ("zvote_rtv_allowed", "No", CV_SAVE|CV_NETVAR, CV_YesNo, NULL),
|
||||
K_MidVoteRockTheVote
|
||||
},
|
||||
|
||||
{ // MVT_RUNITBACK
|
||||
"RUNITBACK",
|
||||
"Redo Level?",
|
||||
CVAR_INIT ("zvote_runitback_allowed", "No", CV_SAVE|CV_NETVAR, CV_YesNo, NULL),
|
||||
K_MidVoteRunItBack
|
||||
},
|
||||
};
|
||||
|
||||
/*--------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ typedef enum
|
|||
{
|
||||
MVT_KICK, // Kick another player in the server
|
||||
MVT_RTV, // Exit level early
|
||||
MVT_RUNITBACK, // Restart level fresh
|
||||
MVT__MAX, // Total number of vote types
|
||||
} midVoteType_e;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue