2004-07-22 12:46:35 +00:00
|
|
|
#ifndef CPLAYER_H
|
|
|
|
#define CPLAYER_H
|
|
|
|
class CPlayer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void PreThink();
|
|
|
|
void PreThink_Post();
|
|
|
|
void PostThink_Post();
|
|
|
|
void Spawn();
|
|
|
|
void ChangeTeam();
|
|
|
|
void ChangeClass(int newclass);
|
|
|
|
void Connect();
|
|
|
|
void Disconnect();
|
|
|
|
void Reset();
|
|
|
|
void Die();
|
|
|
|
int GetClass();
|
|
|
|
bool bot;
|
|
|
|
// Basic engine stuff.
|
|
|
|
edict_t *edict;
|
|
|
|
entvars_t *pev;
|
|
|
|
int oldimpulse; // Store the previous impulse.
|
2004-09-10 13:57:10 +00:00
|
|
|
int olddeadflag;
|
|
|
|
int oldteam;
|
2004-09-10 18:43:37 +00:00
|
|
|
int index() { return ENTINDEX(pev->pContainingEntity); };
|
2004-07-22 12:46:35 +00:00
|
|
|
|
|
|
|
bool connected;
|
2004-07-27 01:15:10 +00:00
|
|
|
REAL fov;
|
|
|
|
bool foved;
|
2004-07-22 12:46:35 +00:00
|
|
|
// Custom model/body/skin
|
|
|
|
bool custommodel;
|
|
|
|
bool customskin;
|
|
|
|
bool custombody;
|
|
|
|
char model[128];
|
|
|
|
int skin;
|
|
|
|
int body;
|
|
|
|
|
|
|
|
// Speed change
|
|
|
|
int speedchange;
|
|
|
|
int maxspeed;
|
|
|
|
|
|
|
|
int iclass;
|
|
|
|
};
|
2004-08-22 12:40:24 +00:00
|
|
|
#endif
|
|
|
|
|