View Single Post
Re: Best way to detect the maps types ?
Old
  (#3)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Best way to detect the maps types ? - 01-07-2005

Thanks PMB but do you have a idea how to detect FY maps and AWP maps ?

Can you tell me is this way is good :
Code:
strcpy(filename, STRING(gpGlobals->mapname));
   if (filename[0] == 'a') {
	  if (filename[1] == 's')
		 g_iMapType = MAP_AS;
	  else if (filename[1] == 'w')
		 g_iMapType = MAP_AWP;
	  else if (filename[1] == 'i')
		 g_iMapType = MAP_AIM;
   } else if (filename[0] == 'c')
	  g_iMapType = MAP_CS;
   else if (filename[0] == 'd')
	  g_iMapType = MAP_DE;
   else if (filename[0] == 'e')
	  g_iMapType = MAP_ES;
   else if (filename[0] == 'f')
	  g_iMapType = MAP_FY;
The map type is detected by the map name. But I think that still is not correct detected the CS maps. If you can help me.

Last edited by The Storm; 01-07-2005 at 18:39..
  
Reply With Quote