-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcSettings.h
126 lines (97 loc) · 1.93 KB
/
cSettings.h
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#pragma once
#include <wx/wx.h>
#include <bitset>
#include "cLoadout.h"
class Channel {
public:
Channel(int i = 0, bool c = true, bool v = true) {
id = i;
chat = c;
voice = v;
}
void disableChat() {
chat = false;
}
void enableChat() {
chat = true;
}
void toggleChat() {
chat = !chat;
}
void disableVoice() {
voice = false;
}
void enableVoice() {
voice = true;
}
void toggleVoice() {
voice = !voice;
}
int id;
bool chat;
bool voice;
};
class ChannelSet {
public:
Channel global = Channel(0, true, true);
Channel side = Channel(1, true, true);
Channel command = Channel(2, true, true);
Channel group = Channel(3, true, true);
Channel vehicle = Channel(4, true, true);
Channel direct = Channel(5, false, true);
bool set(int id, bool chat, bool voice);
};
class cSettings
{
public:
cSettings();
static cSettings* mainSettings;
static cSettings* getMain() {
return mainSettings;
}
~cSettings()
{
delete channels;
delete loadouts;
}
// Vars
wxString gameType = "COOP";
int minPlayers = 1;
int maxPlayers = 30;
int respawnType = 3;
int respawnOnStart = -1;
std::bitset<11> hudOptions;
bool showMap = false;
int corpseMode = 2;
bool disableAI = true;
int adminConsole = 1;
ChannelSet* channels;
bool showCompass = true;
bool showGPS = true;
bool showWatch = true;
bool groupIndicator = false;
bool showUAVFeed = true;
bool aiKills = false;
int corpseLimit = 15;
int corpseMinTime = 10;
int corpseMaxTime = 3600;
int wreckMode = 2;
int wreckLimit = 15;
int wreckMinTime = 10;
int wreckMaxTime = 36000;
int minPlayerDistance = 0;
bool respawnButton = true;
bool respawnDialog = true;
int respawnDelay = 5;
int vehRespawnDelay = 5;
int reviveMode = 0;
int damageModel = 0;
bool medicNeeded = false;
bool fakConsumed = true;
int reviveItem = 2;
int reviveTime = 6;
int medicMult = 2;
int forceRespawnDelay = 3;
int bleedOutTime = 120;
cLoadoutDir* loadouts;
};