]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/Defs.qc
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / Defs.qc
index 83a99fc6ed38531897ab55525eeae3c5a3be2650..2a6602405431487e211db7f77af93d48fb32353e 100644 (file)
@@ -1,3 +1,11 @@
+#ifndef DEFS_H
+#define DEFS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 //NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
 //MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
 //YOU HAVE BEEN WARNED.
 //
 // system globals
 //
-entity         self;
-entity         other;
-entity         world;
-float          time;
-float          frametime;
+//entity               self;
+//entity               other;
+//entity               world;
+//float                time;
+//float                frametime;
 
-float          player_localentnum;     //the entnum of the VIEW entity
-float          player_localnum;        //the playernum
-float          maxclients;     //a constant filled in by the engine. gah, portability eh?
+//int          player_localentnum;     //the entnum of the VIEW entity
+//int          player_localnum;        //the playernum
+//float                maxclients;     //a constant filled in by the engine. gah, portability eh?
 
-float          clientcommandframe;     //player movement
-float          servercommandframe;     //clientframe echoed off the server
+//float                clientcommandframe;     //player movement
+//float                servercommandframe;     //clientframe echoed off the server
 
-string         mapname;
+//string               mapname;
 
 //
 // global variables set by built in functions
 //
-vector         v_forward, v_up, v_right;       // set by makevectors()
+//vector               v_forward, v_up, v_right;       // set by makevectors()
 
 // set by traceline / tracebox
-float          trace_allsolid;
-float          trace_startsolid;
-float          trace_fraction;
-vector         trace_endpos;
-vector         trace_plane_normal;
-float          trace_plane_dist;
-entity         trace_ent;
-float          trace_inopen;
-float          trace_inwater;
+//float                trace_allsolid;
+//float                trace_startsolid;
+//float                trace_fraction;
+//vector               trace_endpos;
+//vector               trace_plane_normal;
+//float                trace_plane_dist;
+//entity               trace_ent;
+//float                trace_inopen;
+//float                trace_inwater;
 
 //
 // required prog functions
@@ -57,32 +65,32 @@ void()              CSQC_Init;
 void()         CSQC_Shutdown;
 float(float f, float t, float n)       CSQC_InputEvent;
 void(float w, float h)         CSQC_UpdateView;
-float(string s)        CSQC_ConsoleCommand;
+bool(string s) CSQC_ConsoleCommand;
 
 //these fields are read and set by the default player physics
-vector         pmove_org;
-vector         pmove_vel;
-vector         pmove_mins;
-vector         pmove_maxs;
+//vector               pmove_org;
+//vector               pmove_vel;
+//vector               pmove_mins;
+//vector               pmove_maxs;
 //retrieved from the current movement commands (read by player physics)
-float          input_timelength;
-vector         input_angles;
-vector         input_movevalues;       //forwards, right, up.
-float          input_buttons;          //attack, use, jump (default physics only uses jump)
-
-float          movevar_gravity;
-float          movevar_stopspeed;
-float          movevar_maxspeed;
-float          movevar_spectatormaxspeed;      //used by NOCLIP movetypes.
-float          movevar_accelerate;
-float          movevar_airaccelerate;
-float          movevar_wateraccelerate;
-float          movevar_friction;
-float          movevar_waterfriction;
-float          movevar_entgravity;     //the local player's gravity field. Is a multiple (1 is the normal value)
+//float                input_timelength;
+//vector               input_angles;
+//vector               input_movevalues;       //forwards, right, up.
+//int                  input_buttons;          //attack, use, jump (default physics only uses jump)
+
+//float                movevar_gravity;
+//float                movevar_stopspeed;
+//float                movevar_maxspeed;
+//float                movevar_spectatormaxspeed;      //used by NOCLIP movetypes.
+//float                movevar_accelerate;
+//float                movevar_airaccelerate;
+//float                movevar_wateraccelerate;
+//float                movevar_friction;
+//float                movevar_waterfriction;
+//float                movevar_entgravity;     //the local player's gravity field. Is a multiple (1 is the normal value)
 
 //================================================
