mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 14:12:47 +00:00
GTR_HURTMESSAGES
This commit is contained in:
parent
d146594895
commit
4f54da125d
3 changed files with 3 additions and 1 deletions
|
|
@ -8899,6 +8899,7 @@ static const char *const GAMETYPERULE_LIST[] = {
|
||||||
"ALLOWEXIT",
|
"ALLOWEXIT",
|
||||||
"NOTITLECARD",
|
"NOTITLECARD",
|
||||||
"OVERTIME",
|
"OVERTIME",
|
||||||
|
"HURTMESSAGES",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -416,6 +416,7 @@ enum GameTypeRules
|
||||||
GTR_ALLOWEXIT = 1<<24, // Allow exit sectors
|
GTR_ALLOWEXIT = 1<<24, // Allow exit sectors
|
||||||
GTR_NOTITLECARD = 1<<25, // Don't show the title card
|
GTR_NOTITLECARD = 1<<25, // Don't show the title card
|
||||||
GTR_OVERTIME = 1<<26, // Allow overtime
|
GTR_OVERTIME = 1<<26, // Allow overtime
|
||||||
|
GTR_HURTMESSAGES = 1<<27, // Hit and death messages
|
||||||
};
|
};
|
||||||
|
|
||||||
// String names for gametypes
|
// String names for gametypes
|
||||||
|
|
|
||||||
|
|
@ -1888,7 +1888,7 @@ static void P_HitDeathMessages(player_t *player, mobj_t *inflictor, mobj_t *sour
|
||||||
char targetname[MAXPLAYERNAME+4];
|
char targetname[MAXPLAYERNAME+4];
|
||||||
char sourcename[MAXPLAYERNAME+4];
|
char sourcename[MAXPLAYERNAME+4];
|
||||||
|
|
||||||
if (G_PlatformGametype())
|
if (!(gametyperules & (GTR_RINGSLINGER|GTR_HURTMESSAGES)))
|
||||||
return; // Not in coop, etc.
|
return; // Not in coop, etc.
|
||||||
|
|
||||||
if (!player)
|
if (!player)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue