-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathtf_quickplay_shared.h
More file actions
81 lines (66 loc) · 1.65 KB
/
tf_quickplay_shared.h
File metadata and controls
81 lines (66 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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 MapDef_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