Re: Best way to detect the maps types ? -
01-07-2005
For me, hooking the entities spawning is the best way. If you find a func_hostage_rescue then it's a hostage map, if you find a func_bomb_target or info_bomb_target then it's a bomb map. If you have a func_vip_safetyzone, then it's an AS map, if you have a func_escapezone then it's an escape map, etc... If you have nothing of these, then -> deathmatch.
Try to make it so that a map can have several types at once.
RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
|