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

Left 4 Dead (and L4D2) Anti-Camp plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
eyeonus
Member
Join Date: Jul 2009
Plugin ID:
1097
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    17 
    Plugin Description:
    A mod to counter camping (AKA shiva stacking) in L4D versus games.
    Old 08-16-2009 , 07:10   Left 4 Dead (and L4D2) Anti-Camp plugin
    Reply With Quote #1

    I spent a lot of time looking for a mod to combat camping and shiva stacking. I found DieTeetasse's mod "[L4D] Epicmod Lite", but it wasn't exactly what I was looking for- it had a bunch of other stuff, when all I wanted was the anti-camping, and it didn't actually STOP campers, it just hurt them for doing it.

    I took the camping portion of his code, figured out how he did it, and wrote this one. The method he used to detect camping is used in my mod, but pretty much everything else is my own.

    What this mod does is, once the survivors leave the safe room, it begins checking if two or more of them are occupying the same space. If it does, it warns them that in an admin specified time they will be slapped for camping. Optionally, an admin may choose to cause damage as well.

    In the event that the offenders are still camping after the slap, which can happen in places like the bed by the elevator of NM4, the mod will continue to slap the offenders every half second until they are no longer camping- as such, although the admin may choose to cause up to 50 damage per slap, this is not recommended, and no damage will be caused by a slap if the slap would incapacitate the offenders- although they will still be slapped.

    Incapacitated survivors are not counted as campers and will never be slapped, so it does not interfere with attempting to revive someone.

    This mod also checks to make sure that the game mode is versus, and will not activate otherwise, so camping in coop and survival modes is possible.

    Since version 1.4, movement checking is included- if the "camping" survivor is moving at least half the radius between checks, the slap timer is not started and no warning is issued. I think that at the default radius, this will prevent false postives such as when two survivors are walking, crawling, or running while next to each other.

    This plugin works in L4D2 as well.

    CVARS:
    l4d_ac_check - Generic Admin command - Activate camping check.
    l4d_ac_version - Plugin version.
    l4d_ac - Default 1 - Set to 0 to turn anti-camping off.
    l4d_ac_warn_time - Default 5.0 - Time between warning and slap.
    l4d_ac_radius - Default 30.0 - Radius for anti-camping check.
    l4d_ac_slap - Default 0 - Damage to camping violators from slap.

    Changelog:
    1.4 - Added movement checking.
    1.3 - Made warning message countdown.
    1.2 - Fixed glitch where incapped/dead survivors would sometimes get slapped.
    1.1 - Altered code to test survivors individually. Each now has their own, separate timer, to fix problems where some would be camping, and any others who started would not be warned, but instantly slapped.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_anti-camp.sp - 3213 views - 6.6 KB)

    Last edited by eyeonus; 12-31-2009 at 02:55. Reason: Updated plugin to 1.4
    eyeonus 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 18:27.


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