csgo-2018-source/game/client/c_physicsprop.h
2021-07-24 21:11:47 -07:00

53 lines
1.3 KiB
C++

//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose:
//
//===========================================================================//
#ifndef C_PHYSICSPROP_H
#define C_PHYSICSPROP_H
#ifdef _WIN32
#pragma once
#endif
#include "c_breakableprop.h"
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
class C_PhysicsProp : public C_BreakableProp
{
typedef C_BreakableProp BaseClass;
public:
DECLARE_CLIENTCLASS();
// Inherited from IClientUnknown
public:
virtual IClientModelRenderable* GetClientModelRenderable();
// Inherited from IClientModelRenderable
public:
virtual bool GetRenderData( void *pData, ModelDataCategory_t nCategory );
// Other public methods
public:
C_PhysicsProp();
virtual ~C_PhysicsProp();
virtual void OnDataChanged( DataUpdateType_t type );
virtual bool OnInternalDrawModel( ClientModelRenderInfo_t *pInfo );
bool GetPropDataAngles( const char *pKeyName, QAngle &vecAngles );
float GetCarryDistanceOffset( void );
void OnPreDataChanged( DataUpdateType_t updateType );
protected:
// Networked vars.
bool m_bAwake;
bool m_bAwakeLastTime;
bool m_bCanUseStaticLighting;
Vector m_vecClientOrigin;
QAngle m_vecClientAngles;
};
#endif // C_PHYSICSPROP_H