2008-07-24 22:00:00 +02:00
|
|
|
|
//=======================================================================
|
|
|
|
|
// Copyright XashXT Group 2008 <20>
|
|
|
|
|
// sv_edict.h - server prvm edict
|
|
|
|
|
//=======================================================================
|
|
|
|
|
#ifndef SV_EDICT_H
|
|
|
|
|
#define SV_EDICT_H
|
|
|
|
|
|
|
|
|
|
struct sv_globalvars_s
|
|
|
|
|
{
|
|
|
|
|
int pad[34];
|
|
|
|
|
int pev;
|
|
|
|
|
int other;
|
|
|
|
|
int world;
|
|
|
|
|
float time;
|
|
|
|
|
float frametime;
|
|
|
|
|
float serverflags;
|
|
|
|
|
string_t mapname;
|
|
|
|
|
string_t startspot;
|
|
|
|
|
vec3_t spotoffset;
|
|
|
|
|
float deathmatch;
|
|
|
|
|
float teamplay;
|
|
|
|
|
float coop;
|
|
|
|
|
float total_secrets;
|
|
|
|
|
float found_secrets;
|
|
|
|
|
float total_monsters;
|
|
|
|
|
float killed_monsters;
|
|
|
|
|
vec3_t v_forward;
|
|
|
|
|
vec3_t v_right;
|
|
|
|
|
vec3_t v_up;
|
|
|
|
|
float trace_allsolid;
|
|
|
|
|
float trace_startsolid;
|
|
|
|
|
float trace_fraction;
|
|
|
|
|
float trace_plane_dist;
|
|
|
|
|
vec3_t trace_endpos;
|
|
|
|
|
vec3_t trace_plane_normal;
|
|
|
|
|
float trace_contents;
|
|
|
|
|
float trace_hitgroup;
|
|
|
|
|
float trace_flags;
|
|
|
|
|
int trace_ent;
|
|
|
|
|
func_t CreateAPI;
|
|
|
|
|
func_t StartFrame;
|
|
|
|
|
func_t EndFrame;
|
|
|
|
|
func_t PlayerPreThink;
|
|
|
|
|
func_t PlayerPostThink;
|
|
|
|
|
func_t ClientConnect;
|
|
|
|
|
func_t ClientDisconnect;
|
|
|
|
|
func_t PutClientInServer;
|
|
|
|
|
func_t ClientCommand;
|
|
|
|
|
func_t ClientUserInfoChanged;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct sv_entvars_s
|
|
|
|
|
{
|
|
|
|
|
string_t classname;
|
|
|
|
|
string_t globalname;
|
|
|
|
|
int chain;
|
|
|
|
|
func_t precache;
|
|
|
|
|
func_t activate;
|
|
|
|
|
func_t blocked;
|
|
|
|
|
func_t touch;
|
|
|
|
|
func_t think;
|
|
|
|
|
func_t use;
|
|
|
|
|
vec3_t origin;
|
|
|
|
|
vec3_t angles;
|
|
|
|
|
float modelindex;
|
|
|
|
|
vec3_t old_origin;
|
|
|
|
|
vec3_t old_angles;
|
|
|
|
|
vec3_t velocity;
|
|
|
|
|
vec3_t avelocity;
|
|
|
|
|
vec3_t m_pcentre[3];
|
|
|
|
|
vec3_t m_pmatrix[4];
|
|
|
|
|
vec3_t movedir;
|
|
|
|
|
vec3_t force;
|
|
|
|
|
vec3_t torque;
|
|
|
|
|
vec3_t post_origin;
|
|
|
|
|
vec3_t post_angles;
|
|
|
|
|
vec3_t origin_offset;
|
|
|
|
|
vec3_t absmin;
|
|
|
|
|
vec3_t absmax;
|
|
|
|
|
vec3_t mins;
|
|
|
|
|
vec3_t maxs;
|
|
|
|
|
vec3_t size;
|
|
|
|
|
float mass;
|
|
|
|
|
float solid;
|
2008-09-09 22:00:00 +02:00
|
|
|
|
float contents;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
float movetype;
|
|
|
|
|
float waterlevel;
|
|
|
|
|
float watertype;
|
|
|
|
|
float ltime;
|
|
|
|
|
string_t model;
|
|
|
|
|
float skin;
|
2008-08-02 22:00:00 +02:00
|
|
|
|
float body;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
float frame;
|
|
|
|
|
float speed;
|
2008-08-02 22:00:00 +02:00
|
|
|
|
float sequence;
|
2008-08-05 22:00:00 +02:00
|
|
|
|
float animtime;
|
2008-08-10 22:00:00 +02:00
|
|
|
|
float framerate;
|
2008-11-11 22:00:00 +01:00
|
|
|
|
float style;
|
2008-08-05 22:00:00 +02:00
|
|
|
|
float gaitsequence;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
float effects;
|
|
|
|
|
float renderfx;
|
2008-08-10 22:00:00 +02:00
|
|
|
|
float renderamt;
|
2008-08-09 22:00:00 +02:00
|
|
|
|
float colormap;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
float flags;
|
|
|
|
|
float aiflags;
|
|
|
|
|
float spawnflags;
|
2008-08-09 22:00:00 +02:00
|
|
|
|
float fixangle;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
vec3_t v_angle;
|
2008-08-05 22:00:00 +02:00
|
|
|
|
vec3_t view_ofs;
|
|
|
|
|
vec3_t punchangle;
|
2008-07-30 22:00:00 +02:00
|
|
|
|
float button0;
|
|
|
|
|
float button1;
|
|
|
|
|
float button2;
|
|
|
|
|
float impulse;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
string_t v_model;
|
|
|
|
|
float v_frame;
|
|
|
|
|
float v_body;
|
|
|
|
|
float v_skin;
|
|
|
|
|
float v_sequence;
|
|
|
|
|
string_t p_model;
|
2008-08-09 22:00:00 +02:00
|
|
|
|
float p_sequence;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
float p_frame;
|
|
|
|
|
float p_body;
|
|
|
|
|
float p_skin;
|
|
|
|
|
string_t loopsound;
|
|
|
|
|
float loopsndvol;
|
|
|
|
|
float loopsndattn;
|
|
|
|
|
int owner;
|
|
|
|
|
int enemy;
|
|
|
|
|
int aiment;
|
2008-07-30 22:00:00 +02:00
|
|
|
|
int goalentity;
|
2008-08-09 22:00:00 +02:00
|
|
|
|
float teleport_time;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
float ideal_yaw;
|
|
|
|
|
float yaw_speed;
|
2008-08-09 22:00:00 +02:00
|
|
|
|
float m_flGroundSpeed;
|
|
|
|
|
float m_flFrameRate;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
int groundentity;
|
|
|
|
|
float takedamage;
|
|
|
|
|
float nextthink;
|
|
|
|
|
float gravity;
|
2008-08-09 22:00:00 +02:00
|
|
|
|
float health;
|
2008-07-30 22:00:00 +02:00
|
|
|
|
float frags;
|
2008-07-24 22:00:00 +02:00
|
|
|
|
float team;
|
|
|
|
|
};
|
|
|
|
|
|
2008-11-11 22:00:00 +01:00
|
|
|
|
#define PROG_CRC_SERVER 9691
|
2008-07-24 22:00:00 +02:00
|
|
|
|
|
2007-09-16 22:00:00 +02:00
|
|
|
|
#endif//SV_EDICT_H
|