diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/tf2/tf_flare.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/tf2/tf_flare.h')
| -rw-r--r-- | game/server/tf2/tf_flare.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/game/server/tf2/tf_flare.h b/game/server/tf2/tf_flare.h new file mode 100644 index 0000000..8aea8a1 --- /dev/null +++ b/game/server/tf2/tf_flare.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef TF_FLARE_H +#define TF_FLARE_H +#pragma once + +#define SIGNALFLARE_NO_DLIGHT 0x01 +#define SIGNALFLARE_NO_SMOKE 0x02 +#define SIGNALFLARE_INFINITE 0x04 +#define SIGNALFLARE_DURATION 5.0f + +//============================================================================= +// +// Signal Flare Class +// +class CSignalFlare : public CBaseAnimating +{ + + DECLARE_CLASS( CSignalFlare, CBaseAnimating ); + +public: + + DECLARE_DATADESC(); + DECLARE_SERVERCLASS(); + + CSignalFlare( void ); + + static CSignalFlare *Create( Vector vecOrigin, QAngle vecAngles, CBaseEntity *pOwner, float lifetime ); + + // Initialization + void Spawn( void ); + void Precache( void ); + + // Think and Touch + void FlareThink( void ); + void FlareTouch( CBaseEntity *pOther ); + +public: + + CBaseEntity *m_pOwner; + int m_nBounces; // how many times has this flare bounced? + CNetworkVar( float, m_flDuration ); // when will the flare burn out? + CNetworkVar( float, m_flScale ); + float m_flNextDamage; + + bool m_bFading; + CNetworkVar( bool, m_bLight ); + CNetworkVar( bool, m_bSmoke ); +}; + +EXTERN_SEND_TABLE( DT_SignalFlare ); + +#endif // TF_FLARE_H
\ No newline at end of file |