AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Witch Damage - Block Insta-Kill (1.6) [29-Aug-2022] (https://forums.alliedmods.net/showthread.php?t=318712)

Silvers 09-16-2019 12:46

[L4D & L4D2] Witch Damage - Block Insta-Kill (1.6) [29-Aug-2022]
 
7 Attachment(s)
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.6 (29-Aug-2022)
    - Fixed damage not setting correctly when the victim has temporary health. Thanks to "a2121858" for reporting.

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.

RDiver 04-30-2020 14:30

Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.3) [01-Apr-2020]
 
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?

larrybrains 07-29-2020 03:18

Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]
 
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?

Silvers 07-29-2020 14:59

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

Originally Posted by RDiver (Post 2697172)
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 (Post 2712098)
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 (Post 2712149)

Very unlikely.

larrybrains 07-29-2020 18:40

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

Originally Posted by Silvers (Post 2712206)
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.

a2121858 08-28-2022 11:15

Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.5) [15-May-2020]
 
When the survivor is in temporary health state, the damage cannot be set correctly.:shock:

Silvers 08-29-2022 11:18

Re: [L4D & L4D2] Witch Damage - Block Insta-Kill (1.6) [29-Aug-2022]
 
Thanks, fixed.

Code:

1.6 (29-Aug-2022)
    - Fixed damage not setting correctly when the victim has temporary health. Thanks to "a2121858" for reporting.



All times are GMT -4. The time now is 06:17.

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