about summary refs log tree commit diff
path: root/src/game/server/gamemodes/mod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/gamemodes/mod.cpp')
-rw-r--r--src/game/server/gamemodes/mod.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/game/server/gamemodes/mod.cpp b/src/game/server/gamemodes/mod.cpp
new file mode 100644
index 00000000..00199305
--- /dev/null
+++ b/src/game/server/gamemodes/mod.cpp
@@ -0,0 +1,17 @@
+/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */

+#include "mod.hpp"

+

+GAMECONTROLLER_MOD::GAMECONTROLLER_MOD()

+{

+	gametype = "MOD";

+	//game_flags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode

+}

+

+void GAMECONTROLLER_MOD::tick()

+{

+	// this is the main part of the gamemode, this function is run every tick

+	do_player_score_wincheck(); // checks for winners, no teams version

+	//do_team_score_wincheck(); // checks for winners, two teams version

+	

+	GAMECONTROLLER::tick();

+}