About:
[L4D\2] Campaign/Map Voter gives players the ability to start a vote to change campaigns/maps. This plugin is meant for servers that have a static gamemode. It checks the current gamemode and displays a list of maps available for that game mode. Also admins with mapchange flag will bypass the voting process and instantly initiate a changelevel.
This is my first plugin. I was looking for a plugin that allows players to vote for custom maps and also allow voting for different gamemodes. So I whipped this one together based on the old l4d_gamemode_changer plugin and the more recent l4d2_campaign manager plugin. Creds to the original authors, but I've changed so much in this one, I guess I can call it my own.
Usage: Type
!mapvote in chat to bring up the map list menu to start a vote.
For gametypes coop, versus, realism, teamversus: The menu will display Campaigns only. [I can change this if there's enough demand for it.]
For gametypes survival, scavenge, and teamscavenge: The menu will display all available maps that support these modes.
This plugin should work for both L4D and L4D2, but I've only tested it on 2.
Cvars:
l4d_mapvote_version - Plugin Version
l4d_mapvote_announce_mode - (default 1) Controls how announcement is displayed. 0 disables the help messages, 1 displays the messages in normal chat window, 2 displays the messages in hint text, 3 displays the messages in center text
sm_mapvotetime - (default 20) Default time to vote on a map in seconds
Commands:
sm_mapvote - Allows players to start a map vote.
!mapvote - Chat command for starting vote.
Known Issues:
Changelog:
To Do:- Add support for Custom Campaigns/Maps - which is the sole reason I used Campaigns instead of individual map names for versus/coop.
- Add support for voting on gamemodes, though it may be a little complex for me ATM since l4d1 and l4d2 handle gamemodes differently.
- Any suggestions?
Install
This supports both L4D1 and L4D2.
Place l4d2_mapvote.smx in sourcemod/plugins.
Or compile l4d2_mapvote.sp with your version of SM.
ENJOY!!