GameRules: Add 'IsTeamPlay()' method to the gamerules class. Use this

instead of the soon to be removed Rules_IsTeamPlay()!
This commit is contained in:
Marco Cawthorne 2022-03-02 09:14:58 -08:00
parent ee2d3f6b3f
commit 169bd80fc8
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 11 additions and 0 deletions

View File

@ -54,6 +54,8 @@ class CGameRules
virtual void(void) IntermissionCycle;
virtual void(void) IntermissionEnd;
virtual float(void) IsTeamPlay;
/* spectator */
/*virtual void(base_player) SpectatorConnect;
virtual void(base_player) SpectatorDisconnect;

View File

@ -53,11 +53,13 @@ void
CGameRules::PlayerDeath(base_player pl)
{
//print("PlayerDeath!\n");
pl.Death();
}
void
CGameRules::PlayerPain(base_player pl)
{
//print("ClientKill!\n");
pl.Pain();
}
void
CGameRules::PlayerSpawn(base_player pl)
@ -177,6 +179,13 @@ CGameRules::MonstersSpawn(void)
return (TRUE);
}
/* init */
float
CGameRules::IsTeamPlay(void)
{
return (FALSE);
}
void
CGameRules::DamageApply(entity t, entity c, float dmg, int w, damageType_t type)
{