38 lines
863 B
C++
38 lines
863 B
C++
/* both base_player and base_spectator are based off this class */
|
|
class
|
|
base_client:NSSurfacePropEntity
|
|
{
|
|
vector origin_net;
|
|
vector velocity_net;
|
|
|
|
NSXRSpace m_xrSpace;
|
|
NSXRInput m_xrInputHead;
|
|
NSXRInput m_xrInputLeft;
|
|
NSXRInput m_xrInputRight;
|
|
|
|
void(void) base_client;
|
|
|
|
/* final input handling of the client */
|
|
virtual void(void) ClientInput;
|
|
|
|
virtual void(void) PreFrame;
|
|
virtual void(void) PostFrame;
|
|
|
|
virtual bool(void) IsFakeSpectator;
|
|
virtual bool(void) IsRealSpectator;
|
|
virtual bool(void) IsDead;
|
|
virtual bool(void) IsPlayer;
|
|
|
|
virtual void(void) OnRemoveEntity;
|
|
|
|
#ifdef CLIENT
|
|
/* gives the chance to override input variables before networking */
|
|
virtual void(void) ClientInputFrame;
|
|
|
|
/* our camera when we're dead */
|
|
virtual void(void) UpdateDeathcam;
|
|
|
|
/* run every frame before renderscene() */
|
|
virtual float(void) predraw;
|
|
#endif
|
|
}; |