AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.1 | 02-April-2022] (https://forums.alliedmods.net/showthread.php?t=334708)

Marttt 10-14-2021 18:47

[L4D1] Tank Burn Damage Over Time (Coop) [v1.0.1 | 02-April-2022]
 
14 Attachment(s)
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.

HarryPotter 10-14-2021 21:29

Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
 
If I remember correctly, the tank player (not AI) still receives burn damage in l4d1 versus.

gamer_kanelita 10-14-2021 22:53

Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
 
And when for l4d2? l4d1 hardly anyone plays it anymore: /

moschinovac 10-15-2021 01:59

Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
 
Quote:

Originally Posted by gamer_kanelita (Post 2760621)
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

Marttt 10-15-2021 02:25

Re: [L4D1] Tank Burn Damage Over Time [v1.0.0 | 14-October-2021]
 
Quote:

Originally Posted by HarryPotter (Post 2760617)
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.

Johnnyrouch 10-16-2021 08:18

Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
 
will be for L4D2 version without burn damage?

Marttt 10-16-2021 09:19

Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
 
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.

Johnnyrouch 10-16-2021 11:39

Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
 
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?

gamer_kanelita 10-16-2021 12:37

Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
 
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:

Beatles 10-30-2021 18:33

Re: [L4D1] Tank Burn Damage Over Time (Coop) [v1.0.0 | 14-October-2021]
 
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.


All times are GMT -4. The time now is 19:35.

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