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

[L4D2] Player Switch Menu and Team Panel v1.2.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
seattle_ice
Member
Join Date: Dec 2010
Plugin ID:
2197
Plugin Version:
1.2.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Menus and commands for player team switching, swapping two players directly, viewing of current and last round team lineups by players and admins
    Old 01-30-2011 , 02:32   [L4D2] Player Switch Menu and Team Panel v1.2.1
    Reply With Quote #1

    Switch a players teams, Swap two players, view current teams and teams as of last round, swap directly with a player on the other team, change to any team at any time, as an admin or a player, pause/unpause the game, unscramble and swap whole teams, and more.

    This started as a compilation of the ideas and code from three other plugins, but has grown considerably since then.

    It offers an Admin menu and a players menu to help with team switching and spectator control during a game.

    Big thanks to the other authors on here, for providing the ideas as well as the plugins to spark this project;

    The ideas and code basis for the team/player swapping capabilities comes from the TeamSWITCH plugin by SkyDavid (djromero).

    The players panel concept and code basis comes from l4d_teamspanel by OtterNas3.

    The spectator control concept and code basis comes from SpecStaysSpec by DieTeetasse.


    Admin Menu Items:
    1. Switch Player - bring up a menu with all the in game players to let you select one, then choose what team to move them to.
    2. Swap Players - brings up a menu to let you select a player, then another menu that show all the players not on the same team as the first player. When selected, the two players will be swapped.
    3. Unscramble Teams - Attempts to move players to the teams they were on at the end of the last round. Does not account for order changing because of score.
    4. Swap Both Teams - Swap all infected and survivors to the other team
    5. Pause Game - pause the game
    6. Unpause Game - unpause the game, with a 5 second count down
    7. Current Teams - Displays a panel that show all the current team/spectator alignments, including bots
    8. Last Round Teams - Display a panel that shows the alignment of all the players and teams at the end of the last round played.
    9. Debugging options - Displays a menu that allow you to set various debugging options for the plugin.

    Player Menu Items:
    1. Switch to Spectator - Will immediately switch you to spectator
    2. Switch to Survivor - Will immediately switch you to survivor
    3. Switch To Infected - will immediately switch you to the infected team.
    4. Swap teams with someone - Displays a menu of all the players on the other team(s), and when you select one, it will then display a menu to that player, asking them if they want to swap with you. This is a great way to straighten out those jumbled up teams at the map change.
    5. View Current Teams Info - Displays a panel that show all the current team/spectator alignments, including bots
    6. View Last Round Teams Info - Display a panel that shows the alignment of all the players and teams at the end of the last round played.

    Spectator Control
    1. Keeps track of who was on spectator at the end of each round, and attempts to keep them there if they join a team at the beginning of the next round.

    Console Commands
    • aboutpanel
    • showcurrteams
    • showlastteams
    • joinspec
    • joinsurvivor
    • joininfected
    • swapteams
    • switchmenu
    • sm_switchplayer <playerindex> [1=Spectator;2=Survivor;3=Infected]
    • sm_swapplayers <playerindex1> <playerindex2>
    • sm_debug [0 = Off|1 = PrintToChat|2 = LogToFile|3 = PrintToChat AND LogToFile]

    To install: Place the l4d2_bwa_teams_panel.smx in the Sourcemod\Plugins folder, and the l4d2_bwa_teams_panel.txt in the Sourcemod\Gamedata folder.

    Version Information:

    1.1.5: (2/9/2011)
    • [FIXED] - Display for last rounds players showing incorrectly
    • [ADDED] - Pause/Unpause game functionality on Admin Menu
    • [ADDED] - Unscramble Players feature on Admin Menu - attempts to place all the players back on the teams they were on at the end of the previous round
    • [ADDED] - Swap Teams: Swaps all the Survivors and Infected to the other team
    • [ADDED] - Admin Menu Sorting text file for convenience

    1.1.6: (2/9/2011)
    • Added cvar 'l4d2_BwA_TeamPanel_AllowPubs' Allow public access to commands [0 = No|1 = Yes], default = 1(yes). The plugin does not create a config, just add this to your server config if you want it.

    1.1.7: (2/27/2011)
    • [ADDED] - cvar 'l4d2_BwA_SelectTeam_From_Panel' Allow Team Switching from panel [0 = No|1 = Yes], default = 1(yes). The plugin does not create a config, just add this to your server config if you want it.
    • [ADDED] - As per the above ConVar, you can now switch teams by selecting the 1, 2 or (3) keys while the panel is displayed, if the above is set to on.
    • Removed the superfluous MaxClients, MAX_SURVS AND MAX_INF displays at bottom of panel.
    • [FIXED] - Compiler warning(sm 1.3.6 stable): "function "SwapWithMe" should return a value".
    • [ADDED] - Team Headings on panel are numbered to match team numbers (1,2 and 3).
    • [ADDED] - Some of the warning/information returns have better information now.

    1.1.8: (2/27/2011)
    • [ADDED] - Indicator next to player names on panel for dead players "*", and who is the current tank, if there is one "[Tank]"

    1.1.9: (2/27/2011)
    • [ADDED] - cvar 'l4d2_BwA_Print_Chat_MsgType'"Determine the type and frequency of information printed to the in game chat [0 = none|1 = simple messages|2 = verbose color coded messages]"

    1.2.0: (2/27/2011)
    • [ADDED] - cvar 'l4d2_BwA_Show_ClientID'"Show the clientid next to the player name in the panel [0 = No|1 = Yes] - Default = 1"


    1.2.1: (2/27/2011)
    • [ADDED] - cvar 'l4d2_BwA_TeamPanel_EnablePause' "Enable/Disable this plugins pause feature (default = 1) [0 = disabled|1 = enabled]"

    1.2.2: (2/27/2011)
    • [ADDED] - Enabled plugin to run in L4D1







    Attached Files
    File Type: txt l4d2_bwa_teams_panel.txt (1.1 KB, 5732 views)
    File Type: txt adminmenu_sorting.txt (379 Bytes, 5231 views)
    File Type: sp Get Plugin or Get Source (l4d2_bwa_teamspanel.sp - 8029 views - 53.4 KB)

    Last edited by seattle_ice; 11-18-2011 at 15:21. Reason: New Version 1.2.2
    seattle_ice is offline
    Cthulhu
    Member
    Join Date: Apr 2010
    Old 02-06-2011 , 11:15   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #2

    l4d2_bwa_teams_panel.txt goes to?
    __________________
    Cthulhu is offline
    delirium_trigger
    SourceMod Donor
    Join Date: Apr 2009
    Location: Washington
    Old 02-06-2011 , 16:29   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #3

    Quote:
    Originally Posted by Cthulhu View Post
    l4d2_bwa_teams_panel.txt goes to?

    Looks like signatures. Usually these go in the gamedata folder. Try that first.
    delirium_trigger is offline
    seattle_ice
    Member
    Join Date: Dec 2010
    Old 02-09-2011 , 02:43   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #4

    Quote:
    Originally Posted by Cthulhu View Post
    l4d2_bwa_teams_panel.txt goes to?
    As deliruim said, the 'Sourcemod\gamedata' folder. I will add that to the info in the first post.
    seattle_ice is offline
    crazydog
    AlliedModders Donor
    Join Date: Jan 2006
    Old 02-09-2011 , 03:12   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #5

    Awesome. Nice to have a working swap plugin again. I was getting frustrated of manually switching through spec.
    crazydog is offline
    seattle_ice
    Member
    Join Date: Dec 2010
    Old 02-09-2011 , 18:30   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #6

    Quote:
    Originally Posted by crazydog View Post
    Awesome. Nice to have a working swap plugin again. I was getting frustrated of manually switching through spec.
    Our problem is that we play a lot of large versus games (8 on 8 and such) and the game is always swapping people around. So we needed a faster and better way to keep track and make multiple switches.
    seattle_ice is offline
    PpZ | Iconoclast
    Senior Member
    Join Date: Feb 2008
    Old 02-22-2011 , 11:02   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #7

    Haven't installed it on my server yet, but I certainly will later this evening...I've been looking for a good teamswitch plugin.

    One question: is it possible to disable non-admin player access to the functions of the plugin? You said in your post that it can be abused if players know how to access it...while I'm sure most don't, is there some way that you can disable player access completely so that only admins are able to use the features?

    Cheers!
    __________________
    PpZ | Iconoclast is offline
    seattle_ice
    Member
    Join Date: Dec 2010
    Old 02-22-2011 , 20:38   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #8

    Quote:
    Originally Posted by PpZ | Iconoclast View Post
    Haven't installed it on my server yet, but I certainly will later this evening...I've been looking for a good teamswitch plugin.

    One question: is it possible to disable non-admin player access to the functions of the plugin? You said in your post that it can be abused if players know how to access it...while I'm sure most don't, is there some way that you can disable player access completely so that only admins are able to use the features?

    Cheers!

    Not at the moment, but that would be fairly easy to implement as a convar in the config file. I will look at that in the next day or two.
    seattle_ice is offline
    PpZ | Iconoclast
    Senior Member
    Join Date: Feb 2008
    Old 02-22-2011 , 22:00   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #9

    I notice there is a third file included with the original post: adminmenu_sorting.txt - does this have to go anywhere is it not needed at all? Thanks!

    EDIT: Nevermind, the contents of this file get added to the adminmenu_sorting.txt file in the /configs folder, right?
    __________________

    Last edited by PpZ | Iconoclast; 02-22-2011 at 22:02.
    PpZ | Iconoclast is offline
    nicoh93
    Member
    Join Date: Apr 2010
    Old 02-22-2011 , 22:38   Re: L4D2 Player Switch Menu and Team Panel
    Reply With Quote #10

    l4d1 compatible?
    nicoh93 is offline
    Reply


    Thread Tools
    Display Modes

    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 05:03.


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