Counter Strike : Global Offensive Source Code
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.
|
|
//====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
//
// Purpose:
//
//=============================================================================
#include "glow_outline_effect.h"
#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 );
virtual void ClientThink( void ); virtual void OnDataChanged( DataUpdateType_t type );
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 );
void ForceTurnOffGlow( void ); void UpdateGlow( void ); CGlowObject m_GlowObject;
private: C_DynamicProp( const C_DynamicProp & );
bool m_bUseHitboxesForRenderBox; int m_iCachedFrameCount; Vector m_vecCachedRenderMins; Vector m_vecCachedRenderMaxs;
float m_flGlowMaxDist; bool m_bShouldGlow; color32 m_clrGlow; int m_nGlowStyle; };
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class C_BasePropDoor : public C_DynamicProp { DECLARE_CLASS( C_BasePropDoor, C_DynamicProp ); public: DECLARE_CLIENTCLASS();
// constructor, destructor
C_BasePropDoor( void ); virtual ~C_BasePropDoor( void );
virtual void OnDataChanged( DataUpdateType_t type ); virtual void PostDataUpdate( DataUpdateType_t updateType );
virtual bool TestCollision( const Ray_t &ray, unsigned int mask, trace_t& trace );
private: C_BasePropDoor( const C_BasePropDoor & ); bool m_modelChanged; };
#endif // C_PROPS_H
|