#include "anticheat.qh"
-#include "antilag.qh"
-#include "autocvars.qh"
-#include <common/weapons/_all.qh>
+#include <common/playerstats.qh>
+#include <common/state.qh>
#include <common/stats.qh>
+#include <common/weapons/_all.qh>
+#include <server/antilag.qh>
+#include <server/autocvars.qh>
#include <server/client.qh>
+#include <server/command/common.qh>
#include <server/gamelog.qh>
#include <server/main.qh>
-#include "command/common.qh"
-#include <common/playerstats.qh>
-#include <common/state.qh>
-
.float anticheat_jointime;
.float anticheat_fixangle_endtime;
#include "antilag.qh"
-#if defined(CSQC)
-#elif defined(MENUQC)
-#elif defined(SVQC)
- #include <common/weapons/_all.qh>
- #include <common/stats.qh>
- #include <server/weapons/common.qh>
- #include <common/state.qh>
- #include <common/monsters/sv_monsters.qh>
- #include <common/vehicles/all.qh>
- #include <lib/warpzone/common.qh>
- #include "antilag.qh"
-#endif
+
+#include <common/monsters/sv_monsters.qh>
+#include <common/state.qh>
+#include <common/stats.qh>
+#include <common/vehicles/all.qh>
+#include <common/weapons/_all.qh>
+#include <lib/warpzone/common.qh>
+#include <server/antilag.qh>
+#include <server/weapons/common.qh>
const int ANTILAG_MAX_ORIGINS = 64;
.vector antilag_origins[ANTILAG_MAX_ORIGINS];
#include "aim.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-
-#include "cvars.qh"
-
-#include "bot.qh"
-
#include <common/physics/player.qh>
#include <common/state.qh>
-
-#include "../../weapons/weaponsystem.qh"
-
+#include <common/stats.qh>
+#include <common/weapons/_all.qh>
+#include <server/bot/default/bot.qh>
+#include <server/bot/default/cvars.qh>
#include <server/mutators/_mod.qh>
+#include <server/weapons/weaponsystem.qh>
// traces multiple trajectories to find one that will impact the target
// 'end' vector is the place it aims for,
#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 <common/stats.qh>
-#include <server/world.qh>
-#include <server/damage.qh>
-#include "../../race.qh"
-#include <server/items/items.qh>
-
-#include <server/mutators/_mod.qh>
-
-#include "../../weapons/accuracy.qh"
-
-#include <common/physics/player.qh>
#include <common/constants.qh>
-#include <common/net_linked.qh>
#include <common/mapinfo.qh>
+#include <common/net_linked.qh>
+#include <common/physics/player.qh>
+#include <common/stats.qh>
#include <common/teams.qh>
#include <common/util.qh>
-
-#include <server/scores_rules.qh>
-
#include <common/weapons/_all.qh>
-
#include <lib/csqcmodel/sv_model.qh>
-
#include <lib/warpzone/common.qh>
#include <lib/warpzone/util_server.qh>
+#include <server/antilag.qh>
+#include <server/autocvars.qh>
+#include <server/bot/default/aim.qh>
+#include <server/bot/default/cvars.qh>
+#include <server/bot/default/havocbot/havocbot.qh>
+#include <server/bot/default/havocbot/scripting.qh>
+#include <server/bot/default/navigation.qh>
+#include <server/bot/default/scripting.qh>
+#include <server/bot/default/waypoints.qh>
+#include <server/campaign.qh>
+#include <server/client.qh>
+#include <server/damage.qh>
+#include <server/items/items.qh>
+#include <server/mutators/_mod.qh>
+#include <server/race.qh>
+#include <server/scores_rules.qh>
+#include <server/teamplay.qh>
+#include <server/weapons/accuracy.qh>
+#include <server/world.qh>
STATIC_INIT(bot) { bot_calculate_stepheightvec(); }
#include "havocbot.qh"
-#include "roles.qh"
-
-#include <server/bot/api.qh>
-#include <server/client.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/damage.qh>
-#include <server/items/items.qh>
-#include <server/mutators/_mod.qh>
-#include <server/weapons/selection.qh>
-#include <server/weapons/weaponsystem.qh>
-#include <server/world.qh>
-#include "../cvars.qh"
-
-#include "../aim.qh"
-#include "../bot.qh"
-#include "../navigation.qh"
-#include "../scripting.qh"
-#include "../waypoints.qh"
-
#include <common/constants.qh>
#include <common/impulses/all.qh>
-#include <common/net_linked.qh>
-#include <common/physics/player.qh>
-#include <common/state.qh>
#include <common/items/_mod.qh>
-#include <common/wepent.qh>
-
#include <common/mapobjects/func/ladder.qh>
#include <common/mapobjects/teleporters.qh>
#include <common/mapobjects/trigger/hurt.qh>
#include <common/mapobjects/trigger/jumppads.qh>
-
+#include <common/net_linked.qh>
+#include <common/physics/player.qh>
+#include <common/state.qh>
+#include <common/stats.qh>
+#include <common/weapons/_all.qh>
+#include <common/wepent.qh>
#include <lib/warpzone/common.qh>
+#include <server/bot/api.qh>
+#include <server/bot/default/aim.qh>
+#include <server/bot/default/bot.qh>
+#include <server/bot/default/cvars.qh>
+#include <server/bot/default/havocbot/roles.qh>
+#include <server/bot/default/navigation.qh>
+#include <server/bot/default/scripting.qh>
+#include <server/bot/default/waypoints.qh>
+#include <server/client.qh>
+#include <server/damage.qh>
+#include <server/items/items.qh>
+#include <server/mutators/_mod.qh>
+#include <server/weapons/selection.qh>
+#include <server/weapons/weaponsystem.qh>
+#include <server/world.qh>
void havocbot_ai(entity this)
{
#include "roles.qh"
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
+#include <common/weapons/_all.qh>
+#include <server/bot/default/bot.qh>
+#include <server/bot/default/cvars.qh>
+#include <server/bot/default/havocbot/havocbot.qh>
+#include <server/bot/default/navigation.qh>
#include <server/items/items.qh>
#include <server/items/spawning.qh>
#include <server/mutators/_mod.qh>
#include <server/resources.qh>
-#include "havocbot.qh"
-
-#include "../cvars.qh"
-
-#include "../bot.qh"
-#include "../navigation.qh"
void havocbot_goalrating_waypoints(entity this, float ratingscale, vector org, float sradius)
{
#include "navigation.qh"
-#include <server/bot/api.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include "cvars.qh"
-
-#include "bot.qh"
-#include "waypoints.qh"
-
-#include <server/items/items.qh>
-
-#include <common/items/_mod.qh>
-
#include <common/constants.qh>
-#include <common/net_linked.qh>
+#include <common/items/_mod.qh>
#include <common/mapobjects/func/ladder.qh>
#include <common/mapobjects/trigger/hurt.qh>
#include <common/mapobjects/trigger/jumppads.qh>
+#include <common/net_linked.qh>
+#include <common/stats.qh>
+#include <common/weapons/_all.qh>
+#include <server/bot/api.qh>
+#include <server/bot/default/bot.qh>
+#include <server/bot/default/cvars.qh>
+#include <server/bot/default/waypoints.qh>
+#include <server/items/items.qh>
.float speed;
#include "scripting.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/weapons/selection.qh>
-#include <server/weapons/weaponsystem.qh>
-#include "cvars.qh"
-
-#include <common/state.qh>
#include <common/gamemodes/gamemode/ctf/sv_ctf.qh>
#include <common/physics/player.qh>
+#include <common/state.qh>
+#include <common/stats.qh>
+#include <common/weapons/_all.qh>
#include <common/wepent.qh>
-
-#include "bot.qh"
+#include <server/bot/default/bot.qh>
+#include <server/bot/default/cvars.qh>
+#include <server/weapons/selection.qh>
+#include <server/weapons/weaponsystem.qh>
.int state;
#include "waypoints.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/items/items.qh>
-#include <server/spawnpoints.qh>
-#include <server/weapons/tracing.qh>
-#include "cvars.qh"
-
-#include "bot.qh"
-#include "navigation.qh"
-
-#include <common/state.qh>
-
-#include "../../antilag.qh"
-
#include <common/constants.qh>
#include <common/debug.qh>
#include <common/gamemodes/_mod.qh>
#include <common/mapobjects/trigger/jumppads.qh>
#include <common/net_linked.qh>
#include <common/physics/player.qh>
-
+#include <common/state.qh>
+#include <common/stats.qh>
+#include <common/weapons/_all.qh>
#include <lib/warpzone/common.qh>
#include <lib/warpzone/util_server.qh>
+#include <server/antilag.qh>
+#include <server/bot/default/bot.qh>
+#include <server/bot/default/cvars.qh>
+#include <server/bot/default/navigation.qh>
+#include <server/items/items.qh>
+#include <server/spawnpoints.qh>
+#include <server/weapons/tracing.qh>
.entity spawnpointmodel;
void waypoint_unreachable(entity pl)
#include "campaign.qh"
+#include <common/campaign_common.qh>
#include <common/mapinfo.qh>
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
-
-#include "cheats.qh"
+#include <common/weapons/_all.qh>
+#include <server/cheats.qh>
#include <server/intermission.qh>
-#include "world.qh"
-
-#include <common/campaign_common.qh>
+#include <server/world.qh>
// campaign cvars:
// _campaign_index: index of CURRENT map
#include "cheats.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <common/effects/all.qh>
-#include <server/resources.qh>
-#include <server/main.qh>
-#include <server/world.qh>
-
-#include "damage.qh"
-#include "clientkill.qh"
-#include "player.qh"
-#include "race.qh"
-#include <common/mapobjects/teleporters.qh>
-
-#include <server/mutators/_mod.qh>
-
#include "weapons/tracing.qh"
-
#include <common/constants.qh>
#include <common/deathtypes/all.qh>
-#include <common/util.qh>
-
-#include <common/physics/player.qh>
-
-#include <common/monsters/_mod.qh>
-
+#include <common/effects/all.qh>
#include <common/items/_mod.qh>
-
-#include <common/weapons/_all.qh>
-
+#include <common/mapobjects/func/breakable.qh>
#include <common/mapobjects/subs.qh>
+#include <common/mapobjects/teleporters.qh>
#include <common/mapobjects/triggers.qh>
-
-#include <common/mapobjects/func/breakable.qh>
-
+#include <common/monsters/_mod.qh>
+#include <common/physics/player.qh>
+#include <common/stats.qh>
+#include <common/util.qh>
+#include <common/weapons/_all.qh>
+#include <common/weapons/_all.qh>
#include <lib/csqcmodel/sv_model.qh>
-
#include <lib/warpzone/anglestransform.qh>
#include <lib/warpzone/util_server.qh>
+#include <server/clientkill.qh>
+#include <server/damage.qh>
+#include <server/main.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
+#include <server/race.qh>
+#include <server/resources.qh>
+#include <server/world.qh>
#ifdef NOCHEATS
#include "client.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/chat.qh>
#include <common/effects/all.qh>
-#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 <server/intermission.qh>
-#include "command/common.qh"
-#include "command/vote.qh"
-#include "clientkill.qh"
-#include "cheats.qh"
-#include "world.qh"
-#include <server/gamelog.qh>
-#include "race.qh"
-#include <server/main.qh>
-#include <server/mutators/_mod.qh>
-#include "antilag.qh"
-#include "campaign.qh"
-#include "command/common.qh"
-#include "scores_rules.qh"
-#include "weapons/common.qh"
-
-#include "bot/api.qh"
-
-#include <common/ent_cs.qh>
-#include <common/wepent.qh>
-#include <common/state.qh>
-
-#include "compat/quake3.qh"
-
#include <common/effects/qc/globalsound.qh>
-
+#include <common/ent_cs.qh>
+#include <common/gamemodes/_mod.qh>
+#include <common/gamemodes/gamemode/nexball/sv_nexball.qh>
+#include <common/items/_mod.qh>
+#include <common/items/inventory.qh>
#include <common/mapobjects/func/conveyor.qh>
#include <common/mapobjects/func/ladder.qh>
-#include <common/mapobjects/teleporters.qh>
+#include <common/mapobjects/subs.qh>
#include <common/mapobjects/target/spawnpoint.qh>
+#include <common/mapobjects/teleporters.qh>
#include <common/mapobjects/trigger/counter.qh>
+#include <common/mapobjects/trigger/secret.qh>
#include <common/mapobjects/trigger/swamp.qh>
-
-#include <common/vehicles/all.qh>
-
-#include "weapons/hitplot.qh"
-#include "weapons/selection.qh"
-#include "weapons/weaponsystem.qh"
-
-#include <common/net_notice.qh>
-#include <common/net_linked.qh>
-#include <common/physics/player.qh>
-
-#include <common/vehicles/sv_vehicles.qh>
-
-#include <common/items/_mod.qh>
-
-#include <common/gamemodes/gamemode/nexball/sv_nexball.qh>
-
-#include <common/mutators/mutator/waypoints/all.qh>
-#include <common/mutators/mutator/instagib/sv_instagib.qh>
-#include <common/gamemodes/_mod.qh>
-
-#include <common/mapobjects/subs.qh>
#include <common/mapobjects/triggers.qh>
-#include <common/mapobjects/trigger/secret.qh>
-
#include <common/minigames/sv_minigames.qh>
-
-#include <common/items/inventory.qh>
-
#include <common/monsters/sv_monsters.qh>
-
-#include <lib/warpzone/server.qh>
-
+#include <common/mutators/mutator/instagib/sv_instagib.qh>
#include <common/mutators/mutator/overkill/oknex.qh>
-
+#include <common/mutators/mutator/waypoints/all.qh>
+#include <common/net_linked.qh>
+#include <common/net_notice.qh>
+#include <common/physics/player.qh>
+#include <common/state.qh>
+#include <common/stats.qh>
+#include <common/vehicles/all.qh>
+#include <common/vehicles/sv_vehicles.qh>
+#include <common/weapons/_all.qh>
#include <common/weapons/weapon/vortex.qh>
+#include <common/wepent.qh>
+#include <lib/warpzone/server.qh>
+#include <server/anticheat.qh>
+#include <server/antilag.qh>
+#include <server/bot/api.qh>
+#include <server/campaign.qh>
+#include <server/chat.qh>
+#include <server/cheats.qh>
+#include <server/clientkill.qh>
+#include <server/command/common.qh>
+#include <server/command/common.qh>
+#include <server/command/vote.qh>
+#include <server/compat/quake3.qh>
+#include <server/damage.qh>
+#include <server/gamelog.qh>
+#include <server/handicap.qh>
+#include <server/hook.qh>
+#include <server/impulse.qh>
+#include <server/intermission.qh>
+#include <server/ipban.qh>
+#include <server/main.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
+#include <server/portals.qh>
+#include <server/race.qh>
+#include <server/resources.qh>
+#include <server/scores_rules.qh>
+#include <server/spawnpoints.qh>
+#include <server/teamplay.qh>
+#include <server/weapons/common.qh>
+#include <server/weapons/hitplot.qh>
+#include <server/weapons/selection.qh>
+#include <server/weapons/weaponsystem.qh>
+#include <server/world.qh>
STATIC_METHOD(Client, Add, void(Client this, int _team))
{
#include "clientkill.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/client.qh>
-#include <server/player.qh>
-#include <server/mutators/_mod.qh>
-
-#include "damage.qh"
-#include "teamplay.qh"
-
-#include <common/vehicles/sv_vehicles.qh>
#include <common/mapobjects/triggers.qh>
#include <common/notifications/all.qh>
#include <common/stats.qh>
+#include <common/stats.qh>
+#include <common/vehicles/sv_vehicles.qh>
+#include <common/weapons/_all.qh>
+#include <server/client.qh>
+#include <server/damage.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
+#include <server/teamplay.qh>
void ClientKill_Now_TeamChange(entity this)
{
#include "banning.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <common/state.qh>
#include <common/command/_mod.qh>
-#include "banning.qh"
-
-#include "common.qh"
-
-#include "../player.qh"
-#include "../ipban.qh"
-
+#include <common/state.qh>
+#include <common/stats.qh>
#include <common/util.qh>
+#include <common/weapons/_all.qh>
+#include <server/command/banning.qh>
+#include <server/command/common.qh>
+#include <server/ipban.qh>
+#include <server/player.qh>
// =====================================================
// Banning and kicking command code, written by Samual
#include "cmd.qh"
-#include <server/chat.qh>
-#include <server/world.qh>
-
#include <common/command/_mod.qh>
-
-#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 <server/mutators/_mod.qh>
-#include <common/gamemodes/_mod.qh>
-
-#ifdef SVQC
- #include <common/vehicles/all.qh>
-#endif
-
#include <common/constants.qh>
#include <common/deathtypes/all.qh>
#include <common/effects/all.qh>
+#include <common/gamemodes/_mod.qh>
#include <common/mapinfo.qh>
-#include <common/notifications/all.qh>
-#include <common/physics/player.qh>
-#include <common/teams.qh>
-#include <common/util.qh>
#include <common/mapobjects/triggers.qh>
-
#include <common/minigames/sv_minigames.qh>
-
#include <common/monsters/_mod.qh>
-#include <common/monsters/sv_spawn.qh>
#include <common/monsters/sv_monsters.qh>
-
+#include <common/monsters/sv_spawn.qh>
+#include <common/notifications/all.qh>
+#include <common/physics/player.qh>
+#include <common/teams.qh>
+#include <common/util.qh>
+#include <common/vehicles/all.qh>
#include <lib/warpzone/common.qh>
+#include <server/bot/api.qh>
+#include <server/campaign.qh>
+#include <server/chat.qh>
+#include <server/cheats.qh>
+#include <server/client.qh>
+#include <server/clientkill.qh>
+#include <server/command/common.qh>
+#include <server/command/getreplies.qh>
+#include <server/command/vote.qh>
+#include <server/ipban.qh>
+#include <server/mapvoting.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
+#include <server/scores.qh>
+#include <server/teamplay.qh>
+#include <server/world.qh>
// =========================================================
// Server side networked commands code, reworked by Samual
#include "common.qh"
-#include <server/chat.qh>
-#include <server/client.qh>
-#include <server/mutators/_mod.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/world.qh>
-
#include <common/command/_mod.qh>
-#include "common.qh"
-
-#include "../scores.qh"
-
#include <common/monsters/_mod.qh>
#include <common/notifications/all.qh>
+#include <common/stats.qh>
+#include <common/weapons/_all.qh>
#include <lib/warpzone/common.qh>
+#include <server/chat.qh>
+#include <server/client.qh>
+#include <server/command/common.qh>
+#include <server/mutators/_mod.qh>
+#include <server/scores.qh>
+#include <server/world.qh>
// ====================================================
#include "getreplies.qh"
+#include <common/command/_mod.qh>
+#include <common/constants.qh>
+#include <common/gamemodes/_mod.qh>
+#include <common/monsters/_mod.qh>
+#include <common/net_linked.qh>
+#include <common/stats.qh>
+#include <common/util.qh>
#include <common/weapons/_all.qh>
#include <common/wepent.qh>
-#include <common/stats.qh>
+#include <server/command/getreplies.qh>
#include <server/intermission.qh>
#include <server/main.qh>
#include <server/mutators/_mod.qh>
-#include <server/world.qh>
-
-#include <common/command/_mod.qh>
-#include "getreplies.qh"
-
#include <server/race.qh>
-
-#include <common/constants.qh>
-#include <common/gamemodes/_mod.qh>
-#include <common/net_linked.qh>
-#include <common/util.qh>
-
-#include <common/monsters/_mod.qh>
+#include <server/world.qh>
// =========================================================
// Reply messages for common commands, re-worked by Samual
#include <common/command/_mod.qh>
#include <common/mapobjects/triggers.qh>
-
-#include "../world.qh"
-
-#include <server/intermission.qh>
-
#include <common/util.qh>
-
#include <lib/csqcmodel/sv_model.qh>
+#include <server/intermission.qh>
+#include <server/world.qh>
// ===============================================
// Generates radar map images for use in the HUD
#include "sv_cmd.qh"
-#include "_mod.qh"
+#include <common/constants.qh>
#include <common/effects/all.qh>
-
-#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 <server/intermission.qh>
-
-#include "../bot/api.qh"
-
-#include <server/mutators/_mod.qh>
#include <common/gamemodes/_mod.qh>
-
-#include <common/constants.qh>
-#include <common/net_linked.qh>
#include <common/mapinfo.qh>
+#include <common/monsters/sv_monsters.qh>
+#include <common/net_linked.qh>
#include <common/notifications/all.qh>
#include <common/teams.qh>
#include <common/util.qh>
-
-#include <common/monsters/sv_monsters.qh>
+#include <server/anticheat.qh>
+#include <server/bot/api.qh>
+#include <server/campaign.qh>
+#include <server/client.qh>
+#include <server/command/_mod.qh>
+#include <server/command/banning.qh>
+#include <server/command/cmd.qh>
+#include <server/command/common.qh>
+#include <server/command/getreplies.qh>
+#include <server/command/radarmap.qh>
+#include <server/intermission.qh>
+#include <server/ipban.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
+#include <server/teamplay.qh>
+#include <server/world.qh>
// used by GameCommand_make_mapinfo()
void make_mapinfo_Think(entity this)
#include "vote.qh"
-#include <server/client.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/gamelog.qh>
-
#include <common/command/_mod.qh>
-#include "vote.qh"
-
-#include "common.qh"
-
-#include "../damage.qh"
-#include <server/intermission.qh>
-#include <server/world.qh>
-#include "../teamplay.qh"
-#include "../race.qh"
-#include "../round_handler.qh"
-#include "../scores.qh"
-
-#include <server/mutators/_mod.qh>
-#include <common/gamemodes/_mod.qh>
-
#include <common/constants.qh>
-#include <common/net_linked.qh>
+#include <common/gamemodes/_mod.qh>
#include <common/mapinfo.qh>
+#include <common/net_linked.qh>
#include <common/notifications/all.qh>
#include <common/playerstats.qh>
+#include <common/stats.qh>
#include <common/util.qh>
+#include <common/weapons/_all.qh>
+#include <server/client.qh>
+#include <server/command/common.qh>
+#include <server/command/vote.qh>
+#include <server/damage.qh>
+#include <server/gamelog.qh>
+#include <server/intermission.qh>
+#include <server/mutators/_mod.qh>
+#include <server/race.qh>
+#include <server/round_handler.qh>
+#include <server/scores.qh>
+#include <server/teamplay.qh>
+#include <server/world.qh>
// =============================================
// Server side voting code, reworked by Samual
#include "halflife.qh"
+
.float roomtype;
.float radius;
.float pitch;
#include "quake.qh"
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
#include <common/weapons/_all.qh>
+#include <common/weapons/_all.qh>
//***********************
//QUAKE 1 ENTITIES - So people can play quake1 maps with the xonotic weapons
#include "quake3.qh"
-#include <server/client.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/items/items.qh>
-#include <server/items/spawning.qh>
-#include <server/resources.qh>
-#include <server/world.qh>
#include <common/gamemodes/_mod.qh>
#include <common/gamemodes/gamemode/ctf/sv_ctf.qh>
-#include <common/mapobjects/triggers.qh>
#include <common/mapobjects/trigger/counter.qh>
+#include <common/mapobjects/triggers.qh>
#include <common/mutators/mutator/buffs/buffs.qh>
#include <common/notifications/all.qh>
+#include <common/stats.qh>
#include <common/weapons/_all.qh>
+#include <common/weapons/_all.qh>
+#include <server/client.qh>
+#include <server/items/items.qh>
+#include <server/items/spawning.qh>
+#include <server/resources.qh>
+#include <server/world.qh>
//***********************
//QUAKE 3 ENTITIES - So people can play quake3 maps with the xonotic weapons
#include "wop.qh"
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
-#include <server/items/spawning.qh>
#include <common/weapons/_all.qh>
+#include <common/weapons/_all.qh>
+#include <server/items/spawning.qh>
spawnfunc(item_haste);
spawnfunc(item_invis);
#include "damage.qh"
-#include <common/effects/all.qh>
-#include "bot/api.qh"
-#include "hook.qh"
-#include <server/client.qh>
-#include <server/gamelog.qh>
-#include <server/items/items.qh>
-#include <server/mutators/_mod.qh>
-#include <server/main.qh>
-#include <server/world.qh>
-#include "teamplay.qh"
-#include "scores.qh"
-#include "spawnpoints.qh"
-#include <common/state.qh>
-#include <common/physics/player.qh>
-#include "resources.qh"
-#include <common/vehicles/all.qh>
-#include <common/items/_mod.qh>
-#include <common/mutators/mutator/waypoints/waypointsprites.qh>
-#include <common/mutators/mutator/instagib/sv_instagib.qh>
-#include <common/mutators/mutator/buffs/buffs.qh>
-#include "weapons/accuracy.qh"
-#include "weapons/csqcprojectile.qh"
-#include "weapons/selection.qh"
#include <common/constants.qh>
#include <common/deathtypes/all.qh>
+#include <common/effects/all.qh>
+#include <common/gamemodes/_mod.qh>
+#include <common/gamemodes/rules.qh>
+#include <common/items/_mod.qh>
#include <common/mapobjects/defs.qh>
#include <common/mapobjects/triggers.qh>
+#include <common/mutators/mutator/buffs/buffs.qh>
+#include <common/mutators/mutator/instagib/sv_instagib.qh>
+#include <common/mutators/mutator/waypoints/waypointsprites.qh>
#include <common/notifications/all.qh>
#include <common/physics/movetypes/movetypes.qh>
+#include <common/physics/player.qh>
#include <common/playerstats.qh>
+#include <common/state.qh>
#include <common/teams.qh>
#include <common/util.qh>
-#include <common/gamemodes/_mod.qh>
-#include <common/gamemodes/rules.qh>
+#include <common/vehicles/all.qh>
#include <common/weapons/_all.qh>
#include <lib/csqcmodel/sv_model.qh>
#include <lib/warpzone/common.qh>
+#include <server/bot/api.qh>
+#include <server/client.qh>
+#include <server/gamelog.qh>
+#include <server/hook.qh>
+#include <server/items/items.qh>
+#include <server/main.qh>
+#include <server/mutators/_mod.qh>
+#include <server/resources.qh>
+#include <server/scores.qh>
+#include <server/spawnpoints.qh>
+#include <server/teamplay.qh>
+#include <server/weapons/accuracy.qh>
+#include <server/weapons/csqcprojectile.qh>
+#include <server/weapons/selection.qh>
+#include <server/world.qh>
void UpdateFrags(entity player, int f)
{
/// \copyright GNU GPLv2 or any later version.
#include <common/state.qh>
-#include "client.qh"
+#include <server/client.qh>
.float m_handicap; ///< Holds the handicap value.
#include "hook.qh"
-#include <server/bot/api.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/damage.qh>
-#include <server/mutators/_mod.qh>
-#include <server/world.qh>
+#include <common/constants.qh>
#include <common/effects/all.qh>
-#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 <common/state.qh>
+#include <common/net_linked.qh>
#include <common/physics/player.qh>
-#include <common/vehicles/all.qh>
-#include <common/constants.qh>
+#include <common/state.qh>
+#include <common/stats.qh>
#include <common/util.qh>
-#include <common/net_linked.qh>
+#include <common/vehicles/all.qh>
+#include <common/weapons/_all.qh>
#include <common/weapons/_all.qh>
#include <lib/warpzone/common.qh>
#include <lib/warpzone/server.qh>
+#include <server/bot/api.qh>
+#include <server/command/common.qh>
+#include <server/command/vote.qh>
+#include <server/damage.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
+#include <server/round_handler.qh>
+#include <server/weapons/common.qh>
+#include <server/weapons/csqcprojectile.qh>
+#include <server/weapons/selection.qh>
+#include <server/weapons/tracing.qh>
+#include <server/weapons/weaponsystem.qh>
+#include <server/world.qh>
/*============================================
#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 <server/mutators/_mod.qh>
-#include "weapons/selection.qh"
-#include "weapons/tracing.qh"
-#include "weapons/weaponsystem.qh"
#include <common/gamemodes/_mod.qh>
-
-#include <common/state.qh>
-
#include <common/minigames/sv_minigames.qh>
-
-#include <common/weapons/_all.qh>
-#include <common/vehicles/sv_vehicles.qh>
-
#include <common/mutators/mutator/waypoints/waypointsprites.qh>
+#include <common/state.qh>
+#include <common/vehicles/sv_vehicles.qh>
+#include <common/weapons/_all.qh>
+#include <server/cheats.qh>
+#include <server/client.qh>
+#include <server/clientkill.qh>
+#include <server/command/common.qh>
+#include <server/damage.qh>
+#include <server/mutators/_mod.qh>
+#include <server/round_handler.qh>
+#include <server/weapons/selection.qh>
+#include <server/weapons/throwing.qh>
+#include <server/weapons/tracing.qh>
+#include <server/weapons/weaponsystem.qh>
.entity vehicle;
#include "ipban.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include "autocvars.qh"
-#include <server/main.qh>
-#include "command/banning.qh"
#include <common/constants.qh>
+#include <common/stats.qh>
#include <common/util.qh>
+#include <common/weapons/_all.qh>
+#include <server/autocvars.qh>
+#include <server/command/banning.qh>
+#include <server/main.qh>
/*
* Protocol of online ban list:
#include "items.qh"
+#include <common/constants.qh>
+#include <common/deathtypes/all.qh>
#include <common/items/_mod.qh>
-
+#include <common/mapobjects/subs.qh>
+#include <common/mapobjects/triggers.qh>
+#include <common/monsters/_mod.qh>
+#include <common/mutators/mutator/buffs/buffs.qh>
+#include <common/mutators/mutator/buffs/sv_buffs.qh>
+#include <common/notifications/all.qh>
+#include <common/util.qh>
+#include <common/weapons/_all.qh>
+#include <common/wepent.qh>
+#include <lib/warpzone/util_server.qh>
#include <server/bot/api.qh>
-
#include <server/command/vote.qh>
-
#include <server/damage.qh>
-
#include <server/mutators/_mod.qh>
-
#include <server/teamplay.qh>
-#include <server/world.qh>
-
#include <server/weapons/common.qh>
#include <server/weapons/selection.qh>
#include <server/weapons/weaponsystem.qh>
-
-#include <common/constants.qh>
-#include <common/deathtypes/all.qh>
-#include <common/notifications/all.qh>
-#include <common/mapobjects/subs.qh>
-#include <common/mapobjects/triggers.qh>
-#include <common/util.qh>
-
-#include <common/monsters/_mod.qh>
-
-#include <common/wepent.qh>
-#include <common/weapons/_all.qh>
-
-#include <common/mutators/mutator/buffs/buffs.qh>
-#include <common/mutators/mutator/buffs/sv_buffs.qh>
-
-#include <lib/warpzone/util_server.qh>
+#include <server/world.qh>
bool ItemSend(entity this, entity to, int sf)
{
/// creation of game items.
/// \copyright GNU GPLv2 or any later version.
+#include <common/mapobjects/subs.qh>
+#include <common/weapons/all.qh>
#include <server/items/items.qh>
#include <server/mutators/_mod.qh>
#include <server/weapons/spawning.qh>
-#include <common/weapons/all.qh>
-#include <common/mapobjects/subs.qh>
.bool m_isloot; ///< Holds whether item is loot.
/// \brief Holds whether strength, shield or superweapon timers expire while
#include "main.qh"
-#include "anticheat.qh"
-#include "hook.qh"
-#include "damage.qh"
-#include "world.qh"
-#include "spawnpoints.qh"
-#include <server/ipban.qh>
-#include <server/gamelog.qh>
-
-#include "bot/api.qh"
-
-#include "command/common.qh"
-
-#include <server/mutators/_mod.qh>
-#include "weapons/csqcprojectile.qh"
-#include <server/weapons/common.qh>
-#include <server/compat/quake3.qh>
-
-#include <common/constants.qh>
#include <common/command/generic.qh>
+#include <common/constants.qh>
#include <common/deathtypes/all.qh>
#include <common/debug.qh>
#include <common/mapinfo.qh>
+#include <common/monsters/sv_monsters.qh>
#include <common/util.qh>
-
#include <common/vehicles/all.qh>
-#include <common/monsters/sv_monsters.qh>
#include <common/weapons/_all.qh>
-
#include <lib/csqcmodel/sv_model.qh>
-
#include <lib/warpzone/common.qh>
#include <lib/warpzone/server.qh>
+#include <server/anticheat.qh>
+#include <server/bot/api.qh>
+#include <server/command/common.qh>
+#include <server/compat/quake3.qh>
+#include <server/damage.qh>
+#include <server/gamelog.qh>
+#include <server/hook.qh>
+#include <server/ipban.qh>
+#include <server/mutators/_mod.qh>
+#include <server/spawnpoints.qh>
+#include <server/weapons/common.qh>
+#include <server/weapons/csqcprojectile.qh>
+#include <server/world.qh>
void CreatureFrame_hotliquids(entity this)
{
#include "mapvoting.qh"
-#include <server/client.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/gamelog.qh>
-#include <server/intermission.qh>
-#include "world.qh"
-#include "command/cmd.qh"
-#include "command/getreplies.qh"
#include <common/constants.qh>
-#include <common/net_linked.qh>
#include <common/mapinfo.qh>
+#include <common/net_linked.qh>
#include <common/playerstats.qh>
#include <common/state.qh>
+#include <common/stats.qh>
#include <common/util.qh>
-
+#include <common/weapons/_all.qh>
+#include <server/client.qh>
+#include <server/command/cmd.qh>
+#include <server/command/getreplies.qh>
+#include <server/gamelog.qh>
+#include <server/intermission.qh>
+#include <server/world.qh>
// definitions
#include "loader.qh"
-#include <common/mutators/base.qh>
#include <common/mapinfo.qh>
-#include <common/weapons/_all.qh>
+#include <common/mutators/base.qh>
#include <common/stats.qh>
+#include <common/weapons/_all.qh>
STATIC_INIT_LATE(Gametype) {
Gametype g = MapInfo_CurrentGametype();
#include "expandnode.qh"
-#include "pathlib.qh"
-#include "utility.qh"
+
+#include <server/pathlib/pathlib.qh>
+#include <server/pathlib/utility.qh>
/*
vector plib_points2[8];
#include "main.qh"
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
-#include "pathlib.qh"
-#include "utility.qh"
#include <common/turrets/util.qh>
-#include "../command/common.qh"
+#include <common/weapons/_all.qh>
+#include <server/command/common.qh>
+#include <server/pathlib/pathlib.qh>
+#include <server/pathlib/utility.qh>
void pathlib_deletepath(entity start)
{
#include "movenode.qh"
#include <common/mapobjects/triggers.qh>
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
-#include "pathlib.qh"
-#include "utility.qh"
+#include <common/weapons/_all.qh>
+#include <server/pathlib/pathlib.qh>
+#include <server/pathlib/utility.qh>
.vector pos1, pos2;
#include "path_waypoint.qh"
-#include "../bot/api.qh"
-#include "pathlib.qh"
-#include "main.qh"
+#include <server/bot/api.qh>
+#include <server/pathlib/main.qh>
+#include <server/pathlib/pathlib.qh>
var float pathlib_wpp_open(entity wp, entity child, float cost);
#include "utility.qh"
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
-#include "pathlib.qh"
+#include <common/weapons/_all.qh>
+#include <server/pathlib/pathlib.qh>
bool location_isok(vector point, bool waterok, bool air_isok)
{
#include "player.qh"
-#include <common/effects/all.qh>
-#include "bot/api.qh"
-#include "cheats.qh"
-#include "client.qh"
-#include "clientkill.qh"
-#include "damage.qh"
-#include <server/mutators/_mod.qh>
-#include "world.qh"
-#include "handicap.qh"
-#include "portals.qh"
-#include "teamplay.qh"
-#include <server/main.qh>
-#include "weapons/common.qh"
-#include "weapons/throwing.qh"
-#include "command/common.qh"
-#include "command/vote.qh"
-#include <common/state.qh>
#include <common/anim.qh>
#include <common/animdecide.qh>
+#include <common/animdecide.qh>
#include <common/csqcmodel_settings.qh>
-#include <common/gamemodes/sv_rules.qh>
#include <common/deathtypes/all.qh>
+#include <common/effects/all.qh>
+#include <common/effects/qc/_mod.qh>
+#include <common/gamemodes/_mod.qh>
+#include <common/gamemodes/sv_rules.qh>
+#include <common/mapobjects/_mod.qh>
#include <common/mapobjects/subs.qh>
#include <common/mapobjects/teleporters.qh>
-#include <common/playerstats.qh>
-#include <lib/csqcmodel/sv_model.qh>
-
#include <common/minigames/sv_minigames.qh>
-
-#include <common/gamemodes/_mod.qh>
-
-#include <common/physics/player.qh>
-#include <common/effects/qc/_mod.qh>
#include <common/mutators/mutator/waypoints/waypointsprites.qh>
-#include <common/mapobjects/_mod.qh>
+#include <common/physics/player.qh>
+#include <common/playerstats.qh>
+#include <common/state.qh>
#include <common/wepent.qh>
-
-#include "weapons/weaponstats.qh"
+#include <lib/csqcmodel/sv_model.qh>
+#include <server/bot/api.qh>
+#include <server/cheats.qh>
+#include <server/client.qh>
+#include <server/clientkill.qh>
+#include <server/command/common.qh>
+#include <server/command/vote.qh>
+#include <server/damage.qh>
+#include <server/handicap.qh>
+#include <server/main.qh>
+#include <server/mutators/_mod.qh>
+#include <server/portals.qh>
+#include <server/teamplay.qh>
+#include <server/weapons/common.qh>
+#include <server/weapons/throwing.qh>
+#include <server/weapons/weaponstats.qh>
#include <server/weapons/weaponsystem.qh>
-
-#include <common/animdecide.qh>
+#include <server/world.qh>
void Drop_Special_Items(entity player)
{
#include "portals.qh"
-#include <common/effects/all.qh>
-#include "hook.qh"
-#include "mutators/_mod.qh"
-#include <server/client.qh>
-#include <server/weapons/common.qh>
#include <common/constants.qh>
#include <common/deathtypes/all.qh>
-#include <common/notifications/all.qh>
+#include <common/effects/all.qh>
+#include <common/mapobjects/subs.qh>
#include <common/mapobjects/teleporters.qh>
#include <common/mapobjects/triggers.qh>
-#include <common/mapobjects/subs.qh>
+#include <common/notifications/all.qh>
#include <common/util.qh>
+#include <common/vehicles/sv_vehicles.qh>
+#include <common/vehicles/vehicle.qh>
#include <common/weapons/_all.qh>
+#include <common/weapons/weapon/porto.qh>
#include <lib/csqcmodel/sv_model.qh>
#include <lib/warpzone/anglestransform.qh>
-#include <lib/warpzone/util_server.qh>
#include <lib/warpzone/common.qh>
-#include <common/vehicles/vehicle.qh>
-#include <common/vehicles/sv_vehicles.qh>
-#include <common/weapons/weapon/porto.qh>
-#include <server/player.qh>
+#include <lib/warpzone/util_server.qh>
+#include <server/client.qh>
#include <server/damage.qh>
+#include <server/hook.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
+#include <server/weapons/common.qh>
#define PORTALS_ARE_NOT_SOLID
#include "race.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/damage.qh>
-#include <server/gamelog.qh>
-#include <server/intermission.qh>
-#include <server/main.qh>
-#include <server/mutators/_mod.qh>
-#include <server/world.qh>
-#include <server/weapons/common.qh>
-#include "client.qh"
-#include "cheats.qh"
-#include "portals.qh"
-#include "scores.qh"
-#include "spawnpoints.qh"
-#include "bot/api.qh"
-#include "command/getreplies.qh"
#include <common/deathtypes/all.qh>
-#include <common/notifications/all.qh>
#include <common/gamemodes/_mod.qh>
#include <common/gamemodes/rules.qh>
+#include <common/mapobjects/subs.qh>
+#include <common/mapobjects/triggers.qh>
+#include <common/mutators/mutator/waypoints/waypointsprites.qh>
#include <common/net_linked.qh>
+#include <common/notifications/all.qh>
#include <common/state.qh>
+#include <common/stats.qh>
+#include <common/vehicles/sv_vehicles.qh>
+#include <common/weapons/_all.qh>
#include <common/weapons/weapon/porto.qh>
-#include <common/mapobjects/subs.qh>
-#include <common/mapobjects/triggers.qh>
-#include <lib/warpzone/util_server.qh>
#include <lib/warpzone/common.qh>
-#include <common/vehicles/sv_vehicles.qh>
-#include <common/mutators/mutator/waypoints/waypointsprites.qh>
+#include <lib/warpzone/util_server.qh>
+#include <server/bot/api.qh>
+#include <server/cheats.qh>
+#include <server/client.qh>
+#include <server/command/getreplies.qh>
+#include <server/damage.qh>
+#include <server/gamelog.qh>
+#include <server/intermission.qh>
+#include <server/main.qh>
+#include <server/mutators/_mod.qh>
+#include <server/portals.qh>
+#include <server/scores.qh>
+#include <server/spawnpoints.qh>
+#include <server/weapons/common.qh>
+#include <server/world.qh>
string uid2name(string myuid)
{
/// \author Lyberta
/// \copyright GNU GPLv2 or any later version.
-#include "autocvars.qh"
+#include <server/autocvars.qh>
#include <server/mutators/_mod.qh>
#include <server/world.qh>
#include "round_handler.qh"
-#include <server/world.qh>
-#include "campaign.qh"
-#include "command/vote.qh"
#include <common/mapobjects/triggers.qh>
#include <common/util.qh>
+#include <server/campaign.qh>
+#include <server/command/vote.qh>
+#include <server/world.qh>
void round_handler_Think(entity this)
{
#include "scores.qh"
-#include "command/common.qh"
-#include <common/weapons/_all.qh>
-#include "client.qh"
-#include <server/intermission.qh>
-#include <server/world.qh>
-#include <server/mutators/_mod.qh>
-#include <server/round_handler.qh>
-#include <common/net_linked.qh>
-#include <common/playerstats.qh>
-#include <common/teams.qh>
#include <common/mapinfo.qh>
#include <common/mutators/base.qh>
+#include <common/net_linked.qh>
+#include <common/playerstats.qh>
#include <common/scores.qh>
#include <common/state.qh>
#include <common/stats.qh>
+#include <common/teams.qh>
+#include <common/weapons/_all.qh>
+#include <server/client.qh>
+#include <server/command/common.qh>
+#include <server/intermission.qh>
+#include <server/mutators/_mod.qh>
+#include <server/round_handler.qh>
+#include <server/world.qh>
.entity scorekeeper;
entity teamscorekeepers[16];
#include "scores_rules.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include "client.qh"
-#include "scores.qh"
#include <common/gamemodes/rules.qh>
-#include "teamplay.qh"
+#include <common/stats.qh>
+#include <common/weapons/_all.qh>
+#include <server/client.qh>
+#include <server/scores.qh>
+#include <server/teamplay.qh>
int ScoreRules_teams;
#include "spawnpoints.qh"
-#include <server/mutators/_mod.qh>
-#include <server/world.qh>
-#include "race.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
#include <common/constants.qh>
-#include <common/net_linked.qh>
-#include <common/teams.qh>
#include <common/gamemodes/_mod.qh>
#include <common/mapobjects/subs.qh>
#include <common/mapobjects/target/spawnpoint.qh>
#include <common/mapobjects/triggers.qh>
+#include <common/net_linked.qh>
+#include <common/stats.qh>
+#include <common/teams.qh>
#include <common/util.qh>
+#include <common/weapons/_all.qh>
#include <lib/warpzone/common.qh>
#include <lib/warpzone/util_server.qh>
+#include <server/command/vote.qh>
#include <server/intermission.qh>
+#include <server/mutators/_mod.qh>
+#include <server/race.qh>
#include <server/utils.qh>
-#include <server/command/vote.qh>
+#include <server/world.qh>
bool SpawnPoint_Send(entity this, entity to, int sf)
{
#include "steerlib.qh"
-#if defined(CSQC)
-#elif defined(MENUQC)
-#elif defined(SVQC)
- #include "pathlib/utility.qh"
-#endif
+
+#include <server/pathlib/utility.qh>
/**
Uniform pull towards a point
#include "teamplay.qh"
-#include "client.qh"
-#include <server/gamelog.qh>
-#include <server/damage.qh>
-#include "race.qh"
-#include "scores.qh"
-#include "scores_rules.qh"
-
-#include "bot/api.qh"
-
-#include "command/vote.qh"
-
-#include <server/mutators/_mod.qh>
-
#include <common/deathtypes/all.qh>
#include <common/gamemodes/_mod.qh>
#include <common/teams.qh>
+#include <server/bot/api.qh>
+#include <server/client.qh>
+#include <server/command/vote.qh>
+#include <server/damage.qh>
+#include <server/gamelog.qh>
+#include <server/mutators/_mod.qh>
+#include <server/race.qh>
+#include <server/scores.qh>
+#include <server/scores_rules.qh>
/// \brief Describes a state of team balance entity.
enum
#pragma once
-#include "autocvars.qh"
-#include "client.qh"
-#include "command/_mod.qh"
-#include "weapons/common.qh"
-#include "weapons/selection.qh"
#include <common/items/item.qh>
#include <common/mapobjects/defs.qh>
#include <common/physics/player.qh>
-#include <common/weapons/_all.qh>
#include <common/vehicles/all.qh>
+#include <common/weapons/_all.qh>
+#include <server/autocvars.qh>
+#include <server/client.qh>
+#include <server/command/_mod.qh>
+#include <server/weapons/common.qh>
+#include <server/weapons/selection.qh>
#include "accuracy.qh"
-#include <server/client.qh>
-#include <server/mutators/_mod.qh>
-#include <server/damage.qh>
#include <common/constants.qh>
#include <common/net_linked.qh>
-#include <server/player.qh>
#include <common/teams.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
+#include <server/client.qh>
+#include <server/damage.qh>
+#include <server/mutators/_mod.qh>
+#include <server/player.qh>
#include <server/world.qh>
int accuracy_byte(float n, float d)
#include "common.qh"
-#include <server/command/common.qh>
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/damage.qh>
-#include <server/items/items.qh>
-#include <server/mutators/_mod.qh>
#include <common/constants.qh>
-#include <common/net_linked.qh>
#include <common/deathtypes/all.qh>
+#include <common/items/_mod.qh>
+#include <common/net_linked.qh>
#include <common/notifications/all.qh>
#include <common/state.qh>
+#include <common/stats.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
+#include <common/weapons/_all.qh>
#include <common/wepent.qh>
-#include <common/items/_mod.qh>
+#include <server/command/common.qh>
+#include <server/damage.qh>
+#include <server/items/items.qh>
+#include <server/mutators/_mod.qh>
bool W_DualWielding(entity player)
{
#include "csqcprojectile.qh"
-#include <common/weapons/_all.qh>
-#include <common/stats.qh>
-#include <server/items/items.qh>
-
-#include "../command/common.qh"
-
#include <common/constants.qh>
#include <common/net_linked.qh>
+#include <common/stats.qh>
#include <common/weapons/_all.qh>
+#include <common/weapons/_all.qh>
+#include <server/command/common.qh>
+#include <server/items/items.qh>
.float csqcprojectile_type;
#include "hitplot.qh"
-#include <server/client.qh>
-#include <common/weapons/_all.qh>
+#include <common/state.qh>
#include <common/stats.qh>
-#include <server/world.qh>
-#include "../antilag.qh"
#include <common/weapons/_all.qh>
-#include <common/state.qh>
+#include <common/weapons/_all.qh>
#include <common/wepent.qh>
+#include <server/antilag.qh>
+#include <server/client.qh>
+#include <server/world.qh>
vector W_HitPlotUnnormalizedUntransform(vector screenforward, vector screenright, vector screenup, vector v)
{
#include "selection.qh"
-#include "weaponsystem.qh"
-#include <server/items/items.qh>
-#include <server/items/spawning.qh>
#include <common/constants.qh>
-#include <common/net_linked.qh>
-#include <common/util.qh>
#include <common/items/item.qh>
-#include <common/weapons/_all.qh>
-#include <common/replicate.qh>
-#include <common/state.qh>
#include <common/mapobjects/triggers.qh>
#include <common/mutators/mutator/waypoints/waypointsprites.qh>
+#include <common/net_linked.qh>
+#include <common/replicate.qh>
+#include <common/state.qh>
+#include <common/util.qh>
+#include <common/weapons/_all.qh>
#include <common/wepent.qh>
+#include <server/items/items.qh>
+#include <server/items/spawning.qh>
+#include <server/weapons/weaponsystem.qh>
// switch between weapons
void Send_WeaponComplain(entity e, float wpn, float type)
#include "spawning.qh"
-#include "weaponsystem.qh"
-#include "../resources.qh"
-#include <server/mutators/_mod.qh>
+#include <common/weapons/_all.qh>
#include <server/items/items.qh>
#include <server/items/spawning.qh>
+#include <server/mutators/_mod.qh>
+#include <server/resources.qh>
+#include <server/weapons/weaponsystem.qh>
#include <server/world.qh>
-#include <common/weapons/_all.qh>
.bool m_isreplaced; ///< Holds whether the weapon has been replaced.
#include "throwing.qh"
-#include "weaponsystem.qh"
-#include "../resources.qh"
-#include <server/items/spawning.qh>
-#include <server/mutators/_mod.qh>
-#include <server/items/items.qh>
-#include "../damage.qh"
-#include <server/world.qh>
#include <common/items/item.qh>
#include <common/mapinfo.qh>
-#include <common/notifications/all.qh>
#include <common/mapobjects/subs.qh>
+#include <common/notifications/all.qh>
+#include <common/state.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
-#include <common/state.qh>
#include <common/wepent.qh>
+#include <server/damage.qh>
+#include <server/items/items.qh>
+#include <server/items/spawning.qh>
+#include <server/mutators/_mod.qh>
+#include <server/resources.qh>
+#include <server/weapons/weaponsystem.qh>
+#include <server/world.qh>
void thrown_wep_think(entity this)
{
#include "tracing.qh"
-#include <common/effects/all.qh>
-
-#include "accuracy.qh"
-#include "common.qh"
-#include "hitplot.qh"
-#include "weaponsystem.qh"
-
-#include "../damage.qh"
-#include <server/main.qh>
-#include <server/mutators/_mod.qh>
-#include <server/antilag.qh>
-
#include <common/constants.qh>
+#include <common/effects/all.qh>
#include <common/net_linked.qh>
+#include <common/state.qh>
#include <common/util.qh>
-
#include <common/weapons/_all.qh>
#include <common/wepent.qh>
-#include <common/state.qh>
-
#include <lib/warpzone/common.qh>
+#include <server/antilag.qh>
+#include <server/damage.qh>
+#include <server/main.qh>
+#include <server/mutators/_mod.qh>
+#include <server/weapons/accuracy.qh>
+#include <server/weapons/common.qh>
+#include <server/weapons/hitplot.qh>
+#include <server/weapons/weaponsystem.qh>
// 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.
#include "weaponstats.qh"
-#include <server/intermission.qh>
-#include <common/weapons/_all.qh>
#include <common/stats.qh>
-#include "../world.qh"
-
#include <common/weapons/_all.qh>
+#include <common/weapons/_all.qh>
+#include <server/intermission.qh>
+#include <server/world.qh>
void WeaponStats_Init()
{
#include "weaponsystem.qh"
-#include "selection.qh"
-
-#include "../command/common.qh"
-#include <server/client.qh>
-#include <server/damage.qh>
-#include <server/world.qh>
-#include <server/items/items.qh>
-#include <server/mutators/_mod.qh>
-#include "../round_handler.qh"
-#include <server/cheats.qh>
-#include <server/resources.qh>
#include <common/animdecide.qh>
#include <common/constants.qh>
#include <common/items/_mod.qh>
-#include <common/net_linked.qh>
#include <common/mapobjects/platforms.qh>
#include <common/monsters/_mod.qh>
+#include <common/net_linked.qh>
#include <common/notifications/all.qh>
+#include <common/state.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
-#include <common/state.qh>
-#include <lib/csqcmodel/sv_model.qh>
#include <common/wepent.qh>
+#include <lib/csqcmodel/sv_model.qh>
+#include <server/cheats.qh>
+#include <server/client.qh>
+#include <server/command/common.qh>
+#include <server/damage.qh>
+#include <server/items/items.qh>
+#include <server/mutators/_mod.qh>
+#include <server/resources.qh>
+#include <server/round_handler.qh>
+#include <server/weapons/selection.qh>
+#include <server/world.qh>
.int state;
#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 <server/gamelog.qh>
-#include <server/damage.qh>
-#include "ipban.qh"
-#include <server/intermission.qh>
-#include <server/main.qh>
-#include "mapvoting.qh"
-#include <server/mutators/_mod.qh>
-#include "race.qh"
-#include "scores.qh"
-#include "scores_rules.qh"
-#include "spawnpoints.qh"
-#include "teamplay.qh"
-#include "weapons/weaponstats.qh"
-#include <server/weapons/common.qh>
#include <common/constants.qh>
-#include <common/net_linked.qh>
#include <common/deathtypes/all.qh>
#include <common/gamemodes/_mod.qh>
#include <common/gamemodes/sv_rules.qh>
+#include <common/items/_mod.qh>
#include <common/mapinfo.qh>
+#include <common/mapobjects/target/music.qh>
+#include <common/mapobjects/trigger/hurt.qh>
+#include <common/mapobjects/trigger/secret.qh>
+#include <common/mapobjects/triggers.qh>
#include <common/monsters/_mod.qh>
#include <common/monsters/sv_monsters.qh>
-#include <common/vehicles/all.qh>
+#include <common/net_linked.qh>
#include <common/notifications/all.qh>
#include <common/physics/player.qh>
#include <common/playerstats.qh>
+#include <common/state.qh>
#include <common/stats.qh>
#include <common/teams.qh>
-#include <common/mapobjects/triggers.qh>
-#include <common/mapobjects/trigger/hurt.qh>
-#include <common/mapobjects/trigger/secret.qh>
-#include <common/mapobjects/target/music.qh>
#include <common/util.qh>
-#include <common/items/_mod.qh>
+#include <common/vehicles/all.qh>
#include <common/weapons/_all.qh>
-#include <common/state.qh>
+#include <server/anticheat.qh>
+#include <server/antilag.qh>
+#include <server/bot/api.qh>
+#include <server/campaign.qh>
+#include <server/cheats.qh>
+#include <server/client.qh>
+#include <server/command/common.qh>
+#include <server/command/getreplies.qh>
+#include <server/command/sv_cmd.qh>
+#include <server/command/vote.qh>
+#include <server/damage.qh>
+#include <server/gamelog.qh>
+#include <server/hook.qh>
+#include <server/intermission.qh>
+#include <server/ipban.qh>
+#include <server/main.qh>
+#include <server/mapvoting.qh>
+#include <server/mutators/_mod.qh>
+#include <server/race.qh>
+#include <server/scores.qh>
+#include <server/scores_rules.qh>
+#include <server/spawnpoints.qh>
+#include <server/teamplay.qh>
+#include <server/weapons/common.qh>
+#include <server/weapons/weaponstats.qh>
const float LATENCY_THINKRATE = 10;
.float latency_sum;