Raised This Month: $4 Target: $400
 1% 

[L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6717
Plugin Version:
1.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Prevents the Witch from insta-killing survivors and set her damage scaled to game difficulty.
    Old 09-16-2019 , 13:46   [L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]
    Reply With Quote #1

    About:
    • Prevents the Witch from insta-killing survivors.
    • Damage values for incapped survivors and non-incapped are scaled to the game difficulty with the plugins scale cvar.
    • l4d_witch_damage_scale "25,50,75,100" - This means 25% of the cvars damage value on Easy difficulty, 100% on Expert.


    Thanks:

    Cvars:

    Saved to l4d_witch_damage.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_witch_damage_allow "1"

    // Damage applied when survivor is not incapped. Scaled with scale cvar depending on the game difficulty.
    l4d_witch_damage_damage "100"

    // Damage applied when survivor is incapped. Scaled with scale cvar depending on the game difficulty.
    l4d_witch_damage_incapped "30"

    // Scales damage depending on game difficulty, each comma separated: 1st = Easy. 2nd = Normal. 3rd = Advanced. 4th = Expert.
    l4d_witch_damage_scale "100,100,100,100"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_witch_damage_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_witch_damage_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_witch_damage_modes_tog "0"

    // Witch Damage plugin version.
    l4d_witch_damage_version 


    Changes:
    Code:
    1.5 (15-May-2020)
        - Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.
    
    1.4 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    
    1.3 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.2 (16-Feb-2020)
        - Fixed not doing damage due to wrong string size mistake.
    
    1.1 (17-Sep-2019)
        - Fixed not working in all cases. - Thanks to "cacaopea" for reporting.
    
    1.0 (16-Sep-2019)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_witch_damage.sp - 580 views - 9.9 KB)
    __________________

    Last edited by Silvers; 05-14-2020 at 23:19.
    Silvers is offline
    RDiver
    Member
    Join Date: Mar 2010
    Old 04-30-2020 , 15:30   Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.3) [01-Apr-2020]
    Reply With Quote #2

    A friendly reminder: not compatible with Relentless Witch/Evil Witch plugin which allows to track and incap others survivors while this plugin is scaled at 100% damage in Expert difficulty. In short, the witch can't just incap all survivors instead of execution themselves in Expert difficulty.

    Any fixes/tweak possible?
    RDiver is offline
    larrybrains
    Senior Member
    Join Date: May 2017
    Old 07-29-2020 , 04:18   Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]
    Reply With Quote #3

    Would you be able to add a feature to this so that in Realism mode, with z_witch_allow_change_victim set to 0, she would incap survivors that aren't her victim that get in her way and she swipes at them, but still insta-kill her victim?
    larrybrains is offline
    aiyoaiui
    Junior Member
    Join Date: Jun 2020
    Old 07-29-2020 , 10:49   Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]
    Reply With Quote #4

    https://forums.alliedmods.net/showthread.php?p=2616778 conflict ?
    aiyoaiui is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-29-2020 , 15:59   Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]
    Reply With Quote #5

    Quote:
    Originally Posted by RDiver View Post
    A friendly reminder: not compatible with Relentless Witch/Evil Witch plugin which allows to track and incap others survivors while this plugin is scaled at 100% damage in Expert difficulty. In short, the witch can't just incap all survivors instead of execution themselves in Expert difficulty.

    Any fixes/tweak possible?
    Maybe possible to consider but not something I'm going to look into. Suspect both plugins are using the same function so the outcome will be determined by plugin load order which is random. If not, other steps would have to be taken, again not something I have time to check.


    Quote:
    Originally Posted by larrybrains View Post
    Would you be able to add a feature to this so that in Realism mode, with z_witch_allow_change_victim set to 0, she would incap survivors that aren't her victim that get in her way and she swipes at them, but still insta-kill her victim?
    Too specific not going to happen.

    Quote:
    Originally Posted by aiyoaiui View Post
    Very unlikely.
    __________________
    Silvers is offline
    larrybrains
    Senior Member
    Join Date: May 2017
    Old 07-29-2020 , 19:40   Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]
    Reply With Quote #6

    Quote:
    Originally Posted by Silvers View Post
    Too specific not going to happen.
    I guess too specific to add to this particular plugin, or too specific to be even possible? If you think it is possible, I may try to mod your plugin for my Realism server and see if I can figure it out.
    larrybrains 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 07:03.


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