View Single Post
Author Message
frool
Junior Member
Join Date: Nov 2009
Location: germany
Old 11-26-2009 , 19:12   [L4D1/2] bebop - additional coop players (20+ players possible)
Reply With Quote #1

hi there.

This is my first submission here and i hope you guys like it

DESCRIPTION

bebop auto handles the spawning and kicking of bots when a client enters or leaves the server that is needed make additional players in coop mode possible.


INFORMATION

- the plugin does only handle coop mode.
- spawns a bot when a client is entering the game
- kicks a bot when a client disconnects
- it will deactivate it's functions when the gamemode is changed to non coop.
- it will activate when it got changed back to coop again.


there is only 1 cvar, bebop_version, which tells the current version.

you need another mod that allows to set the playerlimit on a server and removes the human survivor limit.

if you want to use connecting though lobby and connecting through the +connect command you need another mod that removes the lobby reservation.

if you're server is runnin on windows i'd suggest to use L4DToolz.
its available for l4d1 and l4d2.

grab l4dtoolz here: http://forums.alliedmods.net/showthread.php?t=93600

when using l4dtoolz you only need to add the following stuff to your server.cfg

Code:
sv_maxplayers "whateveryouwant"
sv_visiblemaxplayers "-1"
sv_removehumanlimit "1"
sv_force_unreserved "1"
note that sv_maxplayers is also the limit for human survivor players in your game!
for example: if you want bebop to manage 8 human survivor players you have to set sv_maxplayers "8"

LINUX DEDICATED SERVER USERS

Big thanks to chickenside!!! for this awesome tutorial about how to get this running on linux. Read here -> http://forums.alliedmods.net/showpos...7&postcount=33

INSTALLATION

- download l4dtoolz (or any other plugin that does the stuff i described further)
- set l4dtools cvars in your server.cfg (see INFORMATION)
- download bebop and compile
- put it to the sourcemod plugin dir
- restart server or change map ("sm plugins refresh / load" wont work when there is any human player connected to the server)
- youre done


KNOWN BUGS

- when one of the first 4 survivors that entered the game disconnects andt he number of active players is above 5 (sometimes) only 3 players appear when you press tab

- when one of the first 4 survivors that entered the game presses the "take a break" button or gehts afk the l4d jointeam panel is shown


ADDITIONAL INFO

i'd suggest you to enhance the difficulty in your server.cfg

have a look at the following cvars if you want to:
Code:
 z_mob_population_density
z_mob_min_notify_count"
z_common_limit
z_zombie_lunge_push 
 
z_mob_spawn_min_size
z_mob_spawn_max_size
z_mob_spawn_finale_size
z_mega_mob_size
 
z_mega_mob_spawn_min_interval
z_mega_mob_spawn_max_interval
 
z_mob_spawn_min_interval_normal
z_mob_spawn_max_interval_normal
z_mob_spawn_min_interval_hard
z_mob_spawn_max_interval_hard
z_mob_spawn_min_interval_expert
z_mob_spawn_max_interval_expert
 
director_tank_min_interval
director_tank_max_interval
 
z_special_spawn_interval
 
z_hunter_limit
z_charger_limit
z_jockey_limit
z_boomer_limit"
z_smoker_limit
z_spitter_limit
 
z_tank_rock_radius
 
z_tank_speed
z_speed
z_hunter_speed
z_jockey_speed
 
z_charger_health
z_hunter_health
z_jockey_health
z_witch_health
z_tank_health
 
sm_cvar z_health
i've used sourcemod-1.3.0-hg2865.zip snapshot to compile the plugin.

when you want to compile yourself theres a #define that is called LOG_ENABLE. set it to false and recompile if you want no logging. the plugin is still beta status thats why i recommend you to activate the logging for a better bug report when weird shit happens.

the log is stored in addons\sourcemod\logs


THANKS:

- to Kaiser who helped me testing alot :-)
- thx to all other coders of plugins especially Jerrith and Whosat,
their neat sources really got me into sourcemod


would be nice to have some feedback

best regards
~frool

CHANGELOG

********************************************* ***********/
* -> 0.1 beta
* -----------
* - initial release
*
* -> 0.2 beta
* -----------
* - FIXED BUG: where bebop unnhooks events twice when changing from non coop gamemode to another non coop gamemode
*
* - FIXED BUG: in l4d1 mp_gamemode cvar flag got set to protected because it is not protected by default like in l4d1
*
********************************************* ***********/
Attached Files
File Type: zip bebop_0.2beta.zip (8.8 KB, 32405 views)

Last edited by frool; 12-01-2009 at 05:00. Reason: updated varius stuff in post
frool is offline