Portable Half-Life SDK. GoldSource and Xash3D. Crossplatform.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
994 B

//
// Monster_gamerules.h
//
class CMonsterplay : public CHalfLifeMultiplay
{
public:
CMonsterplay();
virtual void Think( void );
virtual const char *GetGameDescription( void ) { return "Monster Hunt Mode"; } // this is the game name that gets seen in the server browser
virtual BOOL IsMonster( void );
virtual void PlayerSpawn( CBasePlayer *pPlayer );
virtual void PlayerKilled( CBasePlayer *pVictim, entvars_t *pKiller, entvars_t *pInflictor );
virtual int PlayerRelationship( CBaseEntity *pPlayer, CBaseEntity *pTarget );
virtual BOOL FPlayerCanTakeDamage( CBasePlayer *pPlayer, CBaseEntity *pAttacker );
virtual BOOL FAllowMonsters( void );
float fMonHuntNextSpawn; //Next Time to spawn monsters in spawn points if there is none. Set by a CVAR.
int bMonsterMakers; //If there is no MonsterMaker ents
int bMonsterCheck; //Check for MonsterMaker ents
static int iKillforMonster( const char *classname );
static const char *PrepareMonsterName( const char *monster_name );
};