Raised This Month: $248 Target: $400
 62% 

[L4D & L4D2] Tongue Damage (1.4) [15-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6741
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Control the Smokers tongue damage when pulling a Survivor.
    Old 10-02-2019 , 14:36   [L4D & L4D2] Tongue Damage (1.4) [15-May-2020]
    Reply With Quote #1

    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.
    l4d_tongue_damage_damage "5.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"

    // Tongue Damage plugin version.
    l4d_tongue_damage_version 


    Changes:
    Code:
    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_tongue_damage.sp - 147 views - 9.3 KB)
    __________________

    Last edited by Silvers; 05-14-2020 at 22:01.
    Silvers is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 10-02-2019 , 17:37   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #2

    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.

    Last edited by Sev; 10-02-2019 at 17:40.
    Sev is offline
    theproperson
    Member
    Join Date: Feb 2017
    Old 10-02-2019 , 18:24   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #3

    Quote:
    Originally Posted by Sev View Post
    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.
    theproperson is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-02-2019 , 18:47   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #4

    Quote:
    Originally Posted by theproperson View Post
    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.
    __________________
    Silvers is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 10-02-2019 , 19:18   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #5

    What's the default damage in versus?

    BTW have you hit your 100 plugins mark?
    __________________
    Spirit_12 is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-02-2019 , 20:03   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #6

    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.
    __________________

    Last edited by Silvers; 10-02-2019 at 20:03.
    Silvers is offline
    theproperson
    Member
    Join Date: Feb 2017
    Old 10-03-2019 , 08:31   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #7

    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
    theproperson is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 10-06-2019 , 12:42   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #8

    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.
    Sev is offline
    BlackSabbarh
    Senior Member
    Join Date: Sep 2018
    Old 11-28-2019 , 13:24   Re: [L4D & L4D2] Tongue Damage (1.0) [02-Oct-2019]
    Reply With Quote #9

    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:261: SourceMod error session started
    BlackSabbarh is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-29-2019 , 16:55   Re: [L4D & L4D2] Tongue Damage (1.1) [29-Nov-2019]
    Reply With Quote #10

    Quote:
    1.1 (29-Nov-2019)
    - Fixed invalid timer errors - Thanks to "BlackSabbarh" for reporting.
    __________________
    Silvers 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 06:21.


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