From: Mario Date: Fri, 16 Oct 2020 11:45:50 +0000 (+1000) Subject: Apply a standard alphabetical sort order to the server side includes and use constant... X-Git-Tag: xonotic-v0.8.5~732 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3cbcea63497633f206816900e4f7e32b833751f0;p=xonotic%2Fxonotic-data.pk3dir.git Apply a standard alphabetical sort order to the server side includes and use constant paths --- diff --git a/qcsrc/server/anticheat.qc b/qcsrc/server/anticheat.qc index 536a3b623..7567563e9 100644 --- a/qcsrc/server/anticheat.qc +++ b/qcsrc/server/anticheat.qc @@ -1,17 +1,16 @@ #include "anticheat.qh" -#include "antilag.qh" -#include "autocvars.qh" -#include +#include +#include #include +#include +#include +#include #include +#include #include #include -#include "command/common.qh" -#include -#include - .float anticheat_jointime; .float anticheat_fixangle_endtime; diff --git a/qcsrc/server/antilag.qc b/qcsrc/server/antilag.qc index d116bc109..c3229adfd 100644 --- a/qcsrc/server/antilag.qc +++ b/qcsrc/server/antilag.qc @@ -1,16 +1,13 @@ #include "antilag.qh" -#if defined(CSQC) -#elif defined(MENUQC) -#elif defined(SVQC) - #include - #include - #include - #include - #include - #include - #include - #include "antilag.qh" -#endif + +#include +#include +#include +#include +#include +#include +#include +#include const int ANTILAG_MAX_ORIGINS = 64; .vector antilag_origins[ANTILAG_MAX_ORIGINS]; diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index fc6755fb0..6b1488bac 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -1,18 +1,13 @@ #include "aim.qh" -#include -#include - -#include "cvars.qh" - -#include "bot.qh" - #include #include - -#include "../../weapons/weaponsystem.qh" - +#include +#include +#include +#include #include +#include // traces multiple trajectories to find one that will impact the target // 'end' vector is the place it aims for, diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index c42a053f4..f6e991770 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -1,46 +1,35 @@ #include "bot.qh" -#include "cvars.qh" - -#include "aim.qh" -#include "navigation.qh" -#include "scripting.qh" -#include "waypoints.qh" - -#include "havocbot/havocbot.qh" -#include "havocbot/scripting.qh" - -#include "../../teamplay.qh" - -#include "../../antilag.qh" -#include "../../autocvars.qh" -#include "../../campaign.qh" -#include "../../client.qh" -#include -#include -#include -#include "../../race.qh" -#include - -#include - -#include "../../weapons/accuracy.qh" - -#include #include -#include #include +#include +#include +#include #include #include - -#include - #include - #include - #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include STATIC_INIT(bot) { bot_calculate_stepheightvec(); } diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index c5a955749..64d3c9153 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -1,39 +1,34 @@ #include "havocbot.qh" -#include "roles.qh" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "../cvars.qh" - -#include "../aim.qh" -#include "../bot.qh" -#include "../navigation.qh" -#include "../scripting.qh" -#include "../waypoints.qh" - #include #include -#include -#include -#include #include -#include - #include #include #include #include - +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include void havocbot_ai(entity this) { diff --git a/qcsrc/server/bot/default/havocbot/roles.qc b/qcsrc/server/bot/default/havocbot/roles.qc index dbc55a90c..94c1cf442 100644 --- a/qcsrc/server/bot/default/havocbot/roles.qc +++ b/qcsrc/server/bot/default/havocbot/roles.qc @@ -1,17 +1,15 @@ #include "roles.qh" -#include #include +#include +#include +#include +#include +#include #include #include #include #include -#include "havocbot.qh" - -#include "../cvars.qh" - -#include "../bot.qh" -#include "../navigation.qh" void havocbot_goalrating_waypoints(entity this, float ratingscale, vector org, float sradius) { diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 8a48efb0e..3068aa77c 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1,22 +1,18 @@ #include "navigation.qh" -#include -#include -#include -#include "cvars.qh" - -#include "bot.qh" -#include "waypoints.qh" - -#include - -#include - #include -#include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include .float speed; diff --git a/qcsrc/server/bot/default/scripting.qc b/qcsrc/server/bot/default/scripting.qc index bad63baa8..a20f98fda 100644 --- a/qcsrc/server/bot/default/scripting.qc +++ b/qcsrc/server/bot/default/scripting.qc @@ -1,17 +1,15 @@ #include "scripting.qh" -#include -#include -#include -#include -#include "cvars.qh" - -#include #include #include +#include +#include +#include #include - -#include "bot.qh" +#include +#include +#include +#include .int state; diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 65da3b94c..12bf39fa0 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -1,28 +1,23 @@ #include "waypoints.qh" -#include -#include -#include -#include -#include -#include "cvars.qh" - -#include "bot.qh" -#include "navigation.qh" - -#include - -#include "../../antilag.qh" - #include #include #include #include #include #include - +#include +#include +#include #include #include +#include +#include +#include +#include +#include +#include +#include .entity spawnpointmodel; void waypoint_unreachable(entity pl) diff --git a/qcsrc/server/campaign.qc b/qcsrc/server/campaign.qc index 2ac3c58d1..a368938c2 100644 --- a/qcsrc/server/campaign.qc +++ b/qcsrc/server/campaign.qc @@ -1,14 +1,12 @@ #include "campaign.qh" +#include #include -#include #include - -#include "cheats.qh" +#include +#include #include -#include "world.qh" - -#include +#include // campaign cvars: // _campaign_index: index of CURRENT map diff --git a/qcsrc/server/cheats.qc b/qcsrc/server/cheats.qc index 75d0e2caf..f87d35d04 100644 --- a/qcsrc/server/cheats.qc +++ b/qcsrc/server/cheats.qc @@ -1,43 +1,31 @@ #include "cheats.qh" -#include -#include -#include -#include -#include -#include - -#include "damage.qh" -#include "clientkill.qh" -#include "player.qh" -#include "race.qh" -#include - -#include - #include "weapons/tracing.qh" - #include #include -#include - -#include - -#include - +#include #include - -#include - +#include #include +#include #include - -#include - +#include +#include +#include +#include +#include +#include #include - #include #include +#include +#include +#include +#include +#include +#include +#include +#include #ifdef NOCHEATS diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index f06f64084..9bcd45dd9 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1,88 +1,69 @@ #include "client.qh" -#include -#include -#include #include -#include "anticheat.qh" -#include "impulse.qh" -#include "player.qh" -#include "ipban.qh" -#include "portals.qh" -#include "teamplay.qh" -#include "spawnpoints.qh" -#include "resources.qh" -#include "damage.qh" -#include "handicap.qh" -#include "hook.qh" -#include -#include "command/common.qh" -#include "command/vote.qh" -#include "clientkill.qh" -#include "cheats.qh" -#include "world.qh" -#include -#include "race.qh" -#include -#include -#include "antilag.qh" -#include "campaign.qh" -#include "command/common.qh" -#include "scores_rules.qh" -#include "weapons/common.qh" - -#include "bot/api.qh" - -#include -#include -#include - -#include "compat/quake3.qh" - #include - +#include +#include +#include +#include +#include #include #include -#include +#include #include +#include #include +#include #include - -#include - -#include "weapons/hitplot.qh" -#include "weapons/selection.qh" -#include "weapons/weaponsystem.qh" - -#include -#include -#include - -#include - -#include - -#include - -#include -#include -#include - -#include #include -#include - #include - -#include - #include - -#include - +#include #include - +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include STATIC_METHOD(Client, Add, void(Client this, int _team)) { diff --git a/qcsrc/server/clientkill.qc b/qcsrc/server/clientkill.qc index 96adde60f..d972d6b08 100644 --- a/qcsrc/server/clientkill.qc +++ b/qcsrc/server/clientkill.qc @@ -1,18 +1,16 @@ #include "clientkill.qh" -#include -#include -#include -#include -#include - -#include "damage.qh" -#include "teamplay.qh" - -#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include void ClientKill_Now_TeamChange(entity this) { diff --git a/qcsrc/server/command/banning.qc b/qcsrc/server/command/banning.qc index 1822f1a81..99a7756e1 100644 --- a/qcsrc/server/command/banning.qc +++ b/qcsrc/server/command/banning.qc @@ -1,17 +1,14 @@ #include "banning.qh" -#include -#include -#include #include -#include "banning.qh" - -#include "common.qh" - -#include "../player.qh" -#include "../ipban.qh" - +#include +#include #include +#include +#include +#include +#include +#include // ===================================================== // Banning and kicking command code, written by Samual diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index ce5557064..106da7720 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -1,50 +1,38 @@ #include "cmd.qh" -#include -#include - #include - -#include "common.qh" -#include "getreplies.qh" -#include "vote.qh" - -#include "../bot/api.qh" - -#include "../campaign.qh" -#include "../cheats.qh" -#include "../client.qh" -#include "../clientkill.qh" -#include "../player.qh" -#include "../ipban.qh" -#include "../mapvoting.qh" -#include "../scores.qh" -#include "../teamplay.qh" - -#include -#include - -#ifdef SVQC - #include -#endif - #include #include #include +#include #include -#include -#include -#include -#include #include - #include - #include -#include #include - +#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // ========================================================= // Server side networked commands code, reworked by Samual diff --git a/qcsrc/server/command/common.qc b/qcsrc/server/command/common.qc index 710c3889f..4e001af73 100644 --- a/qcsrc/server/command/common.qc +++ b/qcsrc/server/command/common.qc @@ -1,20 +1,17 @@ #include "common.qh" -#include -#include -#include -#include -#include -#include - #include -#include "common.qh" - -#include "../scores.qh" - #include #include +#include +#include #include +#include +#include +#include +#include +#include +#include // ==================================================== diff --git a/qcsrc/server/command/getreplies.qc b/qcsrc/server/command/getreplies.qc index 17fcc2d35..8f572a8ec 100644 --- a/qcsrc/server/command/getreplies.qc +++ b/qcsrc/server/command/getreplies.qc @@ -1,24 +1,20 @@ #include "getreplies.qh" +#include +#include +#include +#include +#include +#include +#include #include #include -#include +#include #include #include #include -#include - -#include -#include "getreplies.qh" - #include - -#include -#include -#include -#include - -#include +#include // ========================================================= // Reply messages for common commands, re-worked by Samual diff --git a/qcsrc/server/command/radarmap.qc b/qcsrc/server/command/radarmap.qc index 4d3992239..583916b3d 100644 --- a/qcsrc/server/command/radarmap.qc +++ b/qcsrc/server/command/radarmap.qc @@ -3,14 +3,10 @@ #include #include - -#include "../world.qh" - -#include - #include - #include +#include +#include // =============================================== // Generates radar map images for use in the HUD diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 86755c7e3..9dcec7804 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -1,36 +1,30 @@ #include "sv_cmd.qh" -#include "_mod.qh" +#include #include - -#include "banning.qh" -#include "cmd.qh" -#include "common.qh" -#include "getreplies.qh" -#include "radarmap.qh" - -#include "../anticheat.qh" -#include "../campaign.qh" -#include "../client.qh" -#include "../player.qh" -#include "../world.qh" -#include "../ipban.qh" -#include "../teamplay.qh" -#include - -#include "../bot/api.qh" - -#include #include - -#include -#include #include +#include +#include #include #include #include - -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // used by GameCommand_make_mapinfo() void make_mapinfo_Think(entity this) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 16b636c85..67f683cdf 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -1,32 +1,27 @@ #include "vote.qh" -#include -#include -#include -#include - #include -#include "vote.qh" - -#include "common.qh" - -#include "../damage.qh" -#include -#include -#include "../teamplay.qh" -#include "../race.qh" -#include "../round_handler.qh" -#include "../scores.qh" - -#include -#include - #include -#include +#include #include +#include #include #include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // ============================================= // Server side voting code, reworked by Samual diff --git a/qcsrc/server/compat/halflife.qc b/qcsrc/server/compat/halflife.qc index 74e50137f..32c46156c 100644 --- a/qcsrc/server/compat/halflife.qc +++ b/qcsrc/server/compat/halflife.qc @@ -1,4 +1,5 @@ #include "halflife.qh" + .float roomtype; .float radius; .float pitch; diff --git a/qcsrc/server/compat/quake.qc b/qcsrc/server/compat/quake.qc index 23ae923b0..a49b85f18 100644 --- a/qcsrc/server/compat/quake.qc +++ b/qcsrc/server/compat/quake.qc @@ -1,8 +1,8 @@ #include "quake.qh" -#include #include #include +#include //*********************** //QUAKE 1 ENTITIES - So people can play quake1 maps with the xonotic weapons diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index bda38dcf2..ea951ddce 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -1,19 +1,19 @@ #include "quake3.qh" -#include -#include -#include -#include -#include -#include -#include #include #include -#include #include +#include #include #include +#include #include +#include +#include +#include +#include +#include +#include //*********************** //QUAKE 3 ENTITIES - So people can play quake3 maps with the xonotic weapons diff --git a/qcsrc/server/compat/wop.qc b/qcsrc/server/compat/wop.qc index 784303010..8a559332d 100644 --- a/qcsrc/server/compat/wop.qc +++ b/qcsrc/server/compat/wop.qc @@ -1,9 +1,9 @@ #include "wop.qh" -#include #include -#include #include +#include +#include spawnfunc(item_haste); spawnfunc(item_invis); diff --git a/qcsrc/server/damage.qc b/qcsrc/server/damage.qc index c253c0915..fd2e9f2a6 100644 --- a/qcsrc/server/damage.qc +++ b/qcsrc/server/damage.qc @@ -1,42 +1,42 @@ #include "damage.qh" -#include -#include "bot/api.qh" -#include "hook.qh" -#include -#include -#include -#include -#include -#include -#include "teamplay.qh" -#include "scores.qh" -#include "spawnpoints.qh" -#include -#include -#include "resources.qh" -#include -#include -#include -#include -#include -#include "weapons/accuracy.qh" -#include "weapons/csqcprojectile.qh" -#include "weapons/selection.qh" #include #include +#include +#include +#include +#include #include #include +#include +#include +#include #include #include +#include #include +#include #include #include -#include -#include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include void UpdateFrags(entity player, int f) { diff --git a/qcsrc/server/handicap.qc b/qcsrc/server/handicap.qc index ccb585f01..6d03725f8 100644 --- a/qcsrc/server/handicap.qc +++ b/qcsrc/server/handicap.qc @@ -6,7 +6,7 @@ /// \copyright GNU GPLv2 or any later version. #include -#include "client.qh" +#include .float m_handicap; ///< Holds the handicap value. diff --git a/qcsrc/server/hook.qc b/qcsrc/server/hook.qc index 4fa2385cf..51e580370 100644 --- a/qcsrc/server/hook.qc +++ b/qcsrc/server/hook.qc @@ -1,30 +1,30 @@ #include "hook.qh" -#include -#include -#include -#include -#include -#include +#include #include -#include "weapons/common.qh" -#include "weapons/csqcprojectile.qh" -#include "weapons/weaponsystem.qh" -#include "weapons/selection.qh" -#include "weapons/tracing.qh" -#include "player.qh" -#include "command/common.qh" -#include "command/vote.qh" -#include "round_handler.qh" -#include +#include #include -#include -#include +#include +#include #include -#include +#include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /*============================================ diff --git a/qcsrc/server/impulse.qc b/qcsrc/server/impulse.qc index f42510179..e9ebaec87 100644 --- a/qcsrc/server/impulse.qc +++ b/qcsrc/server/impulse.qc @@ -1,27 +1,22 @@ #include "impulse.qh" -#include "round_handler.qh" - -#include "weapons/throwing.qh" -#include "command/common.qh" -#include "cheats.qh" -#include "client.qh" -#include "clientkill.qh" -#include "damage.qh" -#include -#include "weapons/selection.qh" -#include "weapons/tracing.qh" -#include "weapons/weaponsystem.qh" #include - -#include - #include - -#include -#include - #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include .entity vehicle; diff --git a/qcsrc/server/ipban.qc b/qcsrc/server/ipban.qc index bd3aa75c2..d8e055daf 100644 --- a/qcsrc/server/ipban.qc +++ b/qcsrc/server/ipban.qc @@ -1,12 +1,12 @@ #include "ipban.qh" -#include -#include -#include "autocvars.qh" -#include -#include "command/banning.qh" #include +#include #include +#include +#include +#include +#include /* * Protocol of online ban list: diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index 41c7eca4e..e41b689a7 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -1,38 +1,27 @@ #include "items.qh" +#include +#include #include - +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include - #include - #include - #include - #include -#include - #include #include #include - -#include -#include -#include -#include -#include -#include - -#include - -#include -#include - -#include -#include - -#include +#include bool ItemSend(entity this, entity to, int sf) { diff --git a/qcsrc/server/items/spawning.qc b/qcsrc/server/items/spawning.qc index d2f1530c6..fc8338f38 100644 --- a/qcsrc/server/items/spawning.qc +++ b/qcsrc/server/items/spawning.qc @@ -5,11 +5,11 @@ /// creation of game items. /// \copyright GNU GPLv2 or any later version. +#include +#include #include #include #include -#include -#include .bool m_isloot; ///< Holds whether item is loot. /// \brief Holds whether strength, shield or superweapon timers expire while diff --git a/qcsrc/server/main.qc b/qcsrc/server/main.qc index cd84923ae..13574bf0e 100644 --- a/qcsrc/server/main.qc +++ b/qcsrc/server/main.qc @@ -1,37 +1,30 @@ #include "main.qh" -#include "anticheat.qh" -#include "hook.qh" -#include "damage.qh" -#include "world.qh" -#include "spawnpoints.qh" -#include -#include - -#include "bot/api.qh" - -#include "command/common.qh" - -#include -#include "weapons/csqcprojectile.qh" -#include -#include - -#include #include +#include #include #include #include +#include #include - #include -#include #include - #include - #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include void CreatureFrame_hotliquids(entity this) { diff --git a/qcsrc/server/mapvoting.qc b/qcsrc/server/mapvoting.qc index bb76bde5a..42df54c75 100644 --- a/qcsrc/server/mapvoting.qc +++ b/qcsrc/server/mapvoting.qc @@ -1,20 +1,19 @@ #include "mapvoting.qh" -#include -#include -#include -#include -#include -#include "world.qh" -#include "command/cmd.qh" -#include "command/getreplies.qh" #include -#include #include +#include #include #include +#include #include - +#include +#include +#include +#include +#include +#include +#include // definitions diff --git a/qcsrc/server/mutators/loader.qc b/qcsrc/server/mutators/loader.qc index 0830fb686..8913e7f24 100644 --- a/qcsrc/server/mutators/loader.qc +++ b/qcsrc/server/mutators/loader.qc @@ -1,9 +1,9 @@ #include "loader.qh" -#include #include -#include +#include #include +#include STATIC_INIT_LATE(Gametype) { Gametype g = MapInfo_CurrentGametype(); diff --git a/qcsrc/server/pathlib/expandnode.qc b/qcsrc/server/pathlib/expandnode.qc index e3ab64748..404e257a6 100644 --- a/qcsrc/server/pathlib/expandnode.qc +++ b/qcsrc/server/pathlib/expandnode.qc @@ -1,6 +1,7 @@ #include "expandnode.qh" -#include "pathlib.qh" -#include "utility.qh" + +#include +#include /* vector plib_points2[8]; diff --git a/qcsrc/server/pathlib/main.qc b/qcsrc/server/pathlib/main.qc index 16090e31b..4a5c2c175 100644 --- a/qcsrc/server/pathlib/main.qc +++ b/qcsrc/server/pathlib/main.qc @@ -1,11 +1,11 @@ #include "main.qh" -#include #include -#include "pathlib.qh" -#include "utility.qh" #include -#include "../command/common.qh" +#include +#include +#include +#include void pathlib_deletepath(entity start) { diff --git a/qcsrc/server/pathlib/movenode.qc b/qcsrc/server/pathlib/movenode.qc index 65e4923ea..260fd711f 100644 --- a/qcsrc/server/pathlib/movenode.qc +++ b/qcsrc/server/pathlib/movenode.qc @@ -1,10 +1,10 @@ #include "movenode.qh" #include -#include #include -#include "pathlib.qh" -#include "utility.qh" +#include +#include +#include .vector pos1, pos2; diff --git a/qcsrc/server/pathlib/path_waypoint.qc b/qcsrc/server/pathlib/path_waypoint.qc index 0f1c4e85a..27249d8a1 100644 --- a/qcsrc/server/pathlib/path_waypoint.qc +++ b/qcsrc/server/pathlib/path_waypoint.qc @@ -1,8 +1,8 @@ #include "path_waypoint.qh" -#include "../bot/api.qh" -#include "pathlib.qh" -#include "main.qh" +#include +#include +#include var float pathlib_wpp_open(entity wp, entity child, float cost); diff --git a/qcsrc/server/pathlib/utility.qc b/qcsrc/server/pathlib/utility.qc index 799cd4358..73d109e60 100644 --- a/qcsrc/server/pathlib/utility.qc +++ b/qcsrc/server/pathlib/utility.qc @@ -1,8 +1,8 @@ #include "utility.qh" -#include #include -#include "pathlib.qh" +#include +#include bool location_isok(vector point, bool waterok, bool air_isok) { diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index ed824bd04..28d1ecb20 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -1,46 +1,41 @@ #include "player.qh" -#include -#include "bot/api.qh" -#include "cheats.qh" -#include "client.qh" -#include "clientkill.qh" -#include "damage.qh" -#include -#include "world.qh" -#include "handicap.qh" -#include "portals.qh" -#include "teamplay.qh" -#include -#include "weapons/common.qh" -#include "weapons/throwing.qh" -#include "command/common.qh" -#include "command/vote.qh" -#include #include #include +#include #include -#include #include +#include +#include +#include +#include +#include #include #include -#include -#include - #include - -#include - -#include -#include #include -#include +#include +#include +#include #include - -#include "weapons/weaponstats.qh" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include - -#include +#include void Drop_Special_Items(entity player) { diff --git a/qcsrc/server/portals.qc b/qcsrc/server/portals.qc index 2c5839175..2cf8db682 100644 --- a/qcsrc/server/portals.qc +++ b/qcsrc/server/portals.qc @@ -1,27 +1,27 @@ #include "portals.qh" -#include -#include "hook.qh" -#include "mutators/_mod.qh" -#include -#include #include #include -#include +#include +#include #include #include -#include +#include #include +#include +#include #include +#include #include #include -#include #include -#include -#include -#include -#include +#include +#include #include +#include +#include +#include +#include #define PORTALS_ARE_NOT_SOLID diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index f7769e6eb..f66ca7c8d 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -1,34 +1,34 @@ #include "race.qh" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "client.qh" -#include "cheats.qh" -#include "portals.qh" -#include "scores.qh" -#include "spawnpoints.qh" -#include "bot/api.qh" -#include "command/getreplies.qh" #include -#include #include #include +#include +#include +#include #include +#include #include +#include +#include +#include #include -#include -#include -#include #include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include string uid2name(string myuid) { diff --git a/qcsrc/server/resources.qc b/qcsrc/server/resources.qc index ef3dea1bf..cc301130e 100644 --- a/qcsrc/server/resources.qc +++ b/qcsrc/server/resources.qc @@ -5,7 +5,7 @@ /// \author Lyberta /// \copyright GNU GPLv2 or any later version. -#include "autocvars.qh" +#include #include #include diff --git a/qcsrc/server/round_handler.qc b/qcsrc/server/round_handler.qc index bc0b23b8f..369e75708 100644 --- a/qcsrc/server/round_handler.qc +++ b/qcsrc/server/round_handler.qc @@ -1,10 +1,10 @@ #include "round_handler.qh" -#include -#include "campaign.qh" -#include "command/vote.qh" #include #include +#include +#include +#include void round_handler_Think(entity this) { diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 10ffc9c7e..eefd06fe3 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -1,20 +1,20 @@ #include "scores.qh" -#include "command/common.qh" -#include -#include "client.qh" -#include -#include -#include -#include -#include -#include -#include #include #include +#include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include .entity scorekeeper; entity teamscorekeepers[16]; diff --git a/qcsrc/server/scores_rules.qc b/qcsrc/server/scores_rules.qc index 1ad2640ad..c7c9c3e8d 100644 --- a/qcsrc/server/scores_rules.qc +++ b/qcsrc/server/scores_rules.qc @@ -1,11 +1,11 @@ #include "scores_rules.qh" -#include -#include -#include "client.qh" -#include "scores.qh" #include -#include "teamplay.qh" +#include +#include +#include +#include +#include int ScoreRules_teams; diff --git a/qcsrc/server/spawnpoints.qc b/qcsrc/server/spawnpoints.qc index 61969ae35..3f5bd580a 100644 --- a/qcsrc/server/spawnpoints.qc +++ b/qcsrc/server/spawnpoints.qc @@ -1,23 +1,23 @@ #include "spawnpoints.qh" -#include -#include -#include "race.qh" -#include -#include #include -#include -#include #include #include #include #include +#include +#include +#include #include +#include #include #include +#include #include +#include +#include #include -#include +#include bool SpawnPoint_Send(entity this, entity to, int sf) { diff --git a/qcsrc/server/steerlib.qc b/qcsrc/server/steerlib.qc index 310835c5c..d0cb5a351 100644 --- a/qcsrc/server/steerlib.qc +++ b/qcsrc/server/steerlib.qc @@ -1,9 +1,6 @@ #include "steerlib.qh" -#if defined(CSQC) -#elif defined(MENUQC) -#elif defined(SVQC) - #include "pathlib/utility.qh" -#endif + +#include /** Uniform pull towards a point diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 118900398..2e293bac8 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -1,21 +1,17 @@ #include "teamplay.qh" -#include "client.qh" -#include -#include -#include "race.qh" -#include "scores.qh" -#include "scores_rules.qh" - -#include "bot/api.qh" - -#include "command/vote.qh" - -#include - #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include /// \brief Describes a state of team balance entity. enum diff --git a/qcsrc/server/tests.qh b/qcsrc/server/tests.qh index de9b3579f..2dbcee7ad 100644 --- a/qcsrc/server/tests.qh +++ b/qcsrc/server/tests.qh @@ -1,12 +1,12 @@ #pragma once -#include "autocvars.qh" -#include "client.qh" -#include "command/_mod.qh" -#include "weapons/common.qh" -#include "weapons/selection.qh" #include #include #include -#include #include +#include +#include +#include +#include +#include +#include diff --git a/qcsrc/server/weapons/accuracy.qc b/qcsrc/server/weapons/accuracy.qc index e8f59f53e..7b5220e03 100644 --- a/qcsrc/server/weapons/accuracy.qc +++ b/qcsrc/server/weapons/accuracy.qc @@ -1,14 +1,14 @@ #include "accuracy.qh" -#include -#include -#include #include #include -#include #include #include #include +#include +#include +#include +#include #include int accuracy_byte(float n, float d) diff --git a/qcsrc/server/weapons/common.qc b/qcsrc/server/weapons/common.qc index 2539b7d3b..130609af3 100644 --- a/qcsrc/server/weapons/common.qc +++ b/qcsrc/server/weapons/common.qc @@ -1,20 +1,20 @@ #include "common.qh" -#include -#include -#include -#include -#include -#include #include -#include #include +#include +#include #include #include +#include #include #include +#include #include -#include +#include +#include +#include +#include bool W_DualWielding(entity player) { diff --git a/qcsrc/server/weapons/csqcprojectile.qc b/qcsrc/server/weapons/csqcprojectile.qc index 27a376ec7..2cd09d7fe 100644 --- a/qcsrc/server/weapons/csqcprojectile.qc +++ b/qcsrc/server/weapons/csqcprojectile.qc @@ -1,14 +1,12 @@ #include "csqcprojectile.qh" -#include -#include -#include - -#include "../command/common.qh" - #include #include +#include #include +#include +#include +#include .float csqcprojectile_type; diff --git a/qcsrc/server/weapons/hitplot.qc b/qcsrc/server/weapons/hitplot.qc index 45642f298..c42d88b97 100644 --- a/qcsrc/server/weapons/hitplot.qc +++ b/qcsrc/server/weapons/hitplot.qc @@ -1,13 +1,13 @@ #include "hitplot.qh" -#include -#include +#include #include -#include -#include "../antilag.qh" #include -#include +#include #include +#include +#include +#include vector W_HitPlotUnnormalizedUntransform(vector screenforward, vector screenright, vector screenup, vector v) { diff --git a/qcsrc/server/weapons/selection.qc b/qcsrc/server/weapons/selection.qc index 4a55dab29..5dd3073e9 100644 --- a/qcsrc/server/weapons/selection.qc +++ b/qcsrc/server/weapons/selection.qc @@ -1,18 +1,18 @@ #include "selection.qh" -#include "weaponsystem.qh" -#include -#include #include -#include -#include #include -#include -#include -#include #include #include +#include +#include +#include +#include +#include #include +#include +#include +#include // switch between weapons void Send_WeaponComplain(entity e, float wpn, float type) diff --git a/qcsrc/server/weapons/spawning.qc b/qcsrc/server/weapons/spawning.qc index f555a6ea7..954bcc46c 100644 --- a/qcsrc/server/weapons/spawning.qc +++ b/qcsrc/server/weapons/spawning.qc @@ -1,12 +1,12 @@ #include "spawning.qh" -#include "weaponsystem.qh" -#include "../resources.qh" -#include +#include #include #include +#include +#include +#include #include -#include .bool m_isreplaced; ///< Holds whether the weapon has been replaced. diff --git a/qcsrc/server/weapons/throwing.qc b/qcsrc/server/weapons/throwing.qc index 1a92f3991..41176d753 100644 --- a/qcsrc/server/weapons/throwing.qc +++ b/qcsrc/server/weapons/throwing.qc @@ -1,20 +1,20 @@ #include "throwing.qh" -#include "weaponsystem.qh" -#include "../resources.qh" -#include -#include -#include -#include "../damage.qh" -#include #include #include -#include #include +#include +#include #include #include -#include #include +#include +#include +#include +#include +#include +#include +#include void thrown_wep_think(entity this) { diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index b82095a69..223dd071a 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -1,26 +1,21 @@ #include "tracing.qh" -#include - -#include "accuracy.qh" -#include "common.qh" -#include "hitplot.qh" -#include "weaponsystem.qh" - -#include "../damage.qh" -#include -#include -#include - #include +#include #include +#include #include - #include #include -#include - #include +#include +#include +#include +#include +#include +#include +#include +#include // this function calculates w_shotorg and w_shotdir based on the weapon model // offset, trueaim and antilag, and won't put w_shotorg inside a wall. diff --git a/qcsrc/server/weapons/weaponstats.qc b/qcsrc/server/weapons/weaponstats.qc index f774cb056..47805fea6 100644 --- a/qcsrc/server/weapons/weaponstats.qc +++ b/qcsrc/server/weapons/weaponstats.qc @@ -1,11 +1,10 @@ #include "weaponstats.qh" -#include -#include #include -#include "../world.qh" - #include +#include +#include +#include void WeaponStats_Init() { diff --git a/qcsrc/server/weapons/weaponsystem.qc b/qcsrc/server/weapons/weaponsystem.qc index 487154fe3..5ec837004 100644 --- a/qcsrc/server/weapons/weaponsystem.qc +++ b/qcsrc/server/weapons/weaponsystem.qc @@ -1,28 +1,27 @@ #include "weaponsystem.qh" -#include "selection.qh" - -#include "../command/common.qh" -#include -#include -#include -#include -#include -#include "../round_handler.qh" -#include -#include #include #include #include -#include #include #include +#include #include +#include #include #include -#include -#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include .int state; diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index de5e63e6b..01b2763c2 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -1,52 +1,52 @@ #include "world.qh" -#include "anticheat.qh" -#include "antilag.qh" -#include "bot/api.qh" -#include "campaign.qh" -#include "cheats.qh" -#include "client.qh" -#include "command/common.qh" -#include "command/getreplies.qh" -#include "command/sv_cmd.qh" -#include "command/vote.qh" -#include "hook.qh" -#include -#include -#include "ipban.qh" -#include -#include -#include "mapvoting.qh" -#include -#include "race.qh" -#include "scores.qh" -#include "scores_rules.qh" -#include "spawnpoints.qh" -#include "teamplay.qh" -#include "weapons/weaponstats.qh" -#include #include -#include #include #include #include +#include #include +#include +#include +#include +#include #include #include -#include +#include #include #include #include +#include #include #include -#include -#include -#include -#include #include -#include +#include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include const float LATENCY_THINKRATE = 10; .float latency_sum;