Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "gameinterface.h"
  8. #include "mapentities.h"
  9. #include "cs_gameinterface.h"
  10. #include "AI_ResponseSystem.h"
  11. // -------------------------------------------------------------------------------------------- //
  12. // Mod-specific CServerGameClients implementation.
  13. // -------------------------------------------------------------------------------------------- //
  14. void CServerGameClients::GetPlayerLimits( int& minplayers, int& maxplayers, int &defaultMaxPlayers ) const
  15. {
  16. minplayers = 1; // allow single player for the test maps (but we default to multi)
  17. maxplayers = MAX_PLAYERS;
  18. defaultMaxPlayers = 32; // Default to 32 players unless they change it.
  19. }
  20. // -------------------------------------------------------------------------------------------- //
  21. // Mod-specific CServerGameDLL implementation.
  22. // -------------------------------------------------------------------------------------------- //
  23. void CServerGameDLL::LevelInit_ParseAllEntities( const char *pMapEntities )
  24. {
  25. if ( Q_strcmp( STRING(gpGlobals->mapname), "cs_" ) )
  26. {
  27. // don't precache AI responses (hostages) if it's not a hostage rescure map
  28. extern IResponseSystem *g_pResponseSystem;
  29. g_pResponseSystem->PrecacheResponses( false );
  30. }
  31. }