29 lines
442 B
C++
29 lines
442 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 )
|
|
{
|
|
CPhysicsProp::Think(fDelta);
|
|
};
|
|
|
|
LINK_ENTITY_TO_CLASS(player, CMOBAPlayer)
|
|
|
|
BEGIN_DATADESC(CMOBAPlayer)
|
|
END_DATADESC()
|
|
|
|
IMPLEMENT_SEND_DT(CMOBAPlayer)
|
|
END_SEND_DT()
|
|
|
|
IMPLEMENT_EMPTY_RECV_DT(CMOBAPlayer)
|