Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // src/sgame/sg_main.cpp
- void G_MapConfigs( const char *mapname )
- {
- if ( g_mapConfigs.Get().empty() )
- {
- return;
- }
- // assuming g_botFill cvar exists.
- trap_SendConsoleCommand( va( "bot fill %d", g_botFill.Get() ) );
- trap_SendConsoleCommand( va( "exec %s/default.cfg", Quote( g_mapConfigs.Get().c_str() ) ) );
- trap_SendConsoleCommand( va( "exec %s/%s.cfg", Quote( g_mapConfigs.Get().c_str() ), Quote( mapname ) ) );
- trap_SendConsoleCommand( "maprestarted" );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement