Mapchooser with teamswap - by SGTEAM
What it does?
It will simply do a teamswap if the existing "extend map" option is voted, on map end votes. If this option wins, the teams will be swapped on round end, just like in Mani's Admin Plugin.
How does it do that?
It is hardcoded to do it. It will always do it, if extending is enabled in the existing mapchooser configuration, and voted for. There are no cvars to change. If you dont want the teamswap to happen, use the original mapchooser by Ferret, included in your SourceMOD installation. This modded mapchooser has only this one purpose.
How do i install it?
- Put this modded mapchooser.smx into your plugins folder. If you were using mapchooser already, be sure to have the original mapchooser.smx overwritten! (If you need, you will always find an original in the plugins/disabled folder.)
- Edit your exisiting mapchooser translation file, to have the text "Extend map" altered to "Extend map and swap teams". Or whatever you want to say there.
- Wait until mapchange, and it will work
Requirements, or dependencies?
None. But it is only tested on Counter-Strike:Source. It should work up to 64 players, however we tested it only on a 20(+1hreserved slot) slots server.
Does it have any problems?
Yes.
- It will give you a couple of errors in the logs on every teamswap, about client indexing. But this will not cause any problems in game. If someone figures out why the error happens, tell me and we will fix it
- It could sometimes interfere with the RTV plugin, if votes are started the same time. But the original mapchooser does this also, so this is not the problem of this modded plugin.
- DO NOT RELOAD this plugin, via sm plugins reload! The map end vote will go crazy, if you do that. Wait until mapchange, or restart your server.
Version History
1.0 - Initial Release (Based on SM v1854 version)
Credits
To Ferret, for writing the original plugin, and giving permission to release this here.
To [SG]Dodo55, for the coding help.
Please note, that this plugin is just a temporary solution to this problem. The SourceMOD team is working on a rewrite of the whole rtv/mapchooser system, and when that is released, this will become obsolete. So for this, and maybe other reasons, this plugin may never get Approved.
Anyways, you can see this plugin working on our server (see sig - if you can join, because its country limited).
You can visit our homepage here:
http://team.sg.hu
(will post the sp later)