2009-01-11 09:29:15 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
#include "mod.hpp"
|
|
|
|
|
|
|
|
GAMECONTROLLER_MOD::GAMECONTROLLER_MOD()
|
|
|
|
{
|
2009-01-11 13:23:40 +00:00
|
|
|
// Exchange this to a string that identifies your game mode.
|
|
|
|
// DM, TDM and CTF are reserved for teeworlds original modes.
|
2009-01-11 09:29:15 +00:00
|
|
|
gametype = "MOD";
|
2009-01-11 13:23:40 +00:00
|
|
|
|
2009-01-11 09:29:15 +00:00
|
|
|
//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();
|
|
|
|
}
|