X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_world.qh;h=da950f18575e28a410fbed9955b90a0a5ced4ed7;hp=3a5e5d5ac76b4d805a6ca9bde51d0cb219436d46;hb=13832240e226eba119844d7bd02ca51b617e586a;hpb=e921ae9f86a09d0a20cd4c72b44e6d71d25975ea diff --git a/qcsrc/server/g_world.qh b/qcsrc/server/g_world.qh index 3a5e5d5ac7..da950f1857 100644 --- a/qcsrc/server/g_world.qh +++ b/qcsrc/server/g_world.qh @@ -1,17 +1,33 @@ -#ifndef G_WORLD_H -#define G_WORLD_H +#pragma once float checkrules_equality; float checkrules_suddendeathwarning; float checkrules_suddendeathend; float checkrules_overtimesadded; //how many overtimes have been already added -const float WINNING_NO = 0; // no winner, but time limits may terminate the game -const float WINNING_YES = 1; // winner found -const float WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached -const float WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW +string cache_mutatormsg; +string cache_lastmutatormsg; -void CheckRules_Player(); -void IntermissionThink(); +const int WINNING_NO = 0; // no winner, but time limits may terminate the game +const int WINNING_YES = 1; // winner found +const int WINNING_NEVER = 2; // no winner, enter overtime if time limit is reached +const int WINNING_STARTSUDDENDEATHOVERTIME = 3; // no winner, enter suddendeath overtime NOW -#endif +float WinningCondition_Scores(float limit, float leadlimit); +void SetWinners(.float field, float value); +void IntermissionThink(entity this); +void GotoNextMap(float reinit); +void ReadyRestart(); + +string GetGametype(); + +void DumpStats(float final); +float Map_IsRecent(string m); +string GetNextMap(); +void ShuffleMaplist(); +void Map_Goto_SetStr(string nextmapname); +void Map_Goto(float reinit); +void Map_MarkAsRecent(string m); +float DoNextMapOverride(float reinit); +void CheckRules_World(); +float RedirectionThink();