cs16-client-legacy/dlls/training_gamerules.h
2015-12-27 14:32:17 +03:00

44 lines
1.3 KiB
C++

/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/
class CHalfLifeTraining : public CHalfLifeMultiplay
{
public:
CHalfLifeTraining(void);
public:
virtual BOOL IsMultiplayer(void);
virtual BOOL IsDeathmatch(void);
virtual void InitHUD(CBasePlayer *pl);
virtual void PlayerSpawn(CBasePlayer *pPlayer);
virtual void PlayerThink(CBasePlayer *pPlayer);
virtual BOOL FPlayerCanRespawn(CBasePlayer *pPlayer);
virtual edict_t *GetPlayerSpawnSpot(CBasePlayer *pPlayer);
virtual void PlayerKilled(CBasePlayer *pVictim, entvars_t *pKiller, entvars_t *pInflictor);
virtual int ItemShouldRespawn(CItem *pItem);
virtual void CheckMapConditions(void);
virtual void CheckWinConditions(void);
public:
static void HostageDied(void);
static bool PlayerCanBuy(CBasePlayer *pPlayer);
private:
float FillAccountTime;
float ServerRestartTime;
BOOL fInBuyArea;
BOOL fVisitedBuyArea;
BOOL fVGUIMenus;
};