work on openxr controllers

This commit is contained in:
2026-06-15 03:49:11 +03:00
parent b8aa36ccc0
commit c51080a903
16 changed files with 1030 additions and 75 deletions

View File

@@ -3,6 +3,20 @@
#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
{
@@ -30,6 +44,12 @@ public:
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