#ifndef MILMOBA_PLAYER_H #define MILMOBA_PLAYER_H #include "basemodelentity.h" class C_MOBAPlayerHandController: public C_BaseEntity { public: DECLARE_CLASS(C_MOBAPlayerHandController, C_BaseEntity); DECLARE_DATADESC(); DECLARE_CLIENTCLASS(); virtual void Precache ( void ) override; virtual void Spawn( void ) override; void Think( float fDelta ); virtual ~C_MOBAPlayerHandController() override; Vector m_vDesiredHandPosition = {}; Quat m_vDesiredHandRotation = {}; float m_fPreviousSqueeze = 0; float m_fSqueeze = 0; HFunnyModel m_hNormal = NULL; FunnyModel_t *m_pNormalModel = NULL; HFunnyModel m_hSqueezed = NULL; FunnyModel_t *m_pSqueezedModel = NULL; FunnyModel_t *m_pModel = NULL; IMesh *m_pMesh = NULL; IMeshInstance *m_pInstance = NULL; }; class C_MOBAPlayer: public C_BaseModelEntity { public: DECLARE_CLASS(C_MOBAPlayer, C_BaseModelEntity); DECLARE_DATADESC(); DECLARE_CLIENTCLASS() virtual void Precache ( void ) override; virtual void Spawn( void ) override; void Think( float fDelta ); bool m_bIsForward = 0; bool m_bIsBack = 0; bool m_bIsLeft = 0; bool m_bIsRight = 0; int m_bIsShooting; float m_fFBWalkingDirection; float m_fLRWalkingDirection; float m_fPitch= 0; float m_fYaw = 0; Vector m_vMovementVector; Vector m_vLocalMovementVector; Vector vCameraPos; C_MOBAPlayerHandController *m_pLeftHand = NULL; int m_leftHandId = EDICT_INDEX_UNDEFINED; C_MOBAPlayerHandController *m_pRightHand = NULL; int m_rightHandId = EDICT_INDEX_UNDEFINED; }; #endif