Raised This Month: $51 Target: $400
 12% 

[L4D\2] Campaign/Map Voter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
satannuts
Member
Join Date: Jan 2010
Plugin ID:
1593
Plugin Version:
0.666 beta
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to call a vote to change Campaign/maps.
    Old 04-06-2010 , 02:01   [L4D\2] Campaign/Map Voter
    Reply With Quote #1

    [L4D\2] Campaign/Map Voter
    by satannuts

    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:
    • None so far.

    Changelog:
    • .666 beta
      • Initial version

    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!!
    Attached Thumbnails
    Click image for larger version

Name:	c3m2_swamp0000.jpg
Views:	31934
Size:	97.8 KB
ID:	63114   Click image for larger version

Name:	l4d2_efp0000.jpg
Views:	31700
Size:	93.9 KB
ID:	63115  
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_mapvote.sp - 11308 views - 10.8 KB)

    Last edited by satannuts; 04-20-2010 at 14:56.
    satannuts is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 18:45.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode