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.
52 lines
1.3 KiB
52 lines
1.3 KiB
//===== 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
|