32 lines
572 B
C++
32 lines
572 B
C++
#include "player.h"
|
|
#include "game.h"
|
|
#include "entitysystem.h"
|
|
|
|
|
|
|
|
void CMOBAPlayer::Spawn()
|
|
{
|
|
CPhysicsProp::Spawn();
|
|
SetModel("game/core/models/cube.fmdl");
|
|
SetScale(1);
|
|
SetThink(Think);
|
|
};
|
|
|
|
void CMOBAPlayer::Think( float fDelta )
|
|
{
|
|
V_printf("%f %f %f\n", m_vMovementVector.x, m_vMovementVector.y, m_vMovementVector.z);
|
|
CPhysicsProp::Think(fDelta);
|
|
};
|
|
|
|
LINK_ENTITY_TO_CLASS(player, CMOBAPlayer)
|
|
|
|
BEGIN_DATADESC(CMOBAPlayer)
|
|
END_DATADESC()
|
|
|
|
IMPLEMENT_SEND_DT(CMOBAPlayer)
|
|
END_SEND_DT()
|
|
|
|
IMPLEMENT_RECV_DT(CMOBAPlayer)
|
|
NetPropFloat3(m_vMovementVector)
|
|
END_RECV_DT()
|