Advertisement
illwieckz

auto bot fill?

Feb 25th, 2022
1,310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. // src/sgame/sg_main.cpp
  2.  
  3. void G_MapConfigs( const char *mapname )
  4. {
  5.     if ( g_mapConfigs.Get().empty() )
  6.     {
  7.         return;
  8.     }
  9.  
  10.     // assuming g_botFill cvar exists.
  11.     trap_SendConsoleCommand( va( "bot fill %d", g_botFill.Get() ) );
  12.  
  13.     trap_SendConsoleCommand( va( "exec %s/default.cfg", Quote( g_mapConfigs.Get().c_str() ) ) );
  14.  
  15.     trap_SendConsoleCommand( va( "exec %s/%s.cfg", Quote( g_mapConfigs.Get().c_str() ), Quote( mapname ) ) );
  16.  
  17.     trap_SendConsoleCommand( "maprestarted" );
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement