Raised This Month: $81 Target: $400
 20% 

[L4D1] Tank Burn Damage Over Time (Coop) [v1.0.1 | 02-April-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7823
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Adds burn damage over time while the Tank is on fire
    Old 10-14-2021 , 19:47   [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.1 | 02-April-2022]
    Reply With Quote #1

    L4D1 ONLY
    COOP GAMEMODE ONLY

    Description

    This plugin adds burn damage over time while the Tank is on fire.

    In L4D1, Tanks don't receive damage from fire over time in coop mode, unlike L4D2.

    Besides that Tanks still die after X seconds in default config.

    Features
    • Allow disabling the Tank dying from fire after a while.
    • Allow configuring how often should the Tank receive burn damage while on fire.
    • Allow configuring the burn damage amount applied to the Tank on fire.

    Cvars

    A configuration file named "l4d1_tank_burn_dot.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Burn damage amount applied to the Tank.
    // 0 = OFF.
    // -
    // Default: "5.0"
    // Minimum: "0.000000"
    l4d1_tank_burn_dot_damage "5.0"

    // Disable Tanks dying from fire after a while.
    // Note: Usually controlled by "tank_burn_duration_*" cvars.
    // 0 = OFF, 1 = ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d1_tank_burn_dot_disable_suicide "1"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d1_tank_burn_dot_enable "1"

    // Interval in seconds to apply burn damage to the Tank.
    // -
    // Default: "0.5"
    // Minimum: "0.100000"
    l4d1_tank_burn_dot_interval "0.5" 
    Related Game Cvars
    • tank_burn_duration_normal => Number of seconds a burning Tank takes to die in coop on easy/normal difficulty. (default: 30)
    • tank_burn_duration_hard => Number of seconds a burning Tank takes to die in coop on hard difficulty. (default: 35)
    • tank_burn_duration_expert => Number of seconds a burning Tank takes to die in coop on expert difficulty. (default: 40)
    • tank_burn_duration_vs => Number of seconds a burning Tank takes to die on versus. (default: 30) [doesn't seem to work]
    • z_tank_burning_lifetime => Burn damage per second that a burning Tank receives in survival/versus/teamversus gamemode. (default: 75)
    • z_tank_health => Tank max HP. (default: 4000)
    • versus_tank_bonus_health => Tank max HP multiplier on versus/teamversus gamemode. (default: 1.5 [+50%])

      Formula (using default values and versus gamemode):
      6000 (z_tank_health * versus_tank_bonus_health) / 75 (z_tank_burning_lifetime) = 80
      Tank will receive 16 damage every 0.2 seconds = 80 * 0.2

      Using values below 0 for z_tank_burning_lifetime makes the Tank receive 5 damage per second. (1 damage every 0.2 seconds)
      Using 0 for z_tank_burning_lifetime, will bug the Tank by incapacitating it with 2147483647 HP (int.MaxValue).

    Admin Commands
    • sm_print_cvars_l4d1_tank_burn_dot => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • In L4D1, Tanks don't receive damage from fire over time in coop mode, unlike L4D2.
    • tank_burn_duration_* cvars are ignored when l4d1_tank_burn_dot_disable_suicide is 1.
    • Water

    Thank you!
    • kadabra - for requesting.
    • ReCreator - for reporting a wrong config with the timer interval.

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d1_tank_burn_dot.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d1_tank_burn_dot.sp - 298 views - 12.8 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 13:20.
    Marttt is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 10-14-2021 , 22:29   Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
    Reply With Quote #2

    If I remember correctly, the tank player (not AI) still receives burn damage in l4d1 versus.
    __________________
    HarryPotter is offline
    gamer_kanelita
    Senior Member
    Join Date: Jun 2019
    Location: Peru
    Old 10-14-2021 , 23:53   Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
    Reply With Quote #3

    And when for l4d2? l4d1 hardly anyone plays it anymore: /
    gamer_kanelita is offline
    moschinovac
    Member
    Join Date: Mar 2019
    Location: Vietnam
    Old 10-15-2021 , 02:59   Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
    Reply With Quote #4

    Quote:
    Originally Posted by gamer_kanelita View Post
    And when for l4d2? l4d1 hardly anyone plays it anymore: /
    Tank in L4D2 already take fire damage overtime. Change cvar "tank_burn_duration_*" for that
    moschinovac is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 10-15-2021 , 03:25   Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
    Reply With Quote #5

    Quote:
    Originally Posted by HarryPotter View Post
    If I remember correctly, the tank player (not AI) still receives burn damage in l4d1 versus.
    Thanks for that info @HarryPotter. I did some debugging and in fact, if the mp_gamemode is coop the tank doesn't receive damage over time, but for versus/survival does.

    Gonna add this check next time I have time.

    @gamer_kanelita, moschinovac already said what I would say. In L4D2 this doesn't happen in the same way as L4D1.
    __________________

    Last edited by Marttt; 10-15-2021 at 03:25.
    Marttt is offline
    Johnnyrouch
    Junior Member
    Join Date: Jun 2020
    Old 10-16-2021 , 09:18   Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
    Reply With Quote #6

    will be for L4D2 version without burn damage?
    Johnnyrouch is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 10-16-2021 , 10:19   Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
    Reply With Quote #7

    I didn't understand your question.

    If you want fire immunity you can use [L4D & L4D2] Special Infected Burn Duration.

    Which will extinguish the fire after X seconds.
    __________________
    Marttt is offline
    Johnnyrouch
    Junior Member
    Join Date: Jun 2020
    Old 10-16-2021 , 12:39   Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
    Reply With Quote #8

    Left 4 Dead 1 - Tank burning 40 seconds without burn damage, Left 4 dead 2 - Tank burning 85 seconds and + fire does damages, how to remove it, and to make like in left 4 dead 1?
    Johnnyrouch is offline
    gamer_kanelita
    Senior Member
    Join Date: Jun 2019
    Location: Peru
    Old 10-16-2021 , 13:37   Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
    Reply With Quote #9

    Even if I put the command tank_burn_duration_ it always drops 2 hp of life, I want the burn not to lose health at all even if it burns like l4d2 :llorar:
    gamer_kanelita is offline
    Beatles
    Senior Member
    Join Date: Feb 2014
    Old 10-30-2021 , 19:33   Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
    Reply With Quote #10

    Hello bro, I was looking forward to trying this, and I did it, finally I just tried it, it's a wonderful job, but I already found a mistake, when there is more than a single tank does not work, it only hurts one of the Tanks.
    I burned 5 at the same time, of which only 1 died for the harm of the plugin, while the others do not.
    Beatles 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:16.


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