Keine Map-Abstimmung nach Spielende (mp_endmatch_votenextmap 0)
Gilt für Match- und Messer-Server. Die nächste Map legt das Veto fest, die App lädt sie selbst.
This commit is contained in:
1 parent
cc6e7f65be
commit
be42beb260
3 files changed
+5
No files matched your search
@@ -59,6 +59,8 @@ export function buildMapCommands({ match, pool, seriesMap, secrets, settings, lo
|
|||||||
`mp_maxrounds ${isWingman ? settings.maxRoundsWingman : settings.maxRoundsCompetitive}`,
|
`mp_maxrounds ${isWingman ? settings.maxRoundsWingman : settings.maxRoundsCompetitive}`,
|
||||||
`mp_overtime_enable ${settings.overtime ? 1 : 0}`,
|
`mp_overtime_enable ${settings.overtime ? 1 : 0}`,
|
||||||
'mp_match_can_clinch 1',
|
'mp_match_can_clinch 1',
|
||||||
|
// Keine Map-Abstimmung nach Spielende: die nächste Map legt das Veto fest
|
||||||
|
'mp_endmatch_votenextmap 0',
|
||||||
'mp_autoteambalance 0',
|
'mp_autoteambalance 0',
|
||||||
'mp_limitteams 0',
|
'mp_limitteams 0',
|
||||||
// Aufwärmphase läuft, bis der Organisator das Match startet (mp_warmup_end)
|
// Aufwärmphase läuft, bis der Organisator das Match startet (mp_warmup_end)
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ export function buildKnifeCommands({ map, pool = { gameType: 0, gameMode: 1 }, w
|
|||||||
// Eine Runde entscheidet, danach startet das Spiel von selbst neu (für die nächsten Teams)
|
// Eine Runde entscheidet, danach startet das Spiel von selbst neu (für die nächsten Teams)
|
||||||
'mp_maxrounds 1',
|
'mp_maxrounds 1',
|
||||||
'mp_match_can_clinch 1',
|
'mp_match_can_clinch 1',
|
||||||
|
// Keine Map-Abstimmung nach Spielende: die nächste Map legt das Veto fest
|
||||||
|
'mp_endmatch_votenextmap 0',
|
||||||
'mp_match_end_restart 1',
|
'mp_match_end_restart 1',
|
||||||
'mp_match_restart_delay 10',
|
'mp_match_restart_delay 10',
|
||||||
'mp_halftime 0',
|
'mp_halftime 0',
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ test('Log-Weiterleitung wird vor dem Mapwechsel gesetzt, unsichere URLs nicht',
|
|||||||
};
|
};
|
||||||
const ok = buildMapCommands({ ...base, logUrl: 'http://192.168.178.31:3000/api/logs/abc_D-1/KEY123' }).beforeMapChange;
|
const ok = buildMapCommands({ ...base, logUrl: 'http://192.168.178.31:3000/api/logs/abc_D-1/KEY123' }).beforeMapChange;
|
||||||
assert.ok(ok.includes('logaddress_add_http "http://192.168.178.31:3000/api/logs/abc_D-1/KEY123"'));
|
assert.ok(ok.includes('logaddress_add_http "http://192.168.178.31:3000/api/logs/abc_D-1/KEY123"'));
|
||||||
|
assert.ok(buildMapCommands({ ...base, logUrl: 'http://x/api/logs/a/b' }).afterMapChange.includes('mp_endmatch_votenextmap 0'), 'keine Map-Abstimmung nach dem Match');
|
||||||
assert.ok(ok.indexOf('log on') < ok.indexOf('changelevel de_nuke'));
|
assert.ok(ok.indexOf('log on') < ok.indexOf('changelevel de_nuke'));
|
||||||
const bad = buildMapCommands({ ...base, logUrl: 'http://x"; quit' }).beforeMapChange;
|
const bad = buildMapCommands({ ...base, logUrl: 'http://x"; quit' }).beforeMapChange;
|
||||||
assert.ok(!bad.some((c) => c.startsWith('logaddress')));
|
assert.ok(!bad.some((c) => c.startsWith('logaddress')));
|
||||||
|
|||||||
Reference in new issue
Block a user