Raised This Month: $12 Target: $400
 3% 

L4D Director Enforcer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DDR Khat
SourceMod Donor
Join Date: Feb 2006
Plugin ID:
652
Plugin Version:
1.0.6
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Force the director to keep a variable set!
    Old 11-27-2008 , 17:23   L4D Director Enforcer
    Reply With Quote #1

    Make sure to delete your old hzombies.cfg file. This features new CVARs

    General:

    This plugin requires a SM 1.2 Snapshot version! Get the proper snapshot for your server here: http://www.sourcemod.net/snapshots.php

    Info:

    This plugin will allow you to manage your Left 4 Dead server so that you can enforce Versus mode (Regardless of map) and any Difficulty (Bypassing the "Normal Versus" lock put on during an update) It also provides voting for difficulties in versus mode. (Can be disabled)

    Cvar:

    l4dde_enable <0/1> "<0/1> Disable will stop locking / Enable will enforce and lock CVARS"
    l4dde_gamemode <> "Force the director to take on a gamemode"
    l4dde_difficulty <> "Force the game difficulty NA to disable (Easy, Normal, Hard, Impossible)"
    l4dde_votedifficulty <0/1> "<0/1> (Dis)Allow voting the difficulty (Versus mode only)"

    Commands:
    callvote ChangeDifficulty <diff> (Public, Console, Voting menu in-game) This executes a in-game vote to change the difficulty in versus mode or survival. <diff> is the desired difficulty.
    !diff (Public, Console/Speech) This reports the servers current game difficulty and informs you of a basic guide-line to expect as damage on the difficulty.

    Installation:
    • Copy hzombies.smx to addons/sourcemod/plugins/
    • Modify hzombies.cfg in cfg/sourcemod/ (If you wish to use this cfg file, otherwise just blank it)

    Credits:
    DDRKhat
    -Author of plugin
    GuÀrÐiÀñ & Limewire
    -Testing of difficulty to ensure it was truly set and not faked
    bug
    -bugtesting
    Sammy-ROCK! + Fyren
    -Finding the CVAR which locked difficulty when joining via lobby
    Solleck
    -Swiftly helping me test the newly discovered CVAR
    Tsunami
    -Helping with the "difficulty sorter"
    Dirty`Dave
    -Providing a server with the game-mode bug fixed in 1.0.5
    Predcrab
    -Answering and supplying info to several questions and situations I had

    Changelog:
    Version 1.0.6
    -Patched to work with the "DLC" update
    -Fixed a bug in the voting causing it to break all voting
    -A few more optimizations and alterations of code for efficientcy
    -Fixed a smalll issue with difficulty vote detection
    -Added sanitization checks to callvote.
    -Added support for "survival" mode
    -Silenced "Gamemode" / "Difficulty" changing when applying difficulty
    -Added a "Enabler" that can disable locking until reset (for external plugin support)

    Known Issues:
    Quote:
    Originally Posted by 3_stooges_geo View Post
    plug in works great as long as players were already on server when you change to a map that isnt a real versius map.,nobody new can join server.
    Using this metamod plugin can resolve that problem.
    Quote:
    Originally Posted by An Issue
    Plugin doesn't work if you join from a lobby!
    This cannot be fixed by this plugin alone. It will require a plugin which forces reservations to be cleared on the server. something in this fashion is in the works.

    Additional Comments:
    This plugin creates a config file on your server. cfg/sourcemod/hzombies.cfg

    Feel free to use this to enforce variables, but I would personally recommend leaving it as voting choice to the players.

    5083 views on Version 1.05

    Find out which servers running this plugin!
    Attached Files
    File Type: sp Get Plugin or Get Source (hzombies.sp - 5465 views - 10.9 KB)
    __________________
    Nothing but a whisper in the wind~~

    Last edited by DDR Khat; 05-16-2009 at 02:24.
    DDR Khat is offline
    Atreus
    SourceMod Donor
    Join Date: Apr 2005
    Location: San Diego, CA
    Old 11-27-2008 , 17:43   Re: L4D Director Enforcer
    Reply With Quote #2

    I am definitely grabbing this once I put SM on my l4d servers. Thanks!
    Atreus is offline
    Send a message via AIM to Atreus Send a message via MSN to Atreus
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 11-27-2008 , 17:47   Re: L4D Director Enforcer
    Reply With Quote #3

    Nice. Good job.

    Will need a public cvar thou to be approved.
    Antithasys is offline
    DDR Khat
    SourceMod Donor
    Join Date: Feb 2006
    Old 11-27-2008 , 18:00   Re: L4D Director Enforcer
    Reply With Quote #4

    Quote:
    Originally Posted by Antithasys View Post
    Nice. Good job.

    Will need a public cvar thou to be approved.
    Sorry for asking this but, public cvar? just a variable to catch this plugin by itself I assume, right?
    __________________
    Nothing but a whisper in the wind~~
    DDR Khat is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 11-27-2008 , 18:03   Re: L4D Director Enforcer
    Reply With Quote #5

    Quote:
    Originally Posted by DDR Khat View Post
    Sorry for asking this but, public cvar? just a variable to catch this plugin by itself I assume, right?
    http://forums.alliedmods.net/showthread.php?t=57142

    Quote:
    If you fill in a cvar, choose a descriptive cvar name. If your plugin is called "Nifty Tools," a good cvar name would be "niftytools_version." Bad names might be "nt_version," "nt," or "version_n." Check on game-monitor that the cvar is not in use for Source. Make sure FCVAR_NOTIFY is applied to the cvar flags.
    For you it could be:
    PHP Code:
    CreateConVar("hzombies_version"PLUGIN_VERSION"No Human Zombies"FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD); 

    Last edited by Antithasys; 11-27-2008 at 18:06. Reason: added code
    Antithasys is offline
    DDR Khat
    SourceMod Donor
    Join Date: Feb 2006
    Old 11-27-2008 , 18:06   Re: L4D Director Enforcer
    Reply With Quote #6

    Okay, thanks for your reply. I've put the public Cvar in now.
    __________________
    Nothing but a whisper in the wind~~
    DDR Khat is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 11-27-2008 , 18:33   Re: L4D Director Enforcer
    Reply With Quote #7

    I dont quite understand what this does, explain the cvars a little more pls.
    __________________

    DontWannaName is offline
    DDR Khat
    SourceMod Donor
    Join Date: Feb 2006
    Old 11-27-2008 , 18:36   Re: L4D Director Enforcer
    Reply With Quote #8

    Quote:
    Originally Posted by DontWannaName View Post
    I dont quite understand what this does, explain the cvars a little more pls.
    director_no_human_zombies (def. "1") "Prevents humans from joining the zombie team" (If defined as 1, else, it allows Human zombies also known as "Versus" mode.

    l4d_human_zombies (def. "1") "Force the director to allow/disallow Zombies (0=allow 1=disallow)" This is a variable created by the plugin to monitor and force director_no_human_zombies to it's value, this is because on occasion the server will ignore configuration file settings and set director_no_human_zombies to it's default ( "1" )
    __________________
    Nothing but a whisper in the wind~~
    DDR Khat is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 11-27-2008 , 19:01   Re: L4D Director Enforcer
    Reply With Quote #9

    So overall this lets you play versus on non versus maps?
    __________________

    DontWannaName is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 11-27-2008 , 19:01   Re: L4D Director Enforcer
    Reply With Quote #10

    More to the point. You can then play versus on all maps.
    Antithasys is offline
    Reply


    Thread Tools
    Display Modes

    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 20:55.


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