View Single Post
Re: Best way to detect the maps types ?
Old
  (#5)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Best way to detect the maps types ? - 02-07-2005

Theres a few ways you could do this...

1. Read config files for every map, goto 2 if not found
2. Compare the first 3 letters of the mapname with a table that lists the prefix ( ie. "de_" ) and it's type ( ie. GTYPE_DE )
3. As said by PMB, if all else fails assume deathmatch >
  
Reply With Quote