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/client/c_props.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/c_props.h')
| -rw-r--r-- | game/client/c_props.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/game/client/c_props.h b/game/client/c_props.h new file mode 100644 index 0000000..bb8af27 --- /dev/null +++ b/game/client/c_props.h @@ -0,0 +1,45 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef C_PROPS_H +#define C_PROPS_H +#ifdef _WIN32 +#pragma once +#endif + +#include "c_breakableprop.h" +#include "props_shared.h" + +#define CDynamicProp C_DynamicProp + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +class C_DynamicProp : public C_BreakableProp +{ + DECLARE_CLASS( C_DynamicProp, C_BreakableProp ); +public: + DECLARE_NETWORKCLASS(); + + // constructor, destructor + C_DynamicProp( void ); + ~C_DynamicProp( void ); + + void GetRenderBounds( Vector& theMins, Vector& theMaxs ); + unsigned int ComputeClientSideAnimationFlags(); + bool TestBoneFollowers( const Ray_t &ray, unsigned int fContentsMask, trace_t& tr ); + bool TestCollision( const Ray_t &ray, unsigned int fContentsMask, trace_t& tr ); + +private: + C_DynamicProp( const C_DynamicProp & ); + + bool m_bUseHitboxesForRenderBox; + int m_iCachedFrameCount; + Vector m_vecCachedRenderMins; + Vector m_vecCachedRenderMaxs; +}; + +#endif // C_PROPS_H |