View Single Post
Author Message
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 09-19-2009 , 14:30   [L4D] Co-op Difficulty Blocker
Reply With Quote #1

Description:

Valve lets you limit which gamemodes can be played on your server, but not which difficulties for the coop gamemode. This plugin lets you do that!

Because we can not hide the server from the lobby based on difficulty, this plugin does the next best thing (which is still rather crude). If it detects a disallowed difficulty, it simply kicks everyone before they connect to the server with a message similar to "Easy mode is disallowed on this server".

Cvars: l4d_difficulty.cfg is created in cfg/sourcemod/

l4d_difficulty_version - Shows the version
l4d_allow_easy - Allow easy games? Default=1(yes)
l4d_allow_normal - Allow normal games? Default=1(yes)
l4d_allow_advanced - Allow advanced games? Default=1(yes)
l4d_allow_expert - Allow expert games? Default=1(yes)

Changelog:

Code:
1.1
 - Fixed Advanced + Expert restrictions not working
1.0
 - Initial Release
Attached Files
File Type: sp Get Plugin or Get Source (l4d_difficulty.sp - 937 views - 2.5 KB)

Last edited by crazydog; 09-19-2009 at 14:56.
crazydog is offline