Turn GTR_CHASECAM into GTR_FIRSTPERSON.
This commit is contained in:
parent
bb1f43d374
commit
630c06b7b0
|
@ -8870,7 +8870,7 @@ static const char *const GAMETYPERULE_LIST[] = {
|
||||||
"HIDETIME",
|
"HIDETIME",
|
||||||
"HIDEFROZEN",
|
"HIDEFROZEN",
|
||||||
"BLINDFOLDED",
|
"BLINDFOLDED",
|
||||||
"CHASECAM",
|
"FIRSTPERSON",
|
||||||
"MATCHEMERALDS",
|
"MATCHEMERALDS",
|
||||||
"TEAMFLAGS",
|
"TEAMFLAGS",
|
||||||
"PITYSHIELD",
|
"PITYSHIELD",
|
||||||
|
|
|
@ -389,7 +389,7 @@ enum GameType
|
||||||
// Game type rules
|
// Game type rules
|
||||||
enum GameTypeRules
|
enum GameTypeRules
|
||||||
{
|
{
|
||||||
GTR_CAMPAIGN = 1, // Linear Co-op map progression. Don't allow random maps.
|
GTR_CAMPAIGN = 1, // Linear Co-op map progression, don't allow random maps
|
||||||
GTR_RINGSLINGER = 1<<1, // Outside of Co-op, Competition, and Race (overriden by cv_ringslinger)
|
GTR_RINGSLINGER = 1<<1, // Outside of Co-op, Competition, and Race (overriden by cv_ringslinger)
|
||||||
GTR_SPECTATORS = 1<<2, // Outside of Co-op, Competition, and Race
|
GTR_SPECTATORS = 1<<2, // Outside of Co-op, Competition, and Race
|
||||||
GTR_FRIENDLYFIRE = 1<<3, // Always allow friendly fire
|
GTR_FRIENDLYFIRE = 1<<3, // Always allow friendly fire
|
||||||
|
@ -402,12 +402,12 @@ enum GameTypeRules
|
||||||
GTR_HIDETIME = 1<<10, // Hide time (Tag and Hide and Seek)
|
GTR_HIDETIME = 1<<10, // Hide time (Tag and Hide and Seek)
|
||||||
GTR_HIDEFROZEN = 1<<11, // Frozen after hide time (Hide and Seek, but not Tag)
|
GTR_HIDEFROZEN = 1<<11, // Frozen after hide time (Hide and Seek, but not Tag)
|
||||||
GTR_BLINDFOLDED = 1<<12, // Blindfolded view (Tag and Hide and Seek)
|
GTR_BLINDFOLDED = 1<<12, // Blindfolded view (Tag and Hide and Seek)
|
||||||
GTR_CHASECAM = 1<<13, // Prefer chasecam at map load (All platform gametypes)
|
GTR_FIRSTPERSON = 1<<13, // First person camera
|
||||||
GTR_MATCHEMERALDS = 1<<14, // Ringslinger emeralds (Match and CTF)
|
GTR_MATCHEMERALDS = 1<<14, // Ringslinger emeralds (Match and CTF)
|
||||||
GTR_TEAMFLAGS = 1<<15, // Gametype has team flags (CTF)
|
GTR_TEAMFLAGS = 1<<15, // Gametype has team flags (CTF)
|
||||||
GTR_PITYSHIELD = 1<<16, // Award pity shield
|
GTR_PITYSHIELD = 1<<16, // Award pity shield
|
||||||
GTR_DEATHPENALTY = 1<<17, // Death score penalty
|
GTR_DEATHPENALTY = 1<<17, // Death score penalty
|
||||||
GTR_NOSPECTATORSPAWN = 1<<18, // For use with GTR_SPECTATORS - spawn in the map instead of with the spectators
|
GTR_NOSPECTATORSPAWN = 1<<18, // Use with GTR_SPECTATORS, spawn in the map instead of with the spectators
|
||||||
GTR_DEATHMATCHSTARTS = 1<<19, // Use deathmatch starts
|
GTR_DEATHMATCHSTARTS = 1<<19, // Use deathmatch starts
|
||||||
GTR_SPECIALSTAGES = 1<<20, // Allow special stages
|
GTR_SPECIALSTAGES = 1<<20, // Allow special stages
|
||||||
GTR_EMERALDTOKENS = 1<<21, // Spawn emerald tokens
|
GTR_EMERALDTOKENS = 1<<21, // Spawn emerald tokens
|
||||||
|
|
16
src/g_game.c
16
src/g_game.c
|
@ -3167,24 +3167,24 @@ const char *Gametype_ConstantNames[NUMGAMETYPES] =
|
||||||
UINT32 gametypedefaultrules[NUMGAMETYPES] =
|
UINT32 gametypedefaultrules[NUMGAMETYPES] =
|
||||||
{
|
{
|
||||||
// Co-op
|
// Co-op
|
||||||
GTR_CAMPAIGN|GTR_LIVES|GTR_CHASECAM|GTR_SPAWNENEMIES|GTR_ALLOWEXIT|GTR_EMERALDHUNT|GTR_EMERALDTOKENS|GTR_SPECIALSTAGES,
|
GTR_CAMPAIGN|GTR_LIVES|GTR_SPAWNENEMIES|GTR_ALLOWEXIT|GTR_EMERALDHUNT|GTR_EMERALDTOKENS|GTR_SPECIALSTAGES,
|
||||||
// Competition
|
// Competition
|
||||||
GTR_RACE|GTR_LIVES|GTR_CHASECAM|GTR_SPAWNENEMIES|GTR_EMERALDTOKENS|GTR_ALLOWEXIT,
|
GTR_RACE|GTR_LIVES|GTR_SPAWNENEMIES|GTR_EMERALDTOKENS|GTR_ALLOWEXIT,
|
||||||
// Race
|
// Race
|
||||||
GTR_RACE|GTR_CHASECAM|GTR_SPAWNENEMIES|GTR_ALLOWEXIT,
|
GTR_RACE|GTR_SPAWNENEMIES|GTR_ALLOWEXIT,
|
||||||
|
|
||||||
// Match
|
// Match
|
||||||
GTR_RINGSLINGER|GTR_SPECTATORS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_MATCHEMERALDS|GTR_PITYSHIELD|GTR_DEATHPENALTY,
|
GTR_RINGSLINGER|GTR_FIRSTPERSON|GTR_SPECTATORS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_MATCHEMERALDS|GTR_PITYSHIELD|GTR_DEATHPENALTY,
|
||||||
// Team Match
|
// Team Match
|
||||||
GTR_RINGSLINGER|GTR_SPECTATORS|GTR_TEAMS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_PITYSHIELD,
|
GTR_RINGSLINGER|GTR_FIRSTPERSON|GTR_SPECTATORS|GTR_TEAMS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_PITYSHIELD,
|
||||||
|
|
||||||
// Tag
|
// Tag
|
||||||
GTR_RINGSLINGER|GTR_TAG|GTR_SPECTATORS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_HIDETIME|GTR_BLINDFOLDED,
|
GTR_RINGSLINGER|GTR_FIRSTPERSON|GTR_TAG|GTR_SPECTATORS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_HIDETIME|GTR_BLINDFOLDED,
|
||||||
// Hide and Seek
|
// Hide and Seek
|
||||||
GTR_RINGSLINGER|GTR_TAG|GTR_SPECTATORS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_HIDETIME|GTR_BLINDFOLDED,
|
GTR_RINGSLINGER|GTR_FIRSTPERSON|GTR_TAG|GTR_SPECTATORS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_HIDETIME|GTR_BLINDFOLDED,
|
||||||
|
|
||||||
// CTF
|
// CTF
|
||||||
GTR_RINGSLINGER|GTR_SPECTATORS|GTR_TEAMS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_MATCHEMERALDS|GTR_TEAMFLAGS|GTR_PITYSHIELD,
|
GTR_RINGSLINGER|GTR_FIRSTPERSON|GTR_SPECTATORS|GTR_TEAMS|GTR_POINTLIMIT|GTR_TIMELIMIT|GTR_MATCHEMERALDS|GTR_TEAMFLAGS|GTR_PITYSHIELD,
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -2673,7 +2673,7 @@ boolean P_SetupLevel(boolean skipprecip)
|
||||||
|
|
||||||
// chasecam on in chaos, race, coop
|
// chasecam on in chaos, race, coop
|
||||||
// chasecam off in match, tag, capture the flag
|
// chasecam off in match, tag, capture the flag
|
||||||
chase = (gametyperules & GTR_CHASECAM) || (maptol & TOL_2D);
|
chase = (!(gametyperules & GTR_FIRSTPERSON)) || (maptol & TOL_2D);
|
||||||
|
|
||||||
if (!dedicated)
|
if (!dedicated)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue