diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/shared/tf/tf_quickplay_shared.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/shared/tf/tf_quickplay_shared.h')
| -rw-r--r-- | game/shared/tf/tf_quickplay_shared.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/game/shared/tf/tf_quickplay_shared.h b/game/shared/tf/tf_quickplay_shared.h new file mode 100644 index 0000000..51eef5e --- /dev/null +++ b/game/shared/tf/tf_quickplay_shared.h @@ -0,0 +1,81 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Quickplay related code shared between GC and client +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef _INCLUDED_TF_QUICKPLAY_SHARED_H +#define _INCLUDED_TF_QUICKPLAY_SHARED_H +#ifdef _WIN32 +#pragma once +#endif + +class CUtlStringList; + +const int kTFMaxQuickPlayServersToScore = 25; +const int kTFQuickPlayIdealMaxNumberOfPlayers = 24; +const int kTFQuickPlayMinMaxNumberOfPlayers = 18; // don't auto match to servers with max players set too low +const int kTFQuickPlayMaxPlayers = 33; + +const struct SchemaMap_t *GetQuickplayMapInfoByName( const char *pMapName ); + +extern float QuickplayCalculateServerScore( int numHumans, int numBots, int maxPlayers, int nNumInSearchParty ); + +extern const char k_szQuickplayFAQ_URL[]; + +struct QuickplaySearchOptions +{ + EGameCategory m_eSelectedGameType; + + enum EServers + { + eServersOfficial, + eServersCommunity, + eServersDontCare + }; + EServers m_eServers; + + enum ERandomCrits + { + eRandomCritsYes, + eRandomCritsNo, + eRandomCritsDontCare + }; + ERandomCrits m_eRandomCrits; + + enum EDamageSpread + { + eDamageSpreadNo, + eDamageSpreadYes, + eDamageSpreadDontCare + }; + EDamageSpread m_eDamageSpread; + + enum EMaxPlayers + { + eMaxPlayers24, + eMaxPlayers30Plus, + eMaxPlayersDontCare + }; + EMaxPlayers m_eMaxPlayers; + + enum ERespawnTimes + { + eRespawnTimesDefault, + eRespawnTimesInstant, + eRespawnTimesDontCare + }; + ERespawnTimes m_eRespawnTimes; + + enum EBetaContent + { + eBetaNo, + eBetaYes + }; + EBetaContent m_eBetaContent; + + CUtlString m_strMapName; +}; + +#endif // #ifndef _INCLUDED_TF_QUICKPLAY_SHARED_H |