Raised This Month: $ Target: $400
 0% 

[L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
dcx2
Senior Member
Join Date: Sep 2011
Plugin ID:
2797
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes the magnum/sniper damage in Realism
    Old 02-10-2012 , 00:43   [L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
    Reply With Quote #1

    DESCRIPTION

    In non-Realism, penetrating weapons (military sniper, hunting rifle, and magnum) all get a "penetration bonus", such that they will do at least m_iMaxHealth damage to common infected (excluding Witch who takes normal damage, and Fallen Survivor who takes iMaxHealth/2 damage)

    In Realism, only the magnum gets the penetration bonus.

    This plugin aims to fix this problem. It offers cvars that allow nerfing the magnum or buffing the sniper in Realism. It can be configured to provide no penetration bonus (3 shots on advanced/expert to kill most commons), half penetration bonus (2 shots to kill commons on any difficulty), or full penetration bonus (1 shot to kill commons on any difficulty)

    As of v1.1, this plugin can optionally apply to non-realism modes. It can also limit the maximum number of penetration kills; by default the magnum is limited to 2 by the game and the snipers are unlimited.


    CVARS

    sm_realismpenfix_enable - Enables this plugin; 1 = realism only, 2 = all modes, 0 = off (default 1)
    sm_realismpenfix_debug - Print debugging output (default 0)
    sm_realismpenfix_nerfmagnum - 0: Full penetration bonus / 1: Half penetration bonus / 2: No penetration bonus, no distance penalty / 3: no penetration bonus, plus distance damage penalty (default 1)
    sm_realismpenfix_buffsniper - 0: No penetration bonus / 1: Half penetration bonus / 2: Full penetration bonus (default 1)
    sm_realismpenfix_magnumlimit - Maximum number of enemies one magnum bullet can kill (0 disables feature) (default 0)
    sm_realismpenfix_sniperlimit - Maximum number of enemies one sniper bullet can kill (0 disables feature) (default 0)


    CONFIG

    [game]/cfg/sourcemod/l4d2_realismpenfix.cfg


    If upgrading from a previous version, I recommend using SilverShot's Cvar Configs Updater plugin to update because it's the easiest solution. Or you can add any new cvars to this file yourself. Or backup this file, delete it and it will be automatically recreated and then you can restore your backed up settings.


    HISTORY

    v1.3 - The distance damage penalty applied with nerfmagnum 2 was too much for some folks. So nerfmagnum 2 now ignores the distance damage penalty (base magnum damage was selected to be 78). To apply the distance damage penalty to the magnum, set nerfmagnum to 3.

    v1.2 - fixed bug where OnTakeDamage called by an entity instead of a client would cause a plugin error (Array index is out of bounds) (124 views!)

    v1.1 - Added support for non-realism modes (enable cvar = 2)
    Added support for limiting the maximum number of enemies a single bullet can hit (magnumlimit and sniperlimit cvars)
    Magnum damage for nerfmagum == 2 will be accurately reduced according to distance


    DEPENDENCIES

    This plugin requires SDKHooks, so please download the smx file. I use SDKHooks 2.1, but since it uses OnTakeDamage it might work with 2.0
    Attached Files
    File Type: smx l4d2_realismpenfix.smx (9.2 KB, 1080 views)
    File Type: sp Get Plugin or Get Source (l4d2_realismpenfix.sp - 1082 views - 13.8 KB)

    Last edited by dcx2; 10-05-2014 at 13:26. Reason: new features
    dcx2 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 11:05.


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