AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Player Switch Menu and Team Panel v1.2.1 (https://forums.alliedmods.net/showthread.php?t=148874)

seattle_ice 01-30-2011 02:32

[L4D2] Player Switch Menu and Team Panel v1.2.1
 
3 Attachment(s)
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

http://www.nthtechnologies.com/forum.../TPTopMenu.JPG
http://www.nthtechnologies.com/forum...SwitchMenu.JPG
http://www.nthtechnologies.com/forum...MenuSwitch.JPG
http://www.nthtechnologies.com/forum...TPMenuSwap.JPG
http://www.nthtechnologies.com/forum...PMenuDebug.JPG
http://www.nthtechnologies.com/forum...TPMenuMain.JPG
http://www.nthtechnologies.com/forum...PCurrPanel.JPG

Cthulhu 02-06-2011 11:15

Re: L4D2 Player Switch Menu and Team Panel
 
l4d2_bwa_teams_panel.txt goes to?

delirium_trigger 02-06-2011 16:29

Re: L4D2 Player Switch Menu and Team Panel
 
Quote:

Originally Posted by Cthulhu (Post 1408570)
l4d2_bwa_teams_panel.txt goes to?


Looks like signatures. Usually these go in the gamedata folder. Try that first.

seattle_ice 02-09-2011 02:43

Re: L4D2 Player Switch Menu and Team Panel
 
Quote:

Originally Posted by Cthulhu (Post 1408570)
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.

crazydog 02-09-2011 03:12

Re: L4D2 Player Switch Menu and Team Panel
 
Awesome. Nice to have a working swap plugin again. I was getting frustrated of manually switching through spec.

seattle_ice 02-09-2011 18:30

Re: L4D2 Player Switch Menu and Team Panel
 
Quote:

Originally Posted by crazydog (Post 1410686)
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.

PpZ | Iconoclast 02-22-2011 11:02

Re: L4D2 Player Switch Menu and Team Panel
 
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!

seattle_ice 02-22-2011 20:38

Re: L4D2 Player Switch Menu and Team Panel
 
Quote:

Originally Posted by PpZ | Iconoclast (Post 1421107)
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.

PpZ | Iconoclast 02-22-2011 22:00

Re: L4D2 Player Switch Menu and Team Panel
 
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? :)

nicoh93 02-22-2011 22:38

Re: L4D2 Player Switch Menu and Team Panel
 
l4d1 compatible?


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

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