#include "announcer.qh"
+#include <client/hud/panel/centerprint.qh>
#include <client/mutators/_mod.qh>
-
#include <common/notifications/all.qh>
#include <common/stats.qh>
-#include "hud/panel/centerprint.qh"
bool announcer_1min;
bool announcer_5min;
#include "bgmscript.qh"
-#include <common/util.qh>
#include <client/autocvars.qh>
#include <client/main.qh>
+#include <common/util.qh>
#define CONSTANT_SPEED_DECAY
#include "cl_cmd.qh"
+
// ==============================================
// CSQC client commands code, written by Samual
// Last updated: December 28th, 2011
// ==============================================
-#include <common/command/_mod.qh>
-#include "cl_cmd.qh"
-
-#include "../autocvars.qh"
+#include <client/autocvars.qh>
#include <client/draw.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 "../mapvoting.qh"
-#include <client/view.qh>
-
+#include <client/mapvoting.qh>
#include <client/mutators/_mod.qh>
-
-#include <common/minigames/cl_minigames_hud.qh>
-
+#include <client/view.qh>
+#include <common/command/_mod.qh>
#include <common/mapinfo.qh>
+#include <common/minigames/cl_minigames_hud.qh>
void DrawDebugModel(entity this)
{
#include "csqcmodel_hooks.qh"
-#include "autocvars.qh"
+
+#include <client/autocvars.qh>
#include <client/mutators/_mod.qh>
-#include "player_skeleton.qh"
-#include "weapons/projectile.qh"
+#include <client/player_skeleton.qh>
+#include <client/weapons/projectile.qh>
#include <common/animdecide.qh>
+#include <common/effects/all.inc>
+#include <common/effects/all.qh>
#include <common/ent_cs.qh>
#include <common/gamemodes/_mod.qh>
#include <common/mapinfo.qh>
#include <common/physics/movetypes/movetypes.qh>
#include <common/physics/player.qh>
#include <common/viewloc.qh>
-#include <common/effects/all.qh>
-#include <common/effects/all.inc>
#include <lib/csqcmodel/cl_model.qh>
#include <lib/csqcmodel/cl_player.qh>
#include <lib/csqcmodel/interpolate.qh>
#include <client/draw.qh>
#include <client/hud/panel/scoreboard.qh>
#include <client/view.qh>
-
-#include <lib/csqcmodel/cl_player.qh>
#include <common/deathtypes/all.qh>
#include <common/ent_cs.qh>
-#include <common/vehicles/all.qh>
-#include <common/viewloc.qh>
#include <common/mapobjects/trigger/viewloc.qh>
-#include <common/wepent.qh>
#include <common/minigames/cl_minigames.qh>
#include <common/minigames/cl_minigames_hud.qh>
#include <common/mutators/mutator/overkill/oknex.qh>
+#include <common/vehicles/all.qh>
+#include <common/viewloc.qh>
+#include <common/wepent.qh>
+#include <lib/csqcmodel/cl_player.qh>
float pickup_crosshair_time, pickup_crosshair_size;
float hitindication_crosshair_size;
#include "hud.qh"
#include <client/draw.qh>
+#include <client/hud/hud_config.qh>
+#include <client/hud/panel/scoreboard.qh>
#include <client/items/items.qh>
+#include <client/mapvoting.qh>
+#include <client/teamradar.qh>
#include <client/view.qh>
-#include "panel/scoreboard.qh"
-#include "hud_config.qh"
-#include "../mapvoting.qh"
-#include "../teamradar.qh"
-#include <common/minigames/cl_minigames.qh>
#include <common/deathtypes/all.qh>
#include <common/ent_cs.qh>
+#include <common/gamemodes/_mod.qh>
#include <common/items/_mod.qh>
#include <common/mapinfo.qh>
-#include <common/vehicles/all.qh>
-#include <common/vehicles/vehicle/bumblebee.qh>
+#include <common/minigames/cl_minigames.qh>
#include <common/mutators/mutator/waypoints/all.qh>
#include <common/stats.qh>
-#include <lib/csqcmodel/cl_player.qh>
+#include <common/vehicles/all.qh>
+#include <common/vehicles/vehicle/bumblebee.qh>
#include <lib/csqcmodel/cl_model.qh>
-#include <common/gamemodes/_mod.qh>
+#include <lib/csqcmodel/cl_player.qh>
/*
#include "hud_config.qh"
-#include "hud.qh"
-#include "panel/scoreboard.qh"
#include <client/autocvars.qh>
#include <client/draw.qh>
+#include <client/hud/hud.qh>
+#include <client/hud/panel/scoreboard.qh>
#include <client/view.qh>
// Save the config
#include <client/draw.qh>
#include <client/items/items.qh>
#include <client/view.qh>
-#include <common/wepent.qh>
#include <common/mutators/mutator/nades/nades.qh>
+#include <common/wepent.qh>
// Ammo (#1)
#include "centerprint.qh"
-#include "scoreboard.qh"
-#include <common/notifications/all.qh>
#include <client/draw.qh>
+#include <client/hud/panel/scoreboard.qh>
+#include <common/notifications/all.qh>
// CenterPrint (#16)
#include "healtharmor.qh"
#include <client/draw.qh>
-
#include <common/deathtypes/all.qh>
// Health/armor (#3)
#include <client/autocvars.qh>
#include <client/draw.qh>
-
#include <common/ent_cs.qh>
// Info messages (#14)
#include <client/autocvars.qh>
#include <client/draw.qh>
-#include <common/mapinfo.qh>
#include <common/ent_cs.qh>
-#include <common/scores.qh>
#include <common/gamemodes/_mod.qh>
#include <common/gamemodes/gamemode/ctf/cl_ctf.qh>
+#include <common/mapinfo.qh>
+#include <common/scores.qh>
// Mod icons (#10)
#include <client/autocvars.qh>
#include <client/draw.qh>
-#include <common/ent_cs.qh>
-#include <common/minigames/cl_minigames.qh>
#include <client/hud/_mod.qh>
#include <client/mapvoting.qh>
+#include <common/ent_cs.qh>
+#include <common/minigames/cl_minigames.qh>
// QuickMenu (#23)
#include <client/autocvars.qh>
#include <client/draw.qh>
-#include <common/ent_cs.qh>
#include <client/mapvoting.qh>
#include <client/resources.qh>
#include <client/teamradar.qh>
+#include <common/ent_cs.qh>
#include <common/mutators/mutator/waypoints/all.qh>
// Radar (#6)
#include <client/autocvars.qh>
#include <client/draw.qh>
-#include "scoreboard.qh"
+#include <client/hud/panel/scoreboard.qh>
#include <common/ent_cs.qh>
#include <common/scores.qh>
#include <client/autocvars.qh>
#include <client/draw.qh>
+#include <client/hud/panel/quickmenu.qh>
#include <client/hud/panel/racetimer.qh>
#include <client/hud/panel/weapons.qh>
-#include "quickmenu.qh"
-#include <common/ent_cs.qh>
#include <common/constants.qh>
-#include <common/net_linked.qh>
+#include <common/ent_cs.qh>
#include <common/mapinfo.qh>
#include <common/minigames/cl_minigames.qh>
+#include <common/net_linked.qh>
#include <common/scores.qh>
#include <common/stats.qh>
#include <common/teams.qh>
#include "items.qh"
-#include <common/items/_mod.qh>
-
#include <client/main.qh>
+#include <common/items/_mod.qh>
#include <common/physics/movetypes/movetypes.qh>
#include <common/weapons/_all.qh>
#include <lib/csqcmodel/cl_model.qh>
#include "main.qh"
+#include <client/command/cl_cmd.qh>
#include <client/draw.qh>
+#include <client/hud/_mod.qh>
+#include <client/hud/panel/centerprint.qh>
+#include <client/hud/panel/quickmenu.qh>
+#include <client/hud/panel/scoreboard.qh>
#include <client/items/items.qh>
-#include <common/ent_cs.qh>
-#include <common/effects/effect.qh>
-#include <common/effects/qc/_mod.qh>
-#include <common/effects/all.qh>
-#include <common/effects/all.inc>
-#include "hud/_mod.qh"
-#include "command/cl_cmd.qh"
-#include "mapvoting.qh"
+#include <client/mapvoting.qh>
#include <client/mutators/_mod.qh>
-#include "hud/panel/centerprint.qh"
-#include "hud/panel/scoreboard.qh"
-#include "hud/panel/quickmenu.qh"
-#include "shownames.qh"
-#include "view.qh"
-#include "weapons/projectile.qh"
+#include <client/shownames.qh>
+#include <client/view.qh>
+#include <client/weapons/projectile.qh>
#include <common/deathtypes/all.qh>
-#include <common/items/_mod.qh>
+#include <common/effects/all.inc>
+#include <common/effects/all.qh>
+#include <common/effects/effect.qh>
+#include <common/effects/qc/_mod.qh>
+#include <common/ent_cs.qh>
#include <common/gamemodes/gamemode/nexball/cl_nexball.qh>
+#include <common/items/_mod.qh>
#include <common/mapinfo.qh>
+#include <common/mapobjects/_mod.qh>
#include <common/minigames/cl_minigames.qh>
#include <common/minigames/cl_minigames_hud.qh>
#include <common/net_linked.qh>
#include <common/net_notice.qh>
#include <common/scores.qh>
-#include <common/mapobjects/_mod.qh>
#include <common/vehicles/all.qh>
#include <lib/csqcmodel/cl_model.qh>
#include <lib/csqcmodel/interpolate.qh>
#include "mapvoting.qh"
-#include "autocvars.qh"
+#include <client/autocvars.qh>
#include <client/draw.qh>
-#include "hud/_mod.qh"
-#include "hud/panel/scoreboard.qh"
-
+#include <client/hud/_mod.qh>
+#include <client/hud/panel/scoreboard.qh>
#include <common/mapinfo.qh>
#include <common/util.qh>
#include "player_skeleton.qh"
+#include <client/mutators/_mod.qh>
#include <common/physics/movetypes/movetypes.qh>
#include <common/physics/player.qh>
-#include <client/mutators/_mod.qh>
#include <lib/csqcmodel/cl_player.qh>
#include <lib/warpzone/anglestransform.qh>
#include "resources.qh"
+
#include <common/items/item/ammo.qh>
/// \file
#include "shownames.qh"
-#include "autocvars.qh"
+#include <client/autocvars.qh>
#include <client/draw.qh>
-#include "resources.qh"
+#include <client/hud/_mod.qh>
+#include <client/resources.qh>
#include <client/view.qh>
-#include "hud/_mod.qh"
-
-#include <common/ent_cs.qh>
#include <common/constants.qh>
+#include <common/ent_cs.qh>
#include <common/net_linked.qh>
#include <common/teams.qh>
-
#include <lib/csqcmodel/cl_model.qh>
// this.isactive = player is in range and coordinates/status (health and armor) are up to date
#include "teamradar.qh"
-#include "autocvars.qh"
-#include "hud/_mod.qh"
-
+#include <client/autocvars.qh>
+#include <client/hud/_mod.qh>
#include <common/mutators/mutator/waypoints/all.qh>
-
#include <lib/csqcmodel/interpolate.qh>
vector teamradar_3dcoord_to_texcoord(vector in)
#include "view.qh"
-#include "autocvars.qh"
+#include <client/announcer.qh>
+#include <client/autocvars.qh>
+#include <client/csqcmodel_hooks.qh>
#include <client/draw.qh>
-#include "announcer.qh"
-#include "hud/_mod.qh"
-#include "mapvoting.qh"
-#include "shownames.qh"
-#include "hud/panel/scoreboard.qh"
-#include "hud/panel/quickmenu.qh"
-
+#include <client/hud/_mod.qh>
+#include <client/hud/panel/quickmenu.qh>
+#include <client/hud/panel/scoreboard.qh>
+#include <client/mapvoting.qh>
#include <client/mutators/_mod.qh>
-
+#include <client/shownames.qh>
+#include <common/anim.qh>
#include <common/animdecide.qh>
+#include <common/constants.qh>
#include <common/deathtypes/all.qh>
+#include <common/debug.qh>
#include <common/ent_cs.qh>
-#include <common/anim.qh>
-#include <common/constants.qh>
+#include <common/gamemodes/_mod.qh>
+#include <common/mapinfo.qh>
+#include <common/mapobjects/target/music.qh>
+#include <common/mapobjects/trigger/viewloc.qh>
+#include <common/minigames/cl_minigames.qh>
+#include <common/minigames/cl_minigames_hud.qh>
+#include <common/mutators/mutator/waypoints/all.qh>
#include <common/net_linked.qh>
#include <common/net_notice.qh>
-#include <common/debug.qh>
-#include <common/mapinfo.qh>
-#include <common/gamemodes/_mod.qh>
#include <common/physics/player.qh>
#include <common/stats.qh>
-#include <common/mapobjects/target/music.qh>
#include <common/teams.qh>
-#include <common/wepent.qh>
-
-#include <common/weapons/weapon/tuba.qh>
-
#include <common/vehicles/all.qh>
-#include <common/weapons/_all.qh>
-#include <common/mutators/mutator/waypoints/all.qh>
#include <common/viewloc.qh>
-#include <common/mapobjects/trigger/viewloc.qh>
-#include <common/minigames/cl_minigames.qh>
-#include <common/minigames/cl_minigames_hud.qh>
-
-#include <lib/csqcmodel/cl_player.qh>
+#include <common/weapons/_all.qh>
+#include <common/weapons/weapon/tuba.qh>
+#include <common/wepent.qh>
#include <lib/csqcmodel/cl_model.qh>
-#include "csqcmodel_hooks.qh"
-
+#include <lib/csqcmodel/cl_player.qh>
#include <lib/warpzone/client.qh>
#include <lib/warpzone/common.qh>
#include "projectile.qh"
-#include "../autocvars.qh"
+#include <client/autocvars.qh>
#include <client/mutators/_mod.qh>
-
#include <common/constants.qh>
-#include <common/effects/effect.qh>
#include <common/effects/all.qh>
+#include <common/effects/effect.qh>
+#include <common/mutators/mutator/nades/nades.qh>
#include <common/net_linked.qh>
#include <common/physics/movetypes/movetypes.qh>
-
-#include <common/mutators/mutator/nades/nades.qh>
-
#include <lib/csqcmodel/interpolate.qh>
-
#include <lib/warpzone/anglestransform.qh>
.float alpha;
//======================= Global variables ====================================
int autocvar_g_dynamic_handicap; ///< Whether to enable dynamic handicap.
-/// \brief The scale of the handicap. Larget values mean more penalties for
+/// \brief The scale of the handicap. Larger values mean more penalties for
/// strong players and more buffs for weak players.
float autocvar_g_dynamic_handicap_scale;
/// \brief The exponent used to calculate handicap. 1 means linear scale. Values