Survivor Bot Takeover
Search for servers running Survivor Bot Takeover: Click here
An improved version of this plugin coded by user
eyal282:
Link to post (Thanks!
)
Synopsis
This plugin allows survivors to takeover the control of alive survivor bot. It seems someone already made something like this in the past [
LINK], but I'll continue developing this untill someone tells me to stop?
Usage
Call console command
sm_takeover (or type
!takeover in the chat) or administrators with minimum of GENERIC flag set
sm_admintakeover (or type
!admintakeover in the chat) and you will jump to next "random" alive survivor bot. Game will ask the player if he/she wants to execute a takeover and if the answer is NO, the player is not asked about the takeover again in that round. The player can however execute the console command if the server is configured to allow that.
Installation
Download
l4d_takeover.txt and place it to
/addons/sourcemod/gamedata. Download the plugin and place it to your plugins directory.
CVAR list
The plugin creates a configuration file (
l4d_takeover.cfg) which allows the server administrators to adjust some of the CVARs.
- l4d_takeover_autodeath (default = "1") Execute a takeover automatically when a player dies. Enabling this will disable the takeover voting.
- l4d_takeover_autoincap (default = "0") Execute a takeover automatically when a player incaps.
- l4d_takeover_choosingtime (default = "20") Time to cast a takeover choice.
- l4d_takeover_manual (default = "1") Allow dead survivor players to execute console command "sm_takeover" to takeover a survivor bot.
- l4d_takeover_manualincap (default = "0") Allow incapped survivor players to execute console command "sm_takeover" to takeover a survivor bot.
- l4d_takeover_votingenabled (default = "0") Initiate a vote for a takeover when a player dies.
- l4d_takeover_votingtime (default = "20") Time to cast a takeover vote.
- l4d_takeover_delay (default = "5") Delay after a possible takeover is found and before showing any panels to anyone.
- l4d_takeover_requestconf (default = "1") Request confirmation from the player before executing a takeover.
- l4d_takeover_finaleonly (default = "0") Allow takeovers only in finale maps.
- l4d_takeover_displaybotname (default = "1") Display the bot name when a takeover executes.
Development plans
- Initiate a takeover vote when a player dies/incaps (can be disabled with a CVARs). Team members can make sure a team killer or otherwise lamer cannot continue to ruin the game for others.
- What else...
Known issues
- The name of the bot survivor taken over is not always displayed correctly on servers that have more bot/human players than 18.
Version history
0.1 - Initial release. Handles only console command that will allow a takeover.
0.2 - Added automated takeover on player incap and player death.
0.3 - Some basic CVARs.
0.4 - More CVARs. Added periodic and event based (defib, revive, disconnect) checks. Added a panel for asking the player whether or not he/she wants to execute the takeover.
0.5 - New CVAR [#8]. Some fixes and more code for possible takeover detection.
0.6 - Some fixes and code cleanup.
0.7 - Bugfixes and more checks to make things (hopefully) work better. Added console command sm_admintakeover to work at any time.
0.7.1 - Different method for finding a suitable takeover to make things (hopefully) work better.
0.8 - New CVARs: 9, 10 and 11. Some tweaks and minor fixes.