-void           end_sys_globals;                // flag for structure dumping
+//void         end_sys_globals;                // flag for structure dumping
 //================================================
 
 /*
@@ -96,10 +104,10 @@ void               end_sys_globals;                // flag for structure dumping
 //
 // system fields (*** = do not set in prog code, maintained by C code)
 //
-.float         modelindex;             // *** model index in the precached list
+.int           modelindex;             // *** model index in the precached list
 .vector                absmin, absmax; // *** origin + mins / maxs
 
-.float         entnum; // *** the ent number as on the server
+.int           entnum; // *** the ent number as on the server
 .float         drawmask;
 .void()                predraw;
 
@@ -114,9 +122,9 @@ void                end_sys_globals;                // flag for structure dumping
 
 .string                classname;              // spawn function
 .string                model;
-.float         frame;
-.float         skin;
-.float         effects;
+.int           frame;
+.int           skin;
+.int           effects;
 
 .vector                mins, maxs;             // bounding box extents reletive to origin
 .vector                size;                   // maxs - mins
@@ -134,22 +142,22 @@ void              end_sys_globals;                // flag for structure dumping
 
 .entity        enemy;
 
-.float         flags;
+.int           flags;
 
-.float         colormap;
+.int           colormap;
 
 .entity                owner;          // who launched a missile
 
 //================================================
-void           end_sys_fields;                 // flag for structure dumping
+//void         end_sys_fields;                 // flag for structure dumping
 //================================================
 
 // Additional OPTIONAL Fields and Globals
-float          intermission;
+//float                intermission;
 float          scoreboard_showscores;
 float          scoreboard_showaccuracy;
 .string                message;
-.float renderflags;
+.int           renderflags;
 // float               coop;
 // float               deathmatch;
 
@@ -167,12 +175,12 @@ float             dmg_take;
 
 // Basic variables
 .float enttype; // entity type sent from server
-.float sv_entnum; // entity number sent from server
-.float team;
-.float team_size;
+.int   sv_entnum; // entity number sent from server
+.int team;
+.int team_size;
 
 float vid_conwidth, vid_conheight;
-float binddb;
+int binddb;
 
 // QUALIFYING
 float race_checkpoint;
@@ -220,10 +228,11 @@ float spectatee_status;
 string shortmapname;
 
 // database for misc stuff
-float tempdb;
-float ClientProgsDB;
+int tempdb;
+int ClientProgsDB;
 vector hook_shotorigin[4];
-vector electro_shotorigin[4];
+vector lightning_shotorigin[4];
+
 
 #ifdef BLURTEST
 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
@@ -234,23 +243,24 @@ float servertime, serverprevtime, serverdeltatime;
 float ticrate;
 
 .float damageforcescale;
-#define MIN_DAMAGEEXTRARADIUS 2
-#define MAX_DAMAGEEXTRARADIUS 16
+const float MIN_DAMAGEEXTRARADIUS = 2;
+const float MAX_DAMAGEEXTRARADIUS = 16;
 .float damageextraradius;
-.void(float thisdmg, float hittype, vector org, vector thisforce) event_damage;
+.void(float thisdmg, int hittype, vector org, vector thisforce) event_damage;
 
 // only for Porto
 float angles_held_status;
 vector angles_held;
 
 // weapons
-.float silent;
+.bool silent;
 
-float w_deathtype, w_issilent, w_random;
+int w_deathtype;
+float w_issilent, w_random;
 vector w_org, w_backoff;
 
 float rifle_scope;
-float nex_scope;
+float vortex_scope;
 
 float minelayer_maxmines;
 
@@ -261,14 +271,15 @@ float bgmtime;
 string weaponorder_byimpulse;
 string weaponorder_bypriority;
 
-float nex_charge_movingavg;
+float vortex_charge_movingavg;
 
-float serverflags;
+int serverflags;
 
 float uid2name_dialog;
 
-.float csqcmodel_isdead; // used by shownames and miscfunctions (float getplayerisdead(float) {}) to know when a player is dead
+.bool csqcmodel_isdead; // used by shownames and miscfunctions (float getplayerisdead(float) {}) to know when a player is dead
 
 #define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
 
 float g_balance_porto_secondary;
+#endif
\ No newline at end of file