map_rotation console variable in source code
map_rotation "dm6 dm2 dm6 dm4" would go from dm6 to dm2 to dm6 to dm4 and then repeat.
If you can cut and paste and compile C code, you should be able to grab the blocks of code clearly marked in the source code that look like this ...
Code:
pr_edict.c - line #1101 ifdef SUPPORTS_MAP_ROTATION_CVAR // Baker change (register cvar) Cvar_RegisterVariable (&map_rotation); #endif // Baker change + SUPPORTS_MAP_ROTATION_CVAR server.h - line 238 #ifdef SUPPORTS_MAP_ROTATION_CVAR // Baker change (extern cvar) extern cvar_t map_rotation; // Baker #endif // Baker change + SUPPORTS_MAP_ROTATION_CVAR (a couple of others ... search for SUPPORTS_MAP_ROTATION_CVAR in the source, its very few items).
I wrote this back when I liked to tutorialize engine code. Cut and paste the appropriate blocks into the sqpro source code and you'll be 98% there.
Leave a comment: