Team Fortress 2 Source Code as on 22/4/2020
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.
 
 
 
 
 
 

62 lines
1.1 KiB

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: CTF Regenerate Zone.
//
//=============================================================================//
#ifndef FUNC_REGENERATE_ZONE_H
#define FUNC_REGENERATE_ZONE_H
#ifdef _WIN32
#pragma once
#endif
#include "triggers.h"
#include "props.h"
//=============================================================================
//
// CTF Regenerate Zone class.
//
class CRegenerateZone : public CBaseTrigger
{
public:
DECLARE_CLASS( CRegenerateZone, CBaseTrigger );
CRegenerateZone();
void Spawn( void );
void Precache( void );
void Activate( void );
void Touch( CBaseEntity *pOther );
virtual void EndTouch( CBaseEntity *pOther );
bool IsDisabled( void );
void SetDisabled( bool bDisabled );
void Regenerate( CTFPlayer *pPlayer );
// Input handlers
void InputEnable( inputdata_t &inputdata );
void InputDisable( inputdata_t &inputdata );
void InputToggle( inputdata_t &inputdata );
private:
bool m_bDisabled;
CHandle<CDynamicProp> m_hAssociatedModel;
string_t m_iszAssociatedModel;
DECLARE_DATADESC();
};
#endif // FUNC_REGENERATE_ZONE_H