Raised This Month: $ Target: $400
 0% 

Roundend Blocker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Emp` (115)
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 02-09-2009 , 09:18   Roundend Blocker
Reply With Quote #1

Roundend Blocker by Nextra
( block round end dm no round end deathmatch round end roundendblocker reb )

.: Description
This plugin creates fake bots in both teams to prevent the ending of rounds, normally occuring because every player on the map died. It is only useful in a deathmatch environment where all players respawn infinitely.

.: Features
- Two bots automatically join the game when only a few players are on the map
- The bots automatically leave the game as more players join the game
- Bots are shown as spectators on the scoreboard, and are far away from the battlefield (and also invisible and not solid) so they don't cause confusion and can't be killed
- Fakefull mode.
In Fakefull mode bots will always be on the server. They will connect on startup when
no players are online and will only leave when the playercount reaches plrmax.
If this mode is disabled the bots will not connect on startup and will disconnect
when they are not needed anymore (all players disconnected).
.: Cvars
reb_enable <0|1> - 0 = Disable, 1 = Enable the plugin
reb_plrmax - When the playercount (only players in a team) reaches this value, kick the bots
reb_plrmin - When the playercount goes below this value, add the bots
reb_fakefull <0|1> - 0 = Disable, 1 = Enable fakefull mode
reb_fullkick <0|1> - 0 = Bots stay on the server even if full, 1 = Last slot will stay free, bots will be kicked
reb_name1 "" - Sets the name for the first bot
reb_name2 "" - Sets the name for the second bot
reb_team <0|1|2> - Sets the team for the bots
- 0 will split them equally between T and CT
- 1 will make them join T only
- 2 does the same for CT
.: Required Modules
- CStrike
- FakeMeta
- HamSandwich
.: Note
Due to a recent change the bots will no longer reconnect if there is no player on the server and all bots are kicked in rapid succession. I am assuming that doing so requires the intention of having no bots on the server so I do not consider this an issue I have to fix. It is more important to have no crashes around.

.: Credits
- Thanks to jim_yang, he created the original roundend_blocker on which my version is based on. He allowed me to submit my recode of this to the public

.: Changelog ( latest changes )
* 1.1.065
- Replaced preThink hook by TeamInfo message hook for better efficiency. Thanks to Empowers.
- Added fullkick cvar to make all bots stay on the server even if it's full. Suggestion by Empowers.

* 1.1.100
- Now caching is_user_connected
- IsValidPlayer: Function -> macro
- New variable reb_team to limit the bots to only one team.
- Hopefully fixed occurences where bots were not being hidden properly.


.: Servers running the latest version :.
.: Servers running any version :.

.: Downloads:
2270+ :.


Please strongly consider using Arkshine's Infinite Round plugin. There is no reason not to use Orpheu or Infinite Rounds. If you don't want to use Orpheu - consider again, and only then use this! I'm serious.
https://forums.alliedmods.net/showthread.php?t=117782
Attached Files
File Type: sma Get Plugin or Get Source (roundend_blocker.sma - 6216 views - 12.5 KB)

Last edited by Nextra; 03-27-2014 at 06:06.
Nextra is offline
 



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 17:47.


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