GameRules: Add 'IsTeamPlay()' method to the gamerules class. Use this
instead of the soon to be removed Rules_IsTeamPlay()!
This commit is contained in:
parent
ee2d3f6b3f
commit
169bd80fc8
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue