#include <client/defs.qh>
#include <client/miscfunctions.qh>
#include <client/main.qh>
-#include <common/gamemodes/_mod.qh>
-#include <common/mapinfo.qh>
#include <lib/csqcmodel/cl_player.qh>
// Physics (#15)
#include <client/autocvars.qh>
#include <client/defs.qh>
#include <client/miscfunctions.qh>
-#include <common/gamemodes/_mod.qh>
-#include <common/mapinfo.qh>
// Race timer (#8)
#include <client/defs.qh>
#include <client/miscfunctions.qh>
#include <common/ent_cs.qh>
-#include <common/gamemodes/_mod.qh>
#include <client/mapvoting.qh>
#include <client/resources.qh>
#include <client/teamradar.qh>
#include <client/miscfunctions.qh>
#include "scoreboard.qh"
#include <common/ent_cs.qh>
-#include <common/gamemodes/_mod.qh>
-#include <common/mapinfo.qh>
#include <common/scores.qh>
// Score (#7)
#include "quickmenu.qh"
#include <common/ent_cs.qh>
#include <common/constants.qh>
-#include <common/gamemodes/_mod.qh>
#include <common/net_linked.qh>
#include <common/mapinfo.qh>
#include <common/minigames/cl_minigames.qh>
#include <client/autocvars.qh>
#include <client/defs.qh>
-#include <common/gamemodes/_mod.qh>
#include <client/miscfunctions.qh>
-#include <common/mapinfo.qh>
// Vote (#9)
#include <common/ent_cs.qh>
#include <common/constants.qh>
-#include <common/gamemodes/_mod.qh>
#include <common/net_linked.qh>
-#include <common/mapinfo.qh>
#include <common/teams.qh>
#include <lib/csqcmodel/cl_model.qh>
if(MapInfo_Map_supportedGametypes == 0)
{
- LOG_SEVERE("Mapinfo system is not functional at all. Assuming deathmatch.");
- MapInfo_Map_supportedGametypes = MAPINFO_TYPE_DEATHMATCH.m_flags;
- MapInfo_LoadMapSettings_SaveGameType(MAPINFO_TYPE_DEATHMATCH);
- _MapInfo_Map_ApplyGametypeEx("", MAPINFO_TYPE_DEATHMATCH, MAPINFO_TYPE_DEATHMATCH);
+ RandomSelection_Init();
+ FOREACH(Gametypes, it.m_priority == 2,
+ {
+ MapInfo_Map_supportedGametypes |= it.m_flags;
+ RandomSelection_AddEnt(it, 1, 1);
+ });
+ if(RandomSelection_chosen_ent)
+ t = RandomSelection_chosen_ent;
+ LOG_SEVEREF("Mapinfo system is not functional at all. Falling back to a preferred mode (%s).", t.mdl);
+ MapInfo_LoadMapSettings_SaveGameType(t);
+ _MapInfo_Map_ApplyGametypeEx("", t, t);
return; // do not call Get_ByName!
}