Files
funnygame/game/server/milmoba/player.cpp
2026-03-01 23:06:28 +02:00

29 lines
442 B
C++

#include "player.h"
#include "game.h"
void CMOBAPlayer::Spawn()
{
SetThink(Think);
};
void CMOBAPlayer::Think( float fDelta )
{
m_fTimer += 1.0/60.0;
SetAbsOrigin({m_fTimer, 0, 0});
SetAbsAngles(glm_rad(90), m_fTimer, 0);
SetScale(1);
};
LINK_ENTITY_TO_CLASS(player, CMOBAPlayer)
BEGIN_DATADESC(CMOBAPlayer)
END_DATADESC()
IMPLEMENT_SEND_DT(CMOBAPlayer)
NetPropFloat(m_fTimer)
END_SEND_DT()
IMPLEMENT_EMPTY_RECV_DT(CMOBAPlayer)