-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathZPSserver.cfg
432 lines (289 loc) · 10.8 KB
/
ZPSserver.cfg
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
// SRCDS Hardening - https://wiki.alliedmods.net/SRCDS_Hardening#Current_Exploits
// List of common issues/exploits and how to resolve them. There are links to plugins and other resources as well.
//----------------------------------//
//----- START GENERAL SETTINGS -----//
//----------------------------------//
// Server hostname.
hostname "Your Server Name Here"
// Overrides the max players reported to prospective clients
sv_visiblemaxplayers 24
// Password needed to join the server. If no password is used, anyone can join.
sv_password ""
// Control where the client gets content from.
// 0 = anywhere
// 1 = anywhere listed in the white list
// 2 = official content only
sv_pure 0
// Control whether or not the client will get kicked for failing sv_pure check.
sv_pure_kick_clients 0
// Is the server pausable?
// 0 = no
// 1 = yes
sv_pausable 0
// Set the pause state of the server.
// NOTE: A setting of 1 will pause the server assuming sv_pausable is set to 1!
setpause 0
// Type of server being run.
// 0 = internt
// 1 = lan.
sv_lan 0
// This tells us if the server enforces consistency for critical files.
// Leave this at 0 so people can have nice custom junk on, otherwise they will get dropped :(
// 0 = false
// 1 = true.
sv_consistency 0
// Collect CPU usage stats (set this to zero for better preformance)
sv_stats 0
// Custom server tags to lookup the server with via the in-game server brower.
sv_tags ""
//--------------------------------//
//----- END GENERAL SETTINGS -----//
//--------------------------------//
//-----------------------------------//
//----- START BANNED USER ITEMS -----//
//-----------------------------------//
// Execute Banned Users config files
// Leave this alone if you plan on using Sourcebans or something similar.
//exec banned_user.cfg
//exec banned_ip.cfg
//writeid
//writeip
//---------------------------------//
//----- END BANNED USER ITEMS -----//
//---------------------------------//
//-------------------------------//
//----- START SERVER REGION -----//
//-------------------------------//
// This tells us what region of the world to report this server in.
// NOTE: sv_region is depreciated and Valve no longer uses this. See: https://developer.valvesoftware.com/wiki/Sv_region
// 255 = World
// 0 = USA East Coast
// 1 = USA West Coast
// 2 = South America
// 3 = Europe
// 4 = Asia
// 5 = Australia
// 6 = Middle East
// 7 = Africa
//sv_region -1
//-----------------------------//
//----- END SERVER REGION -----//
//-----------------------------//
//--------------------------------//
//----- START RCON SETTINGS -----//
//--------------------------------//
// The rcon authentication password.
// Used for admining the server or for some mods if you are using Sourcemod
// PLEASE CHANGE IT TO SOMETHING ELSE!!!!
rcon_password "yourpasswordherePLZCHANGETHIS"
// The number of minutes to ban users who fail the rcon authentication.
sv_rcon_banpenalty 5
// The max number of times the user can fail rcon authentication before being banned.
sv_rcon_maxfailures 10
//------------------------------//
//----- END RCON SETTINGS -----//
//------------------------------//
//------------------------------//
//----- START LOG SETTINGS -----//
//------------------------------//
// Enables loggin to file, console, and udp.
// The only options are "on" or "off".
log 1
// Log server information to only one file.
// 0 = off.
// 1 = on.
sv_log_onefile 0
// Log server information in the log file.
// 0 = off.
// 1 = on.
sv_logfile 1
// Log server bans in the server logs.
// 0 = off.
// 1 = on.
sv_logbans 1
// Echo log information to the console.
// 0 = off.
// 1 = on.
sv_logecho 1
//----------------------------//
//----- END LOG SETTINGS -----//
//----------------------------//
//-----------------------------------------//
//----- START BANDWIDTH RATE SETTINGS -----//
//-----------------------------------------//
// DEPRECIATED: Valve has removed this and, as a result, it is no longer necessary.
// Limits the maximum FPS someone can have. Leave it at 0, for unlimited.
//fps_max 500
// Min bandwidth rate allowed on server.
// 0 == unlimited.
sv_minrate 13000
// Max bandwidth rate allowed on the server.
// 0 == unlimited.
sv_maxrate 0
// Maximum updates per second that the server will allow.
sv_maxupdaterate 67
// Minimum updates per second the server will allow.
sv_minupdaterate 30
// Sets the maximum amount of command packets sent to the server per second.
sv_maxcmdrate 67
// Sets the minimum amount of command packets sent to the server per second.
sv_mincmdrate 30
// This is the maximum rate that all packets are split.
// Valve default is 15000.
// This should be the same rate as the sv_maxrate as you should be splitting packets as fast as you send/recieve them.
// At least, that is the theory. If unlimited, set at 100000 and go from there.
net_splitpacket_maxrate 100000
// Time (seconds) between decal sprays.
decalfrequency 30
// The amount of decals that can show up all at once. Increasing this allows more at the expense of performance
// Default: 200
mp_decals 200
// Basic client settings to help offset some lag for users - change as needed!
sv_client_cmdrate_difference 1
sv_client_predict 1
sv_client_interpolate 1
sv_client_min_interp_ratio -1
sv_client_max_interp_ratio -1
// Server query cvars. Used to control how many queries can be made to your server in a second.
// Defaults are fine for these, uncomment and change as desired.
//sv_max_queries_sec 3
//sv_max_queries_sec_global 150
// Other cvars, keep these set as you see them below unless you want to peform science!
// NOTE: There isn't much in the way of a description for these, so it is not known as to the
// specifics of what these actually do. However, judging from the names, it can be assumed that
// these were supposed to allow the server to do more at once with multiple threads.
// NFO thread for reference: https://forums.nfoservers.com/viewtopic.php?t=7376
sv_parallel_packentities 0
sv_parallel_sendsnapshot 0
net_queued_packet_thread 1
//---------------------------------------//
//----- END BANDWIDTH RATE SETTINGS -----//
//---------------------------------------//
//-----------------------------------//
//----- START DOWNLOAD SETTINGS -----//
//-----------------------------------//
// Allow clients to upload customizations files, such as sprays, directly to the server.
// NOTE: Setting this to 0 will disable the ability to use sprays!
// 0 = off.
// 1 = on.
sv_allowupload 0
// Allow clients to download files directly from the server.
// NOTE: This is for the server itself not fastdl! Use sv_downloadurl for downloads. Leave this off!
// 0 = off.
// 1 = on.
sv_allowdownload 0
// Maximum file size allowed for downloading, in megabytes.
// NOTE: This is for the server itself and not fastdl! The max limit is 64MB (cannot go above this).
// See https://developer.valvesoftware.com/wiki/Net_maxfilesize
net_maxfilesize 64
// Set the download url for the hosted maps.
// This should be used as it is much faster, more efficient, does not strain the server
// NOTE: Use this method rather than allowing direct download from the server
sv_downloadurl "http://yourwebsiteorurlinfohere.com/downloads/zps/"
//---------------------------------//
//----- END DOWNLOAD SETTINGS -----//
//---------------------------------//
//----------------------------------------//
//----- START ROUND AND GAME OPTIONS -----//
//----------------------------------------//
// If non-zero, the current round will restart in the specified number of seconds.
mp_restartround 0
// Game time per map, in minutes
// 0 = unlimited/no map time
mp_timelimit 0
// Tells the server, in seconds, how long to stay on any one map when
// the server itself is empty.
mp_mapcycle_empty_timeout_seconds 3600
//--------------------------------------//
//----- END ROUND AND GAME OPTIONS -----//
//--------------------------------------//
//-------------------------------//
//----- START CLIENT CVARS -----//
//-------------------------------//
// Restricts spectator modes for dead players.
mp_forcecamera 1
// Toggles whether the server allows spectator mode or not.
mp_allowspectators 1
// Toggles friendly fire.
mp_friendlyfire 0
// Toggles footstep sounds.
mp_footsteps 1
// Toggles game cheats.
sv_cheats 0
// After this many seconds without a message from a client, the client is dropped.
sv_timeout 120
// Contact email for sysop.
sv_contact [email protected]
//-----------------------------//
//----- END CLIENT CVARS -----//
//-----------------------------//
//--------------------------------//
//----- START COMMUNICATIONS -----//
//--------------------------------//
// Enable voice communications.
// 0 = off.
// 0 = on.
sv_voiceenable 1
// Enables the ability to allow players on both teams hear each other.
// 0 = disabled.
// 1 = enabled.
sv_alltalk 0
//------------------------------//
//----- END COMMUNICATIONS -----//
//------------------------------//
//-----------------------------------//
//----- START ZPS SPECIFICS -----//
//-----------------------------------//
// Infection Chance
// desc: Percentage chance for carrier to infect a survivor.
// default: 10
zps_infection_chance 10
// Hardcore Mode
// desc: Enables hardcore mode. Get ready to die!
// 0 = Default (no hardcore)
// 1 = Normal Hardcore
// 2 = Hardcore+
zps_hardcore 0
// Anti Panic rush
// desc: How many seconds should we refuse the player to panic on round start?
// default: 3
zps_anti_panicrush 3
// Anti bunny jumping
// desc: Should we block bunny jumping?
// default: 1
zps_anti_bunnyjump 1
// AFK Timer
// desc: How many minutes can they be AFK before we move em to Lobby?
// default: 3
zps_afk_time 10
// AFK Timer (Lobby)
// desc: How many minutes can they be AFK in the lobby before we kick them out?
// default: 2
zps_afk_time_lobby 5000
// Survival rounds
// desc: How many rounds until we change map in Survival mode?
// NOTE: If set to 0, the rounds will be disabled and the map will go on forever.
// default: 10
zps_survival_rounds 10
// Objective rounds
// desc: How many rounds until we change map in Objective mode?
// NOTE: If set to 0, the rounds will be disabled and the map will go on forever.
// default: 10
zps_objective_rounds 10
//-----------------------------------//
//----- END ZPS SPECIFICS -----//
//-----------------------------------//
//---------------------------------------------//
//----- START MISCELLANEOUS/MODS -----//
//---------------------------------------------//
// Disables Source TV
tv_enable 0
// Force heartbeat of master servers. Basically helps make us visible (or it used to).
heartbeat
// The mapcycle file our server needs to be looking at.
mapcyclefile mapcycle.txt
// Maximum ragdolls to display on the server. Change this to set how many corpses appear on the server!!
sv_maxragdolls 3
//----------------------------------------//
//----- END MISCELLANEOUS/MODS -----//
//----------------------------------------//