Files
funnygame/game/client/milmoba/player.h
2026-06-15 03:49:11 +03:00

56 lines
1.1 KiB
C++

#ifndef MILMOBA_PLAYER_H
#define MILMOBA_PLAYER_H
#include "basemodelentity.h"
class C_MOBAPlayerHandController: public C_BaseModelEntity
{
public:
DECLARE_CLASS(C_MOBAPlayerHandController, C_BaseModelEntity);
DECLARE_DATADESC();
DECLARE_CLIENTCLASS();
virtual void Precache ( void ) override;
virtual void Spawn( void ) override;
void Think( float fDelta );
Vector m_vDesiredHandPosition = {};
Quat m_vDesiredHandRotation = {};
};
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;
int m_leftHandId = 0;
C_MOBAPlayerHandController *m_pRightHand;
int m_rightHandId = 0;
};
#endif