AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Tongue Damage (1.11) [05-Mar-2024] (https://forums.alliedmods.net/showthread.php?t=318959)

Silvers 10-02-2019 14:36

[L4D & L4D2] Tongue Damage (1.11) [05-Mar-2024]
 
13 Attachment(s)
About:
  • In Versus by default a Survivor loses health while being dragged by a Smoker.
  • In Coop they don't lose any health, so this plugin addresses that problem.
  • Please suggest good damage and time values to use. Currently does 10 HP per second.


Thanks:
  • XJR15 - For the idea and request.


Cvars:

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

PHP Code:

// 0=Plugin off, 1=Plugin on.
l4d_tongue_damage_allow "1"

// How much damage to apply on Easy difficulty.
l4d_tongue_damage_damage_easy "1.0"

// How much damage to apply on Normal difficulty.
l4d_tongue_damage_damage_normal "2.0"

// How much damage to apply on Hard difficulty.
l4d_tongue_damage_damage_hard "3.0"

// How much damage to apply on Expert difficulty.
l4d_tongue_damage_damage_impossible "4.0"

// 0=Damage Survivors when God Frames are active. 1=Allow God Frames to protect Survivors. (Requires "Left4DHooks" or the "God Frames Patch" plugin).
l4d_tongue_damage_frames "0"

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

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_tongue_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_tongue_damage_modes_tog "3"

// How often to damage players.
l4d_tongue_damage_time "0.5"

// How long after grabbing a Survivor until damage is allowed.
l4d_tongue_damage_time_delay "0.0"

// Tongue Damage plugin version.
l4d_tongue_damage_version 



Changes:
Code:

1.11 (05-Mar-2024)
    - Added cvars "l4d_tongue_damage_damage_easy", "l4d_tongue_damage_damage_normal", "l4d_tongue_damage_damage_hard" and "l4d_tongue_damage_damage_impossible".
    - Removed cvar "l4d_tongue_damage_damage" due to using the new cvars.
    - Thanks to "bullet28" for this update.

1.10 (01-Jul-2022)
    - Fixed the "choke_end" event throwing unhook event errors under certain conditions.

1.9 (20-Jun-2022)
    - Fixed the "choke_start" event throwing unhook event errors under certain conditions.

1.8 (01-May-2022)
    - Added cvar "l4d_tongue_damage_time_delay" to add a delay between being grabbed and when damage can start hurting players. Requested by "vikingo12".
    - Plugin now optionally uses the "Left4DHooks" plugin to prevent damaging Survivors with God Frames. Requested by "vikingo12".
    - Not sure if God Frames stuff is actually required.
    - Thanks to "vikingo12" for testing.

1.7 (29-Apr-2022)
    - Added cvar "l4d_tongue_damage_frames" to control if God Frames can protect a Survivor while being dragged (requires the "God Frames Patch" plugin).
    - Plugin now optionally uses the "God Frames Patch" plugin to prevent damaging Survivors with God Frames. Thanks to "vikingo12" for reporting.

1.6 (21-Jul-2021)
    - Better more optimized method to prevent timer errors happening.

1.5 (20-Jul-2021)
    - Fixed rare error when clients die during a tongue drag. Thanks to "asherkin" and "Dysphie" for finding the issue.

1.4 (15-May-2020)
    - Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.

1.3 (10-May-2020)
    - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    - Plugin now fixes game bug: Survivors who are pulled when not touching the ground would be stuck floating.
    - This fix is applied to all gamemodes even when the plugin has been turned off.

1.2 (01-Apr-2020)
    - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.

1.1 (29-Nov-2019)
    - Fixed invalid timer errors - Thanks to "BlackSabbarh" for reporting.

1.0 (02-Oct-2019)
    - Initial release.



Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Optionally install the God Frames Patch plugin to prevent Tongue Damage on Survivors with God Frames (if you still want all God Frames set the "l4d_god_frames_allow" cvar in that plugin to "2").


Updating from 1.7 or older:
  • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.

Sev 10-02-2019 17:37

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
Neat.

This was one of those bizzare things that never got added to coop for some reason.

It would be interesting if something like that could be done with the AI tank and how it jumps and grabs to get on platforms or roofs or ledges in coop. The human tank can't do that in versus, but it would be interesting if that behavior could be applied to versus.

theproperson 10-02-2019 18:24

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
Quote:

Originally Posted by Sev (Post 2668615)
Neat.

This was one of those bizzare things that never got added to coop for some reason.

It would be interesting if something like that could be done with the AI tank and how it jumps and grabs to get on platforms or roofs or ledges in coop. The human tank can't do that in versus, but it would be interesting if that behavior could be applied to versus.

Awesome to finally see tongue drag damage being added to co-op.

I also agree with sev, it's been a life time dream of mine to be able to climb like AI tanks. I remember seeing somewhere someone refused to do it because tanks will climb anything no matter how big or small but that person failed to realize that maybe we want to do that too lol.

Silvers 10-02-2019 18:47

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
Quote:

Originally Posted by theproperson (Post 2668619)
Awesome to finally see tongue drag damage being added to co-op.

I also agree with sev, it's been a life time dream of mine to be able to climb like AI tanks. I remember seeing somewhere someone refused to do it because tanks will climb anything no matter how big or small but that person failed to realize that maybe we want to do that too lol.

Thank you both, sounds interesting I'll look into Tank climbing.

Spirit_12 10-02-2019 19:18

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
What's the default damage in versus?

BTW have you hit your 100 plugins mark?

Silvers 10-02-2019 20:03

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
I've not checked the Versus values. I'll make this plugins cvars default to those when I get round to checking or if someone knows the numbers.

85/100.

Re: tank climb, what about the "Climb Everywhere" plugin? It's not the same as jumping up to grab a platform but at least you can climb up anything.

theproperson 10-03-2019 08:31

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
I've used the climb everywhere plugin a lot in the past but me and my players didn't enjoy how clunky it felt. I faced random server crashes, players being teleported down while climbing and falling off mid climb when trying to climb walls. The Common / Tank method looks like it works the best and is has a very nice reach to it which was measured by Mr.Funreal in his dev mapping texture pack. 2nd photo shows the max reach.

http://steamcommunity.com/sharedfile...?id=1377002719

Sev 10-06-2019 12:42

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
I feel like if that AI tank climb behavior could be achieved, the animation would have to be sped up. Probably why they didn't give the human tank that climb animation in versus. He would be even more open to attack than with the human climb system. At least there, he could jump out of it.

BlackSabbarh 11-28-2019 13:24

Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
 
I get this in the log

(map "c7m1_docks") (file "/home/client224/service335/left4dead2/addons/sourcemod/logs/errors_20191128.log")
L 11/28/2019 - 08:51:47: [SM] Exception reported: Handle 20ee4 is invalid (error 3)
L 11/28/2019 - 08:51:47: [SM] Blaming: l4d_tongue_damage.smx
L 11/28/2019 - 08:51:47: [SM] Call stack trace:
L 11/28/2019 - 08:51:47: [SM] [0] CloseHandle
L 11/28/2019 - 08:51:47: [SM] [1] Line 188, /home/forums/content/files/8/5/7/7/8/177586.attach::ResetPlugin
L 11/28/2019 - 08:51:47: [SM] [2] Line 194, /home/forums/content/files/8/5/7/7/8/177586.attach::OnMapEnd
L 11/28/2019 - 08:51:47: Error log file session closed.
L 11/28/2019 - 12:26:31: SourceMod error session started

Silvers 11-29-2019 16:55

Re: [L4D & L4D2] Tongue Damage (1.1) [29-Nov-2019]
 
Quote:

1.1 (29-Nov-2019)
- Fixed invalid timer errors - Thanks to "BlackSabbarh" for reporting.


All times are GMT -4. The time now is 03:20.

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