View Full Version : Server Force Swap Teams At The End of a Round?
Does anybody know how to have the server force a swap teams at then end of a round?
would
set m0 "set g_nextMap $m0;spawnServer campaign_demo;swap_teams"
work?
RotzKotz_ere
09-11-2007, 12:38 AM
nope
I think you just mixed the map and a campaign
the campaign_demo already is a campaign.
To swap teams after each round (not campaign) you'd have to edit/create a campaign
set m0 "set g_nextMap $m0;spawnServer campaign_demo"
This line is what I already have running for a campaign. However, I would like it so that a player switches teams at the end of 3 rounds (the campaign). As it is, if you join the Strogg, you play it forever. You are stuck on one team. It would be nice to run the course of a campaign as Strogg, and then flip that team over to GDF at the end of the three maps.
RotzKotz_ere
09-11-2007, 10:41 AM
then try the italic code of post #1
Babylon
09-11-2007, 01:19 PM
Thx :confused:
good find that...I like it....will test tonight
If you discover it doesnt work before then..can you let me know..:p
You have 4 hours to test it :D
Lekdevil.NL
09-11-2007, 01:51 PM
Does anybody know how to have the server force a swap teams at then end of a round?
would
set m0 "set g_nextMap $m0;spawnServer campaign_demo;swap_teams"
work?
No, because swap_teams isn't a valid command. This will work:
set s0 "set g_nextMap $s0;admin shuffleteams swap"
vstr s0
si_rules sdGameRulesCampaign
spawnServer campaign_demo
Combining spawnServer and admin shuffleteams swap on one command line is finicky, and I haven't been able to get it to work reliably yet. With just one campaign available for now, the config shown above will do the trick, though.
It works in objective mode as well:
set s0 "set g_nextMap $s0;admin shuffleteams swap"
vstr s0
si_rules sdGameRulesObjective
spawnServer valley
sponge
09-11-2007, 05:21 PM
If you're not concerned about campaign, run your server in Stopwatch mode which will swap teams every time a round is completed.
Yes, SW does that, and we already have a SW server for this.
However, XP is not saved. We would like a similar setup up but for campaign. This way you would play GDF three rounds in a row during a campaign (with XP saved), then a new campaign would start. You would then be swapped to the Strogg for three more rounds where XP would be saved...Then back to GDF etc, etc...
Babylon
09-11-2007, 07:54 PM
............. You would then be swapped to the Strogg for three more rounds where XP would be saved...Then back to GDF etc, etc...............
eww..i feel dizzy :p
eww..i feel dizzy :p
Aww come on now...
It's the QDub circle of life...
Hakuna Matata
:D
=50K=MadMac
09-12-2007, 10:26 AM
No, because swap_teams isn't a valid command. This will work:
set s0 "set g_nextMap $s0;admin shuffleteams swap"
vstr s0
si_rules sdGameRulesCampaign
spawnServer campaign_demo
Combining spawnServer and admin shuffleteams swap on one command line is finicky, and I haven't been able to get it to work reliably yet. With just one campaign available for now, the config shown above will do the trick, though.
It works in objective mode as well:
set s0 "set g_nextMap $s0;admin shuffleteams swap"
vstr s0
si_rules sdGameRulesObjective
spawnServer valley
Where do I enter those commands? In the console or is there a file I need to edit. I want to enable team swap after each round, suprised it was not added by default tbh...
Babylon
09-12-2007, 10:46 AM
its at the end of the .cfg file you use for your server.
go to the .../base folder under quakwars install, and locate the .cfg file you created possibly with the serverlauncher. By default now i think there is a match.cfg and public.cfg...these arent your general config.
If theres more than one..find the one that has your server name at the top etc.
Implemented this on the server last night. It work's great :D
=50K=MadMac
09-20-2007, 12:36 PM
its at the end of the .cfg file you use for your server.
go to the .../base folder under quakwars install, and locate the .cfg file you created possibly with the serverlauncher. By default now i think there is a match.cfg and public.cfg...these arent your general config.
If theres more than one..find the one that has your server name at the top etc.
Our server is one hosted by Multiplay.co.uk, so we can only edit one file (we don't have ftp access). The file we can edit is the server.cfg - here it is as it is currently:
// New for ET:QW
//seta g_autoFireTeam "1"
//seta g_readyPercent "50"
//seta si_teamDamage "1"
//seta bot_pause "1"
seta bot_enable "0"
//seta si_warmup "2"
//seta pm_useCylinder "0"
// Temporary Workarounds
seta net_clientServerTimeout "60"
seta net_serverClientTimeout "60"
// Info Settings
seta si_motd_1 "WELCOME TO 50KLICKS ET:QW SERVER"
seta si_motd_2 "SIGN UP AT: WWW.50KLICKS.COM FOR EXCLUSIVE MEMBER BENEFITS"
seta si_motd_3 "BF2 AND 2142 SERVERS ALSO AVAILABLE"
seta si_motd_4 "JOIN US FOR FUN FRIENDLY AND WELL ADMINNED SERVERS"
seta si_website "http://www.50klicks.com"
seta si_email "$$admin_email$$"
seta si_admin "$$admin_name$$"
// Server Settings
seta si_spectators "2"
seta si_timeLimit "$$timelimit$$"
seta si_minPlayers "0"
seta si_maxPlayers "$$max_players$$"
seta si_name "$$name$$"
seta si_pure "1"
seta g_spectatorChat "0"
seta g_password "$$game_passwd$$"
seta si_needPass "$$game_passworded_flag$$"
seta si_autobalance "0"
seta si_shuffle "0"
seta si_allowHitscanTint "2"
seta si_disableVoting "0"
seta net_clientMaxRate "16000"
seta net_serverMaxClientRate "16000"
seta net_serverRemoteConsolePassword "$$admin_passwd$$"
seta net_serverAllowServerMod "1"
seta net_serverDownload "1"
seta net_serverPunkbusterEnabled "1"
seta si_serverURL "http://redirect.multiplay.co.uk/etqw/"
// Logging Setting
seta logfile "2"
seta logTimeStamps "1"
seta logFileName "console_$Y-$M-$D_$h.$m.$s.log"
// Map list don't touch!!
$$maplist_519$$
Do the commands to enable team swap go in there? :confused: