Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. csgo-pug-setup
  2. ===========================
  3.  
  4. This is a useful plugin for managing pug games, especially **10 mans**/gathers. It allows a player to type .setup into chat and select (from a menu):
  5. - how to choose the teams (players do it manually, random teams, captains select teams)
  6. - how to choose the map (use the current map, do a map vote using maps from addons/sourcemod/configs/pugsetup/maps.txt)
  7.  
  8. The goal is to allow a **lightweight, easy-to-use setup system** that automates as much as possible with as few dependencies as possible. However,
  9. the goal isn't fully automated - it assumes the players know each other or there is an admin. There is no mechanism for kicking players or anything similar.
  10.  
  11. Part of being lightweight is doing nothing that can interfere with the server's performance. **When the game is actually live, the plugin is doing extremely little work** - the only thing it does is read chat commands (e.g. pausing when a captain types .pause). Otherwise, there is 0 effect on gameplay and the rounds progress the same as without sourcemod on the server. This is in contrast to the WarMod plugin or what ESEA server use, where they are tracking the overall score, overriding the in-game warmup period, etc.
  12.  
  13. ### Download
  14. You should be able to get the most recent **pugsetup.zip** file from https://github.com/splewis/csgo-pug-setup/releases.
  15.  
  16.  
  17. ### Installation
  18. Download pugsetup.zip and extract the files to the game server. You should have installed at least:
  19. - csgo/addons/sourcemod/configs/pugsetup/maps.txt **(you might want to edit this)**
  20. - csgo/addons/sourcemod/plugins/pugsetup.smx
  21. - csgo/cfg/sourcemod/pugsetup/warmup.cfg **(you might want to edit this)**
  22. - csgo/cfg/sourcemod/pugsetup/standard.cfg **(you might want to edit this)**
  23.  
  24.  
  25. ### Usage
  26. There is a notion of the the pug/game "leader". This is the player that writes .setup first and goes through the setup menu. The leader has elevated permissions and can use some extra commands (e.g. pause). To prevent some abuse there is also an admin command sm_leader to manually change the leader.
  27.  
  28. Generally, here is what happens:
  29. - A player joins and types .setup and goes through the menu to select how the teams and map will be chosen
  30. - Other players join and all type .ready
  31. - If the leader setup for a map vote, the map vote will occur and the map will change, then all players will type .ready on the new map
  32. - If the leader setup for a captain-style team selection, the game will wait for when 2 captains are selected, then the captains will be given menus to chose players
  33. - Then, either by the leader typing .start or the game auto-living (which is also configurable), the game will initiate a live-on-3 restart and go
  34.  
  35.  
  36. ### Commands
  37.  
  38. Some commands that are important are:
  39. - **.setup**, begins the setup phase and sets the pug leader
  40. - **.start**, begins the game (note that the cvar sm_teamselect_autolo3 controls if this is needed
  41. - **.ready**
  42. - **.unready**
  43. - **.pause**
  44. - **.unpause**
  45. - **.capt** gives the pug leader a menu to select captains
  46. - **.rand** selects random captains
  47. - **.leader** gives a menu to change the game leader
  48. - **.endgame**, force ends the game safely (only the leader can do this, note that this **resets the leader** to nobody)
  49.  
  50. The chat commands are mostly aliases for sourcemod admin commands, so an admin can override things if needed. The bold commands are only available through these admin commands and have no chat aliases (other than the default sourcemod ones, e.g. !leader or /leader go with sm_leader)
  51.  
  52. These use admin flag "g" for map change abilities:
  53. - sm_setup
  54. - sm_leader
  55. - sm_start
  56. - sm_rand
  57. - sm_capt
  58. - sm_endgame (note this resets the leader to none)
  59.  
  60. These use the generic admin flag "b":
  61. - sm_pause
  62. - sm_unpause
  63.  
  64. **Generally you don't need the admin (sm_) commands**, but they may come in helpful if a captain/leader doesn't know about the .pause feature or
  65. you need to take leardership of the pug.
  66.  
  67.  
  68. ### ConVars
  69. These are put in an autogenerated file at **cfg/sourcemod/pugsetup.cfg**, once you start the plugin go edit that file if you wish.
  70. - **sm_pugsetup_warmup_cfg** should store where the warmup config goes, defaults to the included file **sourcemod/pugsetup/warmup.cfg**)
  71. - **sm_pugsetup_live_cfg** should store where the warmup config goes, defaults to the included file **sourcemod/pugsetup/standard.cfg**
  72. - **sm_pugsetup_autorecord** controls if the plugin should autorecord a gotv demo (you may need to add some extra cvars to your cfgs, such as tv_enable 1)
  73. - **sm_pugsetup_requireadmin** controls if an admin flag ("g" for change map permissions) is needed to use the setup command (i.e. admins must use !setup and .setup no longer works)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement