All pastes #577117 Raw Edit

Something

public cpp v1 · immutable
·published 2007-06-19 19:50 UTC
rendered paste body
class PlayerInfo {public:	int index;	vec3_t vVecSpot;		void init( int _entindex) 	{ 		team=0;		iInfo=0;		entinfo.name="\\missing-name\\";		entinfo.ping=0;		entinfo.thisplayer=0;		entinfo.spectator=0;		numTargetSpots=0;		inpvs=0;		alive=false;		entindex = _entindex;		distance = 1000000.0;		damage = 0;		frags=0;		ratio=0;		deaths=0;		headshots=0;		bestplayer = false;	}	/** SHITLIST BOOL HERE **/	bool onShitList;	hud_player_info_t entinfo;	int    team;	int    iInfo;	float  distance;	int   visible;	bool 	bestplayer;	int     numTargetSpots;	vec3_t  TargetSpots[MAX_TARGET_SPOTS];	bool getPVS()   { return inpvs!=0;   }	void clearPVS() { inpvs = 0;         }	void setPVS(int i=cvar.inpvs)   { inpvs = alive ? i : 0; }	void decrPVS()  { if(inpvs) --inpvs; }	void setAlive( bool state=true ) { alive = state; }	bool getAlive()                  { return  alive; }	float getPlayerSpeed(int ax) { }	struct cl_entity_s * getEnt() { return gEngfuncs.GetEntityByIndex(entindex); }	float lastOrg[3];	float lastMsg;	int damage;	int frags;	int headshots;	int deaths;	int roundhs;	int roundKills;	float kdratio;		int ratio;	float damagespot[3];private:	int inpvs;	bool alive;	int entindex;public:	PlayerInfo() { init(0); }};