forked from Pozzo-FH/pozzo-fh.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.html
858 lines (857 loc) · 48.8 KB
/
admin.html
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
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>FH2 Admin Manual</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
/* The extra [class] is a hack that increases specificity enough to
override a similar rule in reveal.js */
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
/* CSS for syntax highlighting */
pre > code.sourceCode { white-space: pre; position: relative; }
pre > code.sourceCode > span { line-height: 1.25; }
pre > code.sourceCode > span:empty { height: 1.2em; }
.sourceCode { overflow: visible; }
code.sourceCode > span { color: inherit; text-decoration: inherit; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
pre > code.sourceCode { white-space: pre-wrap; }
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
}
pre.numberSource code
{ counter-reset: source-line 0; }
pre.numberSource code > span
{ position: relative; left: -4em; counter-increment: source-line; }
pre.numberSource code > span > a:first-child::before
{ content: counter(source-line);
position: relative; left: -1em; text-align: right; vertical-align: baseline;
border: none; display: inline-block;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
color: #aaaaaa;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; }
div.sourceCode
{ }
@media screen {
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
}
code span.al { color: #ff0000; font-weight: bold; } /* Alert */
code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { color: #7d9029; } /* Attribute */
code span.bn { color: #40a070; } /* BaseN */
code span.bu { color: #008000; } /* BuiltIn */
code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code span.ch { color: #4070a0; } /* Char */
code span.cn { color: #880000; } /* Constant */
code span.co { color: #60a0b0; font-style: italic; } /* Comment */
code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code span.do { color: #ba2121; font-style: italic; } /* Documentation */
code span.dt { color: #902000; } /* DataType */
code span.dv { color: #40a070; } /* DecVal */
code span.er { color: #ff0000; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #40a070; } /* Float */
code span.fu { color: #06287e; } /* Function */
code span.im { color: #008000; font-weight: bold; } /* Import */
code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #007020; font-weight: bold; } /* Keyword */
code span.op { color: #666666; } /* Operator */
code span.ot { color: #007020; } /* Other */
code span.pp { color: #bc7a00; } /* Preprocessor */
code span.sc { color: #4070a0; } /* SpecialChar */
code span.ss { color: #bb6688; } /* SpecialString */
code span.st { color: #4070a0; } /* String */
code span.va { color: #19177c; } /* Variable */
code span.vs { color: #4070a0; } /* VerbatimString */
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
</style>
<link rel="stylesheet" href="style.css" />
<link rel='stylesheet' href='//cdn.jsdelivr.net/npm/[email protected]/build/web/hack-subset.css'>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<header id="title-block-header">
<h1 class="title">FH2 Admin Manual</h1>
</header>
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#chat-commands" id="toc-chat-commands">Chat commands</a>
<ul>
<li><a href="#reason-shortcuts" id="toc-reason-shortcuts">“Reason”
Shortcuts</a></li>
<li><a href="#history-shortcuts" id="toc-history-shortcuts">History
Shortcuts</a></li>
<li><a href="#command-summary" id="toc-command-summary">Command
Summary</a></li>
<li><a href="#map-shortnames" id="toc-map-shortnames">Map
Shortnames</a></li>
</ul></li>
<li><a href="#setup" id="toc-setup">Setup</a>
<ul>
<li><a href="#plugin-system" id="toc-plugin-system">Plugin
System</a></li>
<li><a href="#carousel" id="toc-carousel">Map Randomizer</a></li>
<li><a href="#admin-rights" id="toc-admin-rights">Admin Rights</a></li>
<li><a href="#nazi-word-blacklist" id="toc-nazi-word-blacklist">Nazi
Word Blacklist</a></li>
</ul></li>
<li><a href="#main-configuration" id="toc-main-configuration">Main
Configuration</a>
<ul>
<li><a href="#messages" id="toc-messages">Messages</a></li>
<li><a href="#bans-and-afk-kicks" id="toc-bans-and-afk-kicks">Bans and
(AFK) Kicks</a></li>
<li><a href="#map-rotation" id="toc-map-rotation">Map Rotation</a></li>
<li><a href="#autobalancer" id="toc-autobalancer">Autobalancer</a></li>
<li><a href="#hud" id="toc-hud">HUD</a></li>
<li><a href="#stats-api" id="toc-stats-api">Stats API</a></li>
<li><a href="#voting" id="toc-voting">Voting</a></li>
</ul></li>
</ul>
</nav>
<h2 id="chat-commands">Chat commands</h2>
<p>Just like you're used to, you can send certain <code>!bang</code>
commands in the game chat</p>
<p>When supplying a player name, partial names will work as well. (the
line <code>!warn oz</code> will probably resolve to
<code>!warn pozzo</code>). If there are multiple name matches, it will
tell you that</p>
<h3 id="reason-shortcuts">“Reason” Shortcuts</h3>
<p>Some commands like <code>!report</code> also can have abbreviations,
so <code>!report poz fc</code> will be printed as
<code>!report pozzo Fighting Commander</code>. See the current list:</p>
<div class="sourceCode" id="cb1"><pre
class="sourceCode python"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co">"afk"</span>: <span class="st">"Being AFK"</span>,</span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="co">"fc"</span>: <span class="st">"Fighting Commander"</span>,</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co">"ftk"</span>: <span class="st">"Forcing Teamkills"</span>,</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="co">"gp"</span>: <span class="st">"Disrupting Gameplay"</span>,</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="co">"lang"</span>: <span class="st">"Offensive Language"</span>,</span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="co">"locked"</span>: <span class="st">"Locked squad"</span>,</span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a><span class="co">"name"</span>: <span class="st">"Bad Nickname"</span>,</span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a><span class="co">"nazi"</span>: <span class="st">"Nazi bullshit"</span>,</span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a><span class="co">"spam"</span>: <span class="st">"Spamming"</span>,</span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a><span class="co">"steal"</span>: <span class="st">"Asset stealing"</span>,</span>
<span id="cb1-11"><a href="#cb1-11" aria-hidden="true" tabindex="-1"></a><span class="co">"tk"</span>: <span class="st">"Teamkilling"</span>,</span>
<span id="cb1-12"><a href="#cb1-12" aria-hidden="true" tabindex="-1"></a><span class="co">"troll"</span>: <span class="st">"Trolling"</span>,</span></code></pre></div>
<h3 id="history-shortcuts">History Shortcuts</h3>
<p>Shortcuts reusing command history are also available:</p>
<ul>
<li><code>!!</code>: repeat entire input</li>
<li><code>!0</code>: repeat command</li>
<li><code>!@</code>: repeat all arguments</li>
<li><code>!$</code>: repeat last argument</li>
</ul>
<p>Example:</p>
<pre><code>[Chat]: !warn pozzo afk
!! -> "!warn pozzo afk"
!0 -> "!warn"
!@ -> "pozzo afk"
!$ -> "afk"</code></pre>
<h3 id="command-summary">Command Summary</h3>
<table>
<colgroup>
<col style="width: 10%" />
<col style="width: 17%" />
<col style="width: 13%" />
<col style="width: 57%" />
</colgroup>
<thead>
<tr class="header">
<th style="text-align: left;">Command</th>
<th style="text-align: left;">Usage</th>
<th style="text-align: left;">Who?</th>
<th style="text-align: left;">Explanation</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">!rules</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Show link to server ruleset</td>
</tr>
<tr class="even">
<td style="text-align: left;">!help</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Show available commands</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!shownext<br />
!sn<br />
!nextmap<br />
!nm</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Show next map in rotation</td>
</tr>
<tr class="even">
<td style="text-align: left;">!admins</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Show admins online</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!yes</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Vote YES (if vote is ongoing)</td>
</tr>
<tr class="even">
<td style="text-align: left;">!no</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Vote NO (if vote is ongoing)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!report<br />
!r</td>
<td style="text-align: left;">!r USER WHY<br />
!r pozzo troll</td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Report to admins</td>
</tr>
<tr class="even">
<td style="text-align: left;">!help_atgun<br />
!h_at</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Explain AT gun fix<br />
(can’t move gun to aim)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!help_voice<br />
!h_vo</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Explain voice fix<br />
(soldier shouts randomly)</td>
</tr>
<tr class="even">
<td style="text-align: left;">!help_para<br />
!h_pa</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Explain parachute</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!cmp</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">all</td>
<td style="text-align: left;">Show Link to CMP</td>
</tr>
<tr class="even">
<td style="text-align: left;">!reroll<br />
!rr</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Re-pick random nextmap<br />
(only ONCE per round!)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!vote_reroll<br />
!vrr</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Start vote to re-roll</td>
</tr>
<tr class="even">
<td style="text-align: left;">!vote_runnext<br />
!vrn</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Start vote to runnext</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!dissolve<br />
!disband</td>
<td style="text-align: left;">!dissolve NUM<br />
!dissolve NUM WHY<br />
!dissolve 2<br />
!dissolve 2 nazi</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Disband squad<br />
on your <strong>own</strong> team</td>
</tr>
<tr class="even">
<td style="text-align: left;">!kill<br />
!murder<br />
!m</td>
<td style="text-align: left;">!kill PLY<br />
!kill PLY WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Murder player</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!kick<br />
!k</td>
<td style="text-align: left;">!kick PLY WHY<br />
!kick -n NUM WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Kick player</td>
</tr>
<tr class="even">
<td style="text-align: left;">!ban<br />
!b</td>
<td style="text-align: left;">!ban PLY WHY<br />
!ban -n NUM WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Ban player for two weeks</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!banround<br />
!br<br />
!rb<br />
!roundban</td>
<td style="text-align: left;">!banround PLY WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Ban player for 1h</td>
</tr>
<tr class="even">
<td style="text-align: left;">!banday<br />
!bd<br />
!db<br />
!dayban</td>
<td style="text-align: left;">!banday PLY WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Ban player for 24h</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!permaban<br />
!pb<br />
!bp</td>
<td style="text-align: left;">!permaban PLY WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Perma-ban player</td>
</tr>
<tr class="even">
<td style="text-align: left;">!resign</td>
<td style="text-align: left;">!resign PLY<br />
!resign PLY WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Resign commander/<br />
remove from squad</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!say<br />
!s</td>
<td style="text-align: left;">!say MSG</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Write global message</td>
</tr>
<tr class="even">
<td style="text-align: left;">!sayteam<br />
!st</td>
<td style="text-align: left;">!sayteam MSG</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Write to own team</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!sayenemy<br />
!se</td>
<td style="text-align: left;">!sayenemy MSG</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Write to enemy team</td>
</tr>
<tr class="even">
<td style="text-align: left;">!sayadmin<br />
!sa</td>
<td style="text-align: left;">!sayadmin MSG</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Write to admins</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!switch<br />
!sw</td>
<td style="text-align: left;">!switch PLAYER<br />
</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Move player</td>
</tr>
<tr class="even">
<td style="text-align: left;">!axis</td>
<td style="text-align: left;">!axis PLAYER</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Move player to Axis</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!allies</td>
<td style="text-align: left;">!allies PLAYER</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Move player to Allies</td>
</tr>
<tr class="even">
<td style="text-align: left;">!warn<br />
!w</td>
<td style="text-align: left;">!warn PLAYER WHY</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Warn Player</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!hist</td>
<td style="text-align: left;">!hist<br />
!hist PLAYER</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Show global TKs,<br />
OR player TKs and Kicks</td>
</tr>
<tr class="even">
<td style="text-align: left;">!hash</td>
<td style="text-align: left;">!hash PLAYER</td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Show player hash<br />
(on internet servers)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!runnext<br />
!rn</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Run next map</td>
</tr>
<tr class="even">
<td style="text-align: left;">!fixsquadbug</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Try fixing broken squads</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!version</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">low-lvl</td>
<td style="text-align: left;">Show admin tools version</td>
</tr>
<tr class="even">
<td style="text-align: left;">!scramble<br />
!scram<br />
!shuffle<br />
!shuf</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">mid-lvl</td>
<td style="text-align: left;">Scramble teams on next map</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!unscramble</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">mid-lvl</td>
<td style="text-align: left;">Cancel the scramble request</td>
</tr>
<tr class="even">
<td style="text-align: left;">!setnext</td>
<td style="text-align: left;">!setnext MAP<br />
!setnext MAP LY<br />
!setnext brest<br />
!setnext brest 64<br />
</td>
<td style="text-align: left;">mid-lvl</td>
<td style="text-align: left;">Set next map (default 64p)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!restart</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">mid-lvl</td>
<td style="text-align: left;">Restart map</td>
</tr>
<tr class="even">
<td style="text-align: left;">!tickets</td>
<td style="text-align: left;">!tickets BOTH<br />
!tickets AXIS ALLIES<br />
!tickets 1000<br />
!tickets 800 600</td>
<td style="text-align: left;">high-lvl</td>
<td style="text-align: left;">Set tickets</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!maps<br />
!maplist</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Show map list</td>
</tr>
<tr class="even">
<td style="text-align: left;">!giveme</td>
<td style="text-align: left;">!giveme OBJECT</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Spawn object next to you</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!fly<br />
!fling</td>
<td style="text-align: left;">!fly<br />
!fly HEIGHT<br />
!fly HEIGHT PLAYER<br />
!fly 400 pozzo</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Launch into the air<br />
(default is yourself and 100m)</td>
</tr>
<tr class="even">
<td style="text-align: left;">!spawntime</td>
<td style="text-align: left;">!spawntime NUM</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Set spawntime in seconds</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!camera</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Spawn the filmcamera <3</td>
</tr>
<tr class="even">
<td style="text-align: left;">!cap</td>
<td style="text-align: left;">!cap TEAM NAME<br />
!cap -l TEAM NAME</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Give flag to team<br />
Adding ‘-l’ makes it<br />
search localizations, like<br />
“outskirts” on tobruk<br />
(actual flagname is<br />
<code>64_CP_FT_2</code>)</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!3p</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Force 3rd person camera</td>
</tr>
<tr class="even">
<td style="text-align: left;">!1p</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Force 1st person camera</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!coord</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Show position & direction</td>
</tr>
<tr class="even">
<td style="text-align: left;">!maplint</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Run the maplint</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!speed</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Show your current speed</td>
</tr>
<tr class="even">
<td style="text-align: left;">!oob</td>
<td style="text-align: left;">!oob ON<br />
!oob OFF</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Turn OOB on/off,</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!run</td>
<td style="text-align: left;">!run SCRIPTNAME</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Run a script</td>
</tr>
<tr class="even">
<td style="text-align: left;">!exec</td>
<td style="text-align: left;">!exec COMMAND</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Execute a rcon command</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!finish</td>
<td style="text-align: left;">!finish TEAMNAME</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Bleed out a team</td>
</tr>
<tr class="even">
<td style="text-align: left;">!startdemo</td>
<td style="text-align: left;">!startdemo FILENAME</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Start battle recorder</td>
</tr>
<tr class="odd">
<td style="text-align: left;">!stopdemo</td>
<td style="text-align: left;"></td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Stop batte recorder</td>
</tr>
<tr class="even">
<td style="text-align: left;">!bleed</td>
<td style="text-align: left;">!bleed TEAM NUM<br />
!bleed AX AL<br />
!bleed 30 50<br />
!bleed axis 40<br />
!bleed both 60</td>
<td style="text-align: left;">betatest</td>
<td style="text-align: left;">Set bleed rate<br />
(tickets per minute)</td>
</tr>
</tbody>
</table>
<h3 id="map-shortnames">Map Shortnames</h3>
<p><em>Some</em> maps have short abbreviations defined (see <a
href="https://pozzo-fh.github.io/maps/index.html">the map table</a> ),
so you can</p>
<pre><code>!setnext sfakia</code></pre>
<p>instead of typing out</p>
<pre><code>!setnext the_battle_for_sfakia</code></pre>
<p>Currently there is <strong>no</strong> partial name match, so you
<strong>CANNOT</strong> <code>!setnext sfa</code>!</p>
<h2 id="setup">Setup</h2>
<h3 id="plugin-system">Plugin System</h3>
<p>Plugins are enabled by default, see
<code>game/gameplayPlugin.py</code>:</p>
<div class="sourceCode" id="cb5"><pre
class="sourceCode python"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a>plugins_admin <span class="op">=</span> [</span>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a> <span class="st">'BangBang'</span>, <span class="co"># chat commands</span></span>
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> <span class="st">'IdleTracker'</span>, <span class="co"># kick afk players</span></span>
<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a> <span class="st">'PlayerLogger'</span>, <span class="co"># log player IDs</span></span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a> <span class="st">'SteamRoller'</span>, <span class="co"># balance and swap/shuffle</span></span>
<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a> <span class="st">'TeamKillLogger'</span>, <span class="co"># log teamkills</span></span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a> <span class="st">'Greeter'</span>, <span class="co"># message on first spawn</span></span>
<span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a> <span class="st">'Announcer'</span>, <span class="co"># messages at regular intervals</span></span>
<span id="cb5-9"><a href="#cb5-9" aria-hidden="true" tabindex="-1"></a> <span class="st">'VoteChat'</span>, <span class="co"># messages at regular intervals</span></span>
<span id="cb5-10"><a href="#cb5-10" aria-hidden="true" tabindex="-1"></a>]</span>
<span id="cb5-11"><a href="#cb5-11" aria-hidden="true" tabindex="-1"></a>plugins_admin_nobots <span class="op">=</span> [</span>
<span id="cb5-12"><a href="#cb5-12" aria-hidden="true" tabindex="-1"></a> <span class="st">'Carousel'</span>, <span class="co"># map rotation</span></span>
<span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a>]</span>
<span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a>plugins_admin_linux <span class="op">=</span> [</span>
<span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a> <span class="st">'NameChecker'</span>, <span class="co"># purge nazi names</span></span>
<span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a>]</span>
<span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a>plugins_admin_beta <span class="op">=</span> [</span>
<span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a> <span class="st">'CamSetup'</span>, <span class="co"># enable chasecams</span></span>
<span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a>]</span></code></pre></div>
<p>On linux servers, you can check for squad names and playernames, if
they match a (nazi) badlist.</p>
<p>On betatest servers, chasecams are enabled.</p>
<p>On servers with bots (singleplayer and coop), randomized map rotation
is not available.</p>
<h3 id="carousel">Map Randomizer</h3>
<p>Maps are picked randomly from the server maplist. It will avoid
running the same map twice in a row, and it will avoid running two maps
of the same theatre (e.g. africa) back to back.</p>
<p>For randomized map rotation to work, all maps need to have a
<code>meta.toml</code> metadata file in the level basedir (outside of
the .zip files). See example for <strong>Arad</strong>:</p>
<div class="sourceCode" id="cb6"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="dt">layers</span> <span class="op">=</span> <span class="op">[</span> <span class="dv">16</span><span class="op">,</span> <span class="dv">32</span><span class="op">,</span> <span class="dv">64</span><span class="op">,]</span></span>
<span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a><span class="dt">intervals</span> <span class="op">=</span> <span class="op">[</span> <span class="op">[</span> <span class="dv">0</span><span class="op">,</span> <span class="dv">22</span><span class="op">,],</span> <span class="op">[</span> <span class="dv">23</span><span class="op">,</span> <span class="dv">44</span><span class="op">,],</span> <span class="op">[</span> <span class="dv">45</span><span class="op">,</span> <span class="dv">100</span><span class="op">,],]</span></span>
<span id="cb6-3"><a href="#cb6-3" aria-hidden="true" tabindex="-1"></a><span class="dt">front</span> <span class="op">=</span> <span class="op">[</span> <span class="st">"east"</span><span class="op">,]</span></span>
<span id="cb6-4"><a href="#cb6-4" aria-hidden="true" tabindex="-1"></a><span class="dt">date</span> <span class="op">=</span> <span class="st">"1944-09-14"</span></span>
<span id="cb6-5"><a href="#cb6-5" aria-hidden="true" tabindex="-1"></a><span class="dt">teams</span> <span class="op">=</span> <span class="op">[</span> <span class="st">"Germany"</span><span class="op">,</span> <span class="st">"Russia"</span><span class="op">,]</span></span>
<span id="cb6-6"><a href="#cb6-6" aria-hidden="true" tabindex="-1"></a><span class="dt">version_added</span> <span class="op">=</span> <span class="st">"2.56"</span></span>
<span id="cb6-7"><a href="#cb6-7" aria-hidden="true" tabindex="-1"></a><span class="dt">authors</span> <span class="op">=</span> <span class="op">[</span> <span class="st">"hitm4k3r"</span><span class="op">,]</span></span></code></pre></div>
<p>“layers” is all the existing layers that a map has – if a map is
missing layers in your installation (or they are WIP), remove those! You
can remove them from the maplist, too, of course.</p>
<p>“intervals” means on 0-22 players it will pick 16p layer next, on
23-44 it will pick 32p layer, etc. these can be adjusted per map. E.g.
if the last layer is <code>[45, 75]</code>, the map will not get picked
on a full (100 ppl) server.</p>
<h3 id="admin-rights">Admin Rights</h3>
<p>In the <code>admins.toml</code> file, add the
<code>admins_high</code>, <code>_low</code>, and <code>_mid</code> lists
to the <code>[users]</code> section, with the hashes of the admins.
Example below:</p>
<div class="sourceCode" id="cb7"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[users]</span></span>
<span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a><span class="co"># if the admin arrays are empty, </span></span>
<span id="cb7-3"><a href="#cb7-3" aria-hidden="true" tabindex="-1"></a><span class="co"># defaults to "everything is allowed"</span></span>
<span id="cb7-4"><a href="#cb7-4" aria-hidden="true" tabindex="-1"></a><span class="dt">admins_high</span> <span class="op">=</span> <span class="op">[</span></span>
<span id="cb7-5"><a href="#cb7-5" aria-hidden="true" tabindex="-1"></a> <span class="st">"d722905f13f2e89553837ab9bbe42302"</span><span class="op">,</span> <span class="co"># user a</span></span>
<span id="cb7-6"><a href="#cb7-6" aria-hidden="true" tabindex="-1"></a><span class="op">]</span></span>
<span id="cb7-7"><a href="#cb7-7" aria-hidden="true" tabindex="-1"></a><span class="dt">admins_mid</span> <span class="op">=</span> <span class="op">[</span></span>
<span id="cb7-8"><a href="#cb7-8" aria-hidden="true" tabindex="-1"></a> <span class="st">"732753cd11d331e64867057cfdc7ecd5"</span><span class="op">,</span> <span class="co"># who this?</span></span>
<span id="cb7-9"><a href="#cb7-9" aria-hidden="true" tabindex="-1"></a> <span class="st">"74598b621924620609b37a12a2473819"</span><span class="op">,</span> <span class="co"># another</span></span>
<span id="cb7-10"><a href="#cb7-10" aria-hidden="true" tabindex="-1"></a><span class="op">]</span></span>
<span id="cb7-11"><a href="#cb7-11" aria-hidden="true" tabindex="-1"></a><span class="dt">admins_low</span> <span class="op">=</span> <span class="op">[</span></span>
<span id="cb7-12"><a href="#cb7-12" aria-hidden="true" tabindex="-1"></a> <span class="st">"45d8218d92cd1c3de9508ad5133a1693"</span><span class="op">,</span> <span class="co"># some mod</span></span>
<span id="cb7-13"><a href="#cb7-13" aria-hidden="true" tabindex="-1"></a><span class="op">]</span></span></code></pre></div>
<h3 id="nazi-word-blacklist">Nazi Word Blacklist</h3>
<p>Define forbidden words for usernames/squads in the
<code>badnames.toml</code>: if anyone joins with e.g. “adolf” in the
name, they get auto-banned. If you make a squad named “1488”, you get
auto-kicked.</p>
<div class="sourceCode" id="cb8"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb8-1"><a href="#cb8-1" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb8-2"><a href="#cb8-2" aria-hidden="true" tabindex="-1"></a><span class="co"># usernames/squadnames that get you autokicked</span></span>
<span id="cb8-3"><a href="#cb8-3" aria-hidden="true" tabindex="-1"></a><span class="dt">words</span> <span class="op">=</span> <span class="op">[</span></span>
<span id="cb8-4"><a href="#cb8-4" aria-hidden="true" tabindex="-1"></a> <span class="st">"adolf"</span><span class="op">,</span> <span class="st">"sieg heil"</span><span class="op">,</span> <span class="st">"siegheil"</span><span class="op">,</span></span>
<span id="cb8-5"><a href="#cb8-5" aria-hidden="true" tabindex="-1"></a> <span class="st">"waffen_ss"</span><span class="op">,</span> </span>
<span id="cb8-6"><a href="#cb8-6" aria-hidden="true" tabindex="-1"></a><span class="op">]</span></span></code></pre></div>
<h2 id="main-configuration">Main Configuration</h2>
<p>Configuration is done in the <code>config.toml</code> config
file.</p>
<p>Set debug (for more aggressive logs/warnings), and beta (to enable
beta commands)</p>
<div class="sourceCode" id="cb9"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[general]</span></span>
<span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a><span class="dt">debug</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a><span class="dt">beta</span> <span class="op">=</span> <span class="cn">true</span></span></code></pre></div>
<h3 id="messages">Messages</h3>
<p>Configure which messages are shown.</p>
<p>The <code>welcome</code> line is displayed when you first spawn.</p>
<p>The <code>rules</code> message is displayed when someone uses the
ingame <code>!rules</code> command.</p>
<p>The <code>announce</code> message list is a set of messages which are
displayed every <code>announce_interval</code> seconds.</p>
<p>The <code>show_disconnect</code> setting decides whether to print a
line when a player disconnects.</p>
<p>The <code>show_connect</code> setting decides whether to print a line
FOR ADMINS when a player connects.</p>
<div class="sourceCode" id="cb10"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[messages]</span></span>
<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a><span class="co"># displayed on first spawn after join</span></span>
<span id="cb10-3"><a href="#cb10-3" aria-hidden="true" tabindex="-1"></a><span class="co"># the <PLAYER> token will be replaced </span></span>
<span id="cb10-4"><a href="#cb10-4" aria-hidden="true" tabindex="-1"></a><span class="co"># with the actual player name</span></span>
<span id="cb10-5"><a href="#cb10-5" aria-hidden="true" tabindex="-1"></a><span class="co"># if you want to disable this, put `welcome = ""`</span></span>
<span id="cb10-6"><a href="#cb10-6" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb10-7"><a href="#cb10-7" aria-hidden="true" tabindex="-1"></a><span class="dt">welcome</span> <span class="op">=</span> <span class="st">"Welcome <PLAYER> to the FH2 Test Server!"</span></span>
<span id="cb10-8"><a href="#cb10-8" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb10-9"><a href="#cb10-9" aria-hidden="true" tabindex="-1"></a><span class="co"># short line pointing to server rules website</span></span>
<span id="cb10-10"><a href="#cb10-10" aria-hidden="true" tabindex="-1"></a><span class="dt">rules</span> <span class="op">=</span> <span class="st">"For Rules visit XXX"</span></span>
<span id="cb10-11"><a href="#cb10-11" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb10-12"><a href="#cb10-12" aria-hidden="true" tabindex="-1"></a><span class="co"># those will be displayed regularly </span></span>
<span id="cb10-13"><a href="#cb10-13" aria-hidden="true" tabindex="-1"></a><span class="co"># if you want to disable these, put `announce = []`</span></span>
<span id="cb10-14"><a href="#cb10-14" aria-hidden="true" tabindex="-1"></a><span class="dt">announce</span> <span class="op">=</span> <span class="op">[</span></span>
<span id="cb10-15"><a href="#cb10-15" aria-hidden="true" tabindex="-1"></a> <span class="st">"Join us on FH2 Discord"</span><span class="op">,</span></span>
<span id="cb10-16"><a href="#cb10-16" aria-hidden="true" tabindex="-1"></a> <span class="st">"Check out fhmod.org for news"</span><span class="op">,</span></span>
<span id="cb10-17"><a href="#cb10-17" aria-hidden="true" tabindex="-1"></a> <span class="st">"We love you all <3"</span><span class="op">,</span></span>
<span id="cb10-18"><a href="#cb10-18" aria-hidden="true" tabindex="-1"></a> <span class="st">"Jean a une longue mustache honhonhon"</span><span class="op">,</span></span>
<span id="cb10-19"><a href="#cb10-19" aria-hidden="true" tabindex="-1"></a> <span class="st">"New CMP campaign is now open!"</span><span class="op">,</span></span>
<span id="cb10-20"><a href="#cb10-20" aria-hidden="true" tabindex="-1"></a> <span class="st">"Join the CMP campaign at cmp-gaming.com"</span><span class="op">,</span></span>
<span id="cb10-21"><a href="#cb10-21" aria-hidden="true" tabindex="-1"></a><span class="op">]</span></span>
<span id="cb10-22"><a href="#cb10-22" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb10-23"><a href="#cb10-23" aria-hidden="true" tabindex="-1"></a><span class="co"># if using announce, this is the interval in seconds</span></span>
<span id="cb10-24"><a href="#cb10-24" aria-hidden="true" tabindex="-1"></a><span class="dt">announce_interval</span> <span class="op">=</span> <span class="dv">300</span></span>
<span id="cb10-25"><a href="#cb10-25" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb10-26"><a href="#cb10-26" aria-hidden="true" tabindex="-1"></a><span class="co"># display message on disconnect. </span></span>
<span id="cb10-27"><a href="#cb10-27" aria-hidden="true" tabindex="-1"></a><span class="co"># recommended to only disable this if another</span></span>
<span id="cb10-28"><a href="#cb10-28" aria-hidden="true" tabindex="-1"></a><span class="co"># "X has disconnected" print script is active in parallel</span></span>
<span id="cb10-29"><a href="#cb10-29" aria-hidden="true" tabindex="-1"></a><span class="dt">show_disconnect</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb10-30"><a href="#cb10-30" aria-hidden="true" tabindex="-1"></a><span class="dt">show_connect</span> <span class="op">=</span> <span class="cn">true</span></span></code></pre></div>
<h3 id="bans-and-afk-kicks">Bans and (AFK) Kicks</h3>
<p>In this setting, configure the AFK autokicker and ban/kick related
things.</p>
<p>The <code>ban_duration</code> setting configures how long a temporary
ban is. Usually set at two weeks.</p>
<p>The AFK tracker checks every <code>idle_check_interval</code> seconds
if a player has been active. Otherwise it kicks them. On the default
settings, below a certain number of players however, players don’t get
kicked but autobalanced instead, so that the server is not emptied too
much.</p>
<div class="sourceCode" id="cb11"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb11-1"><a href="#cb11-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[janitor]</span></span>
<span id="cb11-2"><a href="#cb11-2" aria-hidden="true" tabindex="-1"></a><span class="co"># don't start kicking AFKs unless at least X players online</span></span>
<span id="cb11-3"><a href="#cb11-3" aria-hidden="true" tabindex="-1"></a><span class="dt">min_players_for_kick</span> <span class="op">=</span> <span class="dv">50</span></span>
<span id="cb11-4"><a href="#cb11-4" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb11-5"><a href="#cb11-5" aria-hidden="true" tabindex="-1"></a><span class="co"># if min_players_for_kick has not been reached, </span></span>
<span id="cb11-6"><a href="#cb11-6" aria-hidden="true" tabindex="-1"></a><span class="co"># at least balance the AFKs?</span></span>
<span id="cb11-7"><a href="#cb11-7" aria-hidden="true" tabindex="-1"></a><span class="dt">balance_afks_before_minplayers</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb11-8"><a href="#cb11-8" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb11-9"><a href="#cb11-9" aria-hidden="true" tabindex="-1"></a><span class="co"># seconds until you get kicked/balanced</span></span>
<span id="cb11-10"><a href="#cb11-10" aria-hidden="true" tabindex="-1"></a><span class="dt">max_idle_time</span> <span class="op">=</span> <span class="dv">600</span></span>
<span id="cb11-11"><a href="#cb11-11" aria-hidden="true" tabindex="-1"></a><span class="dt">idle_check_interval</span> <span class="op">=</span> <span class="dv">30</span></span>
<span id="cb11-12"><a href="#cb11-12" aria-hidden="true" tabindex="-1"></a><span class="dt">idle_yaw_threshold</span> <span class="op">=</span> <span class="fl">0.5</span></span>
<span id="cb11-13"><a href="#cb11-13" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb11-14"><a href="#cb11-14" aria-hidden="true" tabindex="-1"></a><span class="co"># bantime in seconds</span></span>
<span id="cb11-15"><a href="#cb11-15" aria-hidden="true" tabindex="-1"></a><span class="co"># good default is two weeks: 1209600 = 60 * 60 * 24 * 14</span></span>
<span id="cb11-16"><a href="#cb11-16" aria-hidden="true" tabindex="-1"></a><span class="dt">ban_duration</span> <span class="op">=</span> <span class="dv">1209600</span></span></code></pre></div>
<h3 id="map-rotation">Map Rotation</h3>
<p>How many maps to remember when avoiding duplications.
<code>n_last_played</code> defines how many rounds to wait until a map
can be played again.</p>
<p><code>n_last_categories</code> sets how many maps to wait until a map
category (winter, urban, eastfront, africa) can repeat itself. These are
setup in the <a href="#carousel">per-map configuration</a>. NOTE: it is
recommended to make this at least 2 smaller than the number of available
fronts!</p>
<p>The <code>favorites</code> list defines maps which maps will appear
in the rotation much more frequently, e.g. newly released ones.</p>
<div class="sourceCode" id="cb12"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[maps]</span></span>
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a><span class="co"># favorite maps that should </span></span>
<span id="cb12-3"><a href="#cb12-3" aria-hidden="true" tabindex="-1"></a><span class="co"># appear more often in the rotation</span></span>
<span id="cb12-4"><a href="#cb12-4" aria-hidden="true" tabindex="-1"></a><span class="co"># e.g. newly released maps; </span></span>
<span id="cb12-5"><a href="#cb12-5" aria-hidden="true" tabindex="-1"></a><span class="co"># favorites = ['stonne', 'flavion']</span></span>
<span id="cb12-6"><a href="#cb12-6" aria-hidden="true" tabindex="-1"></a><span class="dt">favorites</span> <span class="op">=</span> <span class="op">[]</span> </span>
<span id="cb12-7"><a href="#cb12-7" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb12-8"><a href="#cb12-8" aria-hidden="true" tabindex="-1"></a><span class="co"># don't repeat maps</span></span>
<span id="cb12-9"><a href="#cb12-9" aria-hidden="true" tabindex="-1"></a><span class="dt">n_last_played</span> <span class="op">=</span> <span class="dv">12</span></span>
<span id="cb12-10"><a href="#cb12-10" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb12-11"><a href="#cb12-11" aria-hidden="true" tabindex="-1"></a><span class="co"># don't repeat theatres (africa, winter, urban, ...)</span></span>
<span id="cb12-12"><a href="#cb12-12" aria-hidden="true" tabindex="-1"></a><span class="dt">n_last_fronts</span> <span class="op">=</span> <span class="dv">1</span></span></code></pre></div>
<h3 id="autobalancer">Autobalancer</h3>
<p>The <code>SteamRoller</code> plugin handles both auto-balancing
players <em>during</em> the round, and swaps the teams just before round
start. It’s possible to exclude certain players from being affected by
autobalance:</p>
<div class="sourceCode" id="cb13"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb13-1"><a href="#cb13-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[balance]</span></span>
<span id="cb13-2"><a href="#cb13-2" aria-hidden="true" tabindex="-1"></a><span class="dt">swap_on_start</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb13-3"><a href="#cb13-3" aria-hidden="true" tabindex="-1"></a><span class="dt">protect_commander</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb13-4"><a href="#cb13-4" aria-hidden="true" tabindex="-1"></a><span class="dt">protect_squadmembers</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb13-5"><a href="#cb13-5" aria-hidden="true" tabindex="-1"></a><span class="dt">protect_squadleader</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb13-6"><a href="#cb13-6" aria-hidden="true" tabindex="-1"></a><span class="dt">protect_admins</span> <span class="op">=</span> <span class="cn">false</span></span>
<span id="cb13-7"><a href="#cb13-7" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb13-8"><a href="#cb13-8" aria-hidden="true" tabindex="-1"></a><span class="dt">smb_difference</span> <span class="op">=</span> <span class="dv">1</span></span></code></pre></div>
<p>The <code>smb_difference</code> tells how big the difference between
teams needs to be to trigger balancing.</p>
<h3 id="hud">HUD</h3>
<p>FH2.6 introduces a new message system, where admin/gameplay messages
are <em>no longer buried in the killfeed</em>. Important messages are
also localized. If you would like the old behavior, or are running this
on a pre-2.6 server, disable this.</p>
<div class="sourceCode" id="cb14"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb14-1"><a href="#cb14-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[hud]</span></span>
<span id="cb14-2"><a href="#cb14-2" aria-hidden="true" tabindex="-1"></a><span class="dt">use_new_format</span> <span class="op">=</span> <span class="cn">true</span></span></code></pre></div>
<h3 id="stats-api">Stats API</h3>
<p>Config for the stats API that the PlayFH2 server uses (contact them
for questions)</p>
<div class="sourceCode" id="cb15"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[stats_api]</span></span>
<span id="cb15-2"><a href="#cb15-2" aria-hidden="true" tabindex="-1"></a><span class="dt">enabled</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb15-3"><a href="#cb15-3" aria-hidden="true" tabindex="-1"></a><span class="dt">backend_url</span> <span class="op">=</span> <span class="st">""</span></span>
<span id="cb15-4"><a href="#cb15-4" aria-hidden="true" tabindex="-1"></a><span class="dt">token</span> <span class="op">=</span> <span class="st">""</span></span></code></pre></div>
<h3 id="voting">Voting</h3>
<p>You can start votes to reroll the next map, or run the nextmap. To
cast a vote, write <code>!yes</code> or <code>!no</code> in chat.</p>
<div class="sourceCode" id="cb16"><pre
class="sourceCode toml"><code class="sourceCode toml"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="kw">[voting]</span></span>
<span id="cb16-2"><a href="#cb16-2" aria-hidden="true" tabindex="-1"></a><span class="dt">vote_runnext_allowed</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb16-3"><a href="#cb16-3" aria-hidden="true" tabindex="-1"></a><span class="dt">vote_reroll_allowed</span> <span class="op">=</span> <span class="cn">true</span></span>
<span id="cb16-4"><a href="#cb16-4" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb16-5"><a href="#cb16-5" aria-hidden="true" tabindex="-1"></a><span class="co"># vote duration and time between notifications (all seconds)</span></span>
<span id="cb16-6"><a href="#cb16-6" aria-hidden="true" tabindex="-1"></a><span class="dt">notify_period</span> <span class="op">=</span> <span class="dv">14</span></span>
<span id="cb16-7"><a href="#cb16-7" aria-hidden="true" tabindex="-1"></a><span class="dt">vote_duration</span> <span class="op">=</span> <span class="dv">60</span></span></code></pre></div>
</body>
</html>