Files
funnygame/game/client/basemodelentity.h
2026-03-16 15:35:31 +02:00

34 lines
658 B
C++

#ifndef BASE_MODEL_ENTITY_H
#define BASE_MODEL_ENTITY_H
#include "baseentity.h"
#include "worldrender.h"
#include "assetmgr.h"
class C_BaseModelEntity: public C_BaseEntity
{
public:
DECLARE_CLASS(C_BaseModelEntity, C_BaseEntity)
DECLARE_DATADESC()
DECLARE_CLIENTCLASS()
virtual ~C_BaseModelEntity() override;
virtual void Precache() override;
virtual void Spawn() override;
void Think( float fDelta );
void SetModel( const char *szName );
private:
void UpdateModel();
char m_szCurrentModel[256] = {};
char m_szModel[256] = {};
HFunnyModel m_hModelHandle = 0;
FunnyModel_t *m_pModel = NULL;
IMeshInstance *m_pInstance = NULL;
};
#endif