added command line, added basic character
This commit is contained in:
38
game/client/milmoba/player.cpp
Normal file
38
game/client/milmoba/player.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "baseplayer.h"
|
||||
#include "engine.h"
|
||||
#include "rendering.h"
|
||||
|
||||
class C_MOBAPlayer: public C_BaseEntity
|
||||
{
|
||||
public:
|
||||
virtual void Precache ( void ) override;
|
||||
virtual void Spawn( void ) override;
|
||||
virtual void Destroy( void ) override;
|
||||
virtual void Think( float fDelta ) override;
|
||||
};
|
||||
|
||||
void C_MOBAPlayer::Precache()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void C_MOBAPlayer::Spawn()
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
void C_MOBAPlayer::Destroy()
|
||||
{
|
||||
|
||||
}
|
||||
void C_MOBAPlayer::Think( float fDelta )
|
||||
{
|
||||
if (g_localClient.pBasePlayer == pEntity)
|
||||
{
|
||||
g_cameraView[3][0] = pEntity->m_position[0];
|
||||
g_cameraView[3][1] = pEntity->m_position[1];
|
||||
g_cameraView[3][2] = pEntity->m_position[2]+0.7;
|
||||
}
|
||||
};
|
||||
|
||||
LINK_CLIENT_ENTITY(C_MOBAPlayer, CMOBAPlayer)
|
||||
Reference in New Issue
Block a user