]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode.qh
Bots: define the API boundaries
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode.qh
index 5e2c4635734d27cdd3717ccfe1d76b4df39e37d5..1e60b203e3caa7226883860198bc9f9e130977df 100644 (file)
@@ -1,45 +1,43 @@
-#ifndef GAMEMODE_H
-#define GAMEMODE_H
+#pragma once
 
-#include "../cl_client.qh"
-#include "../cl_player.qh"
-#include "../cl_impulse.qh"
-#include "../cheats.qh"
-#include "../g_damage.qh"
-#include "../round_handler.qh"
-#include "../scores.qh"
-#include "../scores_rules.qh"
-#include "../teamplay.qh"
+#include <server/cl_client.qh>
+#include <server/cl_player.qh>
+#include <server/cl_impulse.qh>
+#include <server/cheats.qh>
+#include <server/g_damage.qh>
+#include <server/g_world.qh>
+#include <server/round_handler.qh>
+#include <server/scores.qh>
+#include <server/scores_rules.qh>
+#include <server/teamplay.qh>
 
-#include "../bot/bot.qh"
-#include "../bot/navigation.qh"
-#include "../bot/waypoints.qh"
-#include "../bot/havocbot/roles.qh"
+#include <server/bot/api.qh>
 
-#include "../bot/havocbot/havocbot.qh"
+#include <server/command/vote.qh>
 
-#include "../command/vote.qh"
+#include <common/monsters/all.qh>
 
-#include "../../common/monsters/all.qh"
+#include <server/command/common.qh>
 
-#include "../command/common.qh"
+#include <server/weapons/tracing.qh>
+#include <server/weapons/weaponsystem.qh>
 
-#include "../weapons/tracing.qh"
-#include "../weapons/weaponsystem.qh"
+#include <common/physics/player.qh>
+#include <common/effects/qc/all.qh>
+#include <common/deathtypes/all.qh>
+#include <common/notifications/all.qh>
+#include <common/triggers/teleporters.qh>
+#include <common/triggers/subs.qh>
+#include <common/stats.qh>
+#include <common/teams.qh>
 
-#include "../../common/deathtypes/all.qh"
-#include "../../common/notifications.qh"
-#include "../../common/triggers/teleporters.qh"
-#include "../../common/triggers/subs.qh"
-#include "../../common/stats.qh"
-#include "../../common/teams.qh"
-
-#include "../../lib/warpzone/server.qh"
-#include "../../lib/warpzone/util_server.qh"
+#include <lib/warpzone/server.qh>
+#include <lib/warpzone/util_server.qh>
 
 .float lastground;
 float total_players;
 float redalive, bluealive, yellowalive, pinkalive;
-.float redalive_stat, bluealive_stat, yellowalive_stat, pinkalive_stat;
-
-#endif
+.float redalive_stat = _STAT(REDALIVE);
+.float bluealive_stat = _STAT(BLUEALIVE);
+.float yellowalive_stat = _STAT(YELLOWALIVE);
+.float pinkalive_stat = _STAT(PINKALIVE);