#include <common/util.qh>
#include <client/autocvars.qh>
-#include <client/defs.qh>
#include <client/main.qh>
#define CONSTANT_SPEED_DECAY
classfield(BGMScript) .float just_toggled;
+float bgmtime;
+
void BGMScript_InitEntity(entity e);
float doBGMScript(entity e);
#include "cl_cmd.qh"
#include "../autocvars.qh"
-#include "../defs.qh"
#include <client/hud/_mod.qh>
#include <client/hud/panel/quickmenu.qh>
#include <client/hud/panel/radar.qh>
#include <client/hud/panel/scoreboard.qh>
+#include <client/hud/panel/vote.qh>
#include "../main.qh"
#include "../mapvoting.qh"
#include "../miscfunctions.qh"
+#include <client/view.qh>
#include <client/mutators/_mod.qh>
#include "csqcmodel_hooks.qh"
#include "autocvars.qh"
+#include "main.qh"
#include "miscfunctions.qh"
#include <client/mutators/_mod.qh>
#include <client/main.qh>
.int csqcmodel_modelflags;
.int csqcmodel_traileffect;
+.bool csqcmodel_isdead; // used by shownames and miscfunctions (entcs_IsDead) to know when a player is dead
+
.int isplayermodel;
void CSQCModel_Effects_Apply(entity this);
+++ /dev/null
-#pragma once
-
-// Additional OPTIONAL Fields and Globals
-//float intermission;
-// float coop;
-// float deathmatch;
-
-float dmg_take;
-// float dmg_save;
-// vector dmg_origin;
-
-// Darkplaces Render Modifications
-#if 0
-.float alpha;
-.vector colormod;
-.float scale;
-#endif
-
-// Basic variables
-.int enttype; // entity type sent from server
-.int sv_entnum; // entity number sent from server
-.int team;
-.int team_size;
-
-float vid_conheight;
-int binddb;
-
-// Spectating
-// -1 - observing
-// 0 - playing
-// >0 - id of spectated player
-float spectatee_status;
-float spectatee_status_changed_time;
-
-// short mapname
-string shortmapname;
-
-// database for misc stuff
-int tempdb;
-int ClientProgsDB;
-vector hook_shotorigin[4];
-vector lightning_shotorigin[4];
-
-
-#ifdef BLURTEST
-float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
-#endif
-
-float serverprevtime, serverdeltatime;
-
-float ticrate;
-
-.float damageforcescale;
-const float MIN_DAMAGEEXTRARADIUS = 2;
-const float MAX_DAMAGEEXTRARADIUS = 16;
-.float damageextraradius;
-.void(entity this, float thisdmg, int hittype, vector org, vector thisforce) event_damage;
-
-// weapons
-.bool silent;
-
-int w_deathtype;
-float w_issilent, w_random;
-vector w_org, w_backoff;
-
-float bgmtime;
-
-float vortex_charge_movingavg;
-
-int serverflags;
-
-float uid2name_dialog;
-
-float intermission_time;
-
-.bool csqcmodel_isdead; // used by shownames and miscfunctions (entcs_IsDead) to know when a player is dead
-
-#define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
#pragma once
+float vortex_charge_movingavg; // WEAPONTODO
+
vector crosshair_getcolor(entity this, float health_stat);
void TrueAim_Init();
void HUD_Crosshair(entity this);
#include "hud.qh"
-#include <client/defs.qh>
#include <client/items/items.qh>
#include <client/miscfunctions.qh>
#include <client/view.qh>
#include "hud.qh"
#include "panel/scoreboard.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
#include <client/miscfunctions.qh>
#include <client/view.qh>
#include "ammo.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
#include <client/items/items.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <client/view.qh>
#include <common/wepent.qh>
#include "scoreboard.qh"
#include <common/notifications/all.qh>
-#include <client/defs.qh>
#include <client/miscfunctions.qh>
// CenterPrint (#16)
#include "chat.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
#include <client/miscfunctions.qh>
// Chat (#12)
#include "healtharmor.qh"
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <common/deathtypes/all.qh>
#include "infomessages.qh"
#include <client/autocvars.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <common/ent_cs.qh>
#include "physics.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
#include <client/miscfunctions.qh>
#include <client/main.qh>
#include <lib/csqcmodel/cl_player.qh>
#include "powerups.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <common/items/_mod.qh>
#include <common/util.qh>
#include "pressedkeys.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
// Pressed keys (#11)
#include "quickmenu.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <common/ent_cs.qh>
#include <common/minigames/cl_minigames.qh>
#include "racetimer.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
// Race timer (#8)
#include "radar.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <common/ent_cs.qh>
#include <client/mapvoting.qh>
#include "score.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include "scoreboard.qh"
#include <common/ent_cs.qh>
#include "scoreboard.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <client/hud/panel/racetimer.qh>
#include "timer.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
#include <client/miscfunctions.qh>
+#include <client/view.qh>
// Timer (#5)
#include "vote.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
// Vote (#9)
#pragma once
#include "../panel.qh"
+
+float uid2name_dialog;
#include "weapons.qh"
#include <client/autocvars.qh>
-#include <client/defs.qh>
+#include <client/main.qh>
#include <client/miscfunctions.qh>
#include <client/view.qh>
#include <common/wepent.qh>
#include "main.qh"
-#include "defs.qh"
#include <client/items/items.qh>
#include <common/ent_cs.qh>
#include "miscfunctions.qh"
float GetSpeedUnitFactor(int speed_unit);
string GetSpeedUnit(int speed_unit);
+
+.int enttype; // entity type sent from server
+.int sv_entnum; // entity number sent from server
+
+.int team;
+.int team_size;
+
+int binddb;
+
+// Spectating
+// -1 - observing
+// 0 - playing
+// >0 - id of spectated player
+float spectatee_status;
+float spectatee_status_changed_time;
+
+#define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
+
+// short mapname
+string shortmapname;
+
+// database for misc stuff
+int tempdb;
+int ClientProgsDB;
+vector hook_shotorigin[4]; // WEAPONTODO
+vector lightning_shotorigin[4]; // TODO: unused
+
+float serverprevtime, serverdeltatime;
+
+float ticrate;
+
+int serverflags;
#include "mapvoting.qh"
#include "autocvars.qh"
+#include "main.qh"
#include "miscfunctions.qh"
-#include "defs.qh"
#include "hud/_mod.qh"
#include "hud/panel/scoreboard.qh"
#include "miscfunctions.qh"
#include "autocvars.qh"
-#include "defs.qh"
#include "hud/_mod.qh"
+#include "main.qh"
#include <common/command/_mod.qh>
#include "shownames.qh"
#include "autocvars.qh"
+#include "main.qh"
#include "miscfunctions.qh"
#include "resources.qh"
#include "hud/_mod.qh"
#include "autocvars.qh"
#include "hud/_mod.qh"
+#include <client/main.qh>
#include <common/mutators/mutator/waypoints/all.qh>
#include "miscfunctions.qh"
#include "announcer.qh"
#include "hud/_mod.qh"
+#include "main.qh"
#include "mapvoting.qh"
#include "shownames.qh"
#include "hud/panel/scoreboard.qh"
float drawtime;
float unaccounted_damage = 0;
float zoomscript_caught;
+
+float dmg_take;
+// float dmg_save;
+// vector dmg_origin;
+
+#ifdef BLURTEST
+float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
+#endif
+
+float intermission_time;
#include "projectile.qh"
#include "../autocvars.qh"
-#include "../defs.qh"
#include "../main.qh"
#include <client/mutators/_mod.qh>
.float cnt;
.int state;
+.bool silent;
+
void DamageEffect_Think(entity this)
{
// if particle distribution is enabled, slow ticrate by total number of damages
#include <client/mutators/_mod.qh>
#include <common/vehicles/all.qh>
#include <common/weapons/_all.qh>
+
+int w_deathtype;
+float w_issilent, w_random;
+vector w_org, w_backoff;
+
+.float damageforcescale;
+const float MIN_DAMAGEEXTRARADIUS = 2;
+const float MAX_DAMAGEEXTRARADIUS = 16;
+.float damageextraradius;
+.void(entity this, float thisdmg, int hittype, vector org, vector thisforce) event_damage;
#endif
#ifdef SVQC
#include <server/player.qh>
#endif
+ #ifdef CSQC
+ #include <client/main.qh>
+ #endif
REGISTER_NET_TEMP(globalsound)
REGISTER_NET_TEMP(playersound)
#pragma once
#ifdef CSQC
-#include <client/defs.qh>
+#include <client/csqcmodel_hooks.qh>
#endif
REGISTER_NET_LINKED(ENT_CLIENT_ENTCS)
#include "mapinfo.qh"
#if defined(CSQC)
- #include "../client/defs.qh"
#include "util.qh"
#include <common/weapons/_all.qh>
#elif defined(MENUQC)
#include "util.qh"
#if defined(CSQC)
- #include "../client/defs.qh"
+ #include <client/main.qh>
#include "constants.qh"
#elif defined(MENUQC)
#elif defined(SVQC)
#define WEAPONS_ALL_C
#if defined(CSQC)
- #include <client/defs.qh>
#include "../constants.qh"
#include "../stats.qh"
#include <lib/warpzone/anglestransform.qh>
#include "i18n.qh"
#include "vector.qh"
- float vid_conwidth;
+ noref float vid_conwidth;
+ noref float vid_conheight;
void Draw_CylindricLine(vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg)
{