better physics
This commit is contained in:
@@ -5,15 +5,14 @@
|
||||
|
||||
void CMOBAPlayer::Spawn()
|
||||
{
|
||||
SetModel("game/core/models/cube.fmdl");
|
||||
SetThink(Think);
|
||||
m_fTimer = 0;
|
||||
};
|
||||
|
||||
void CMOBAPlayer::Think( float fDelta )
|
||||
{
|
||||
m_fTimer += 1.0/60.0;
|
||||
SetAbsOrigin({m_fTimer, 0, 0});
|
||||
SetAbsAngles(glm_rad(90), m_fTimer, 0);
|
||||
BaseClass::Think(fDelta);
|
||||
SetScale(1);
|
||||
};
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#ifndef MILMOBA_PLAYER_H
|
||||
#define MILMOBA_PLAYER_H
|
||||
|
||||
#include "basemodelentity.h"
|
||||
|
||||
|
||||
class CMOBAPlayer: public CBaseModelEntity
|
||||
class CMOBAPlayer: public CBaseModelEntity
|
||||
{
|
||||
public:
|
||||
DECLARE_CLASS(CMOBAPlayer, CBaseModelEntity);
|
||||
@@ -12,8 +12,6 @@ public:
|
||||
|
||||
virtual void Spawn( void ) override;
|
||||
void Think( float fDelta );
|
||||
|
||||
float m_fTimer;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
0
game/server/milmoba/projectile.cpp
Normal file
0
game/server/milmoba/projectile.cpp
Normal file
0
game/server/milmoba/projectile.h
Normal file
0
game/server/milmoba/projectile.h
Normal file
Reference in New Issue
Block a user