spawnpoints = 0;
spawnplaces = 0;
_MapInfo_Map_worldspawn_music = "";
+ mapMins = '0 0 0';
+ mapMaxs = '0 0 0';
for(;;)
{
{
entity e;
for(e = MapInfo_Type_first; e; e = e.enemy)
- if(t == e.weapons)
+ if(t == e.items)
return e.model2;
return "";
}
float MapInfo_Type_FromString(string t)
{
entity e;
+ if(t == "nexball")
+ {
+ print("MapInfo_Type_FromString (probably ", MapInfo_Map_bspname, "): using deprecated name '", t);
+ t = "nb";
+ print("'. Should use '", t, "'.\n");
+ }
+ if(t == "freezetag")
+ {
+ print("MapInfo_Type_FromString (probably ", MapInfo_Map_bspname, "): using deprecated name '", t);
+ t = "ft";
+ print("'. Should use '", t, "'.\n");
+ }
+ if(t == "keepaway")
+ {
+ print("MapInfo_Type_FromString (probably ", MapInfo_Map_bspname, "): using deprecated name '", t);
+ t = "ka";
+ print("'. Should use '", t, "'.\n");
+ }
if(t == "all")
return MAPINFO_TYPE_ALL;
for(e = MapInfo_Type_first; e; e = e.enemy)
if(t == e.mdl)
- return e.weapons;
+ return e.items;
return 0;
}
if(t == MAPINFO_TYPE_ALL)
return "all";
for(e = MapInfo_Type_first; e; e = e.enemy)
- if(t == e.weapons)
+ if(t == e.items)
return e.mdl;
return "";
}
{
entity e;
for(e = MapInfo_Type_first; e; e = e.enemy)
- if(t == e.weapons)
+ if(t == e.items)
return e.message;
return _("@!#%'n Tuba Throwing");
}
MapInfo_Map_author = s;
else if(t == "has")
{
- t = car(s); s = cdr(s);
+ t = car(s); // s = cdr(s);
if (t == "weapons") MapInfo_Map_supportedFeatures |= MAPINFO_FEATURE_WEAPONS;
else if(t == "turrets") MapInfo_Map_supportedFeatures |= MAPINFO_FEATURE_TURRETS;
else if(t == "vehicles") MapInfo_Map_supportedFeatures |= MAPINFO_FEATURE_VEHICLES;
prev = cvar("gamecfg");
for(e = MapInfo_Type_first; e; e = e.enemy)
if(cvar(e.netname))
- if(prev != e.weapons)
- return e.weapons;
+ if(prev != e.items)
+ return e.items;
if(prev)
return prev;
return MAPINFO_TYPE_DEATHMATCH;
{
entity e;
for(e = MapInfo_Type_first; e; e = e.enemy)
- cvar_set(e.netname, (t == e.weapons) ? "1" : "0");
+ cvar_set(e.netname, (t == e.items) ? "1" : "0");
}
void MapInfo_LoadMap(string s, float reinit)