Files
funnygame/game/server/milmoba/player.h
2026-06-15 16:11:55 +03:00

42 lines
817 B
C++

#ifndef MILMOBA_PLAYER_H
#define MILMOBA_PLAYER_H
#include "physicsprop.h"
class CMOBAPlayer: public CBaseModelEntity
{
public:
DECLARE_CLASS(CMOBAPlayer, CBaseModelEntity);
DECLARE_DATADESC();
DECLARE_SERVERCLASS()
CMOBAPlayer();
virtual ~CMOBAPlayer();
virtual void Spawn( void ) override;
void Think( float fDelta );
static bool CheckMask( HCollider hCollider );
private:
Vector m_vMovementVector = {};
HShape m_hCuboid = NULL;
CBaseEntity *m_pLeftHand;
int m_leftHandId;
CBaseEntity *m_pRightHand;
int m_rightHandId;
};
class CMOBAPlayerHandController: public CBaseEntity
{
public:
DECLARE_CLASS(CMOBAPlayerHandController, CBaseEntity);
DECLARE_DATADESC();
DECLARE_SERVERCLASS()
CMOBAPlayerHandController();
virtual void Spawn( void ) override;
void Think( float fDelta );
};
#endif