View Single Post
Author Message
liquidplasma
Junior Member
Join Date: May 2023
Old 04-28-2024 , 19:56   [L4D2] Simple Tank Health Regen v1.0
Reply With Quote #1

Simple plugin to regen tank health with configurable delay and option to regen only player tanks.

Cvars:
Quote:
// Wether to regen a burning tank or not | 0 - disabled / 1 - enabled
// -
// Default: "1"
l4d2_tank_regen_burning "1"

// Time in seconds for a healing tick of 'tank MAX HP / l4d2_tank_regen_quotient'
// -
// Default: "0.4"
l4d2_tank_regen_delay "0.4"

// Wether or not tank bots should regen their hp | 0 - disabled / 1 - enabled
// -
// Default: "0"
l4d2_tank_regen_heal_bots "0"

// Multiplier to heal over tank MAX HP
// -
// Default: "1.0"
l4d2_tank_regen_overheal_multiplier "1.0"

// Amount that the MAX HP of the tank will be divided by
// -
// Default: "320.0"
l4d2_tank_regen_quotient "320.0"
Changelog:
Code:
1.1 - Added convar that disables regen if tank is on fire
-
1.0 - First Release
Required: Left 4 DHooks Direct

Clicking 'Get Plugin' won't work, download the .smx and put it into sourcemod\plugins or download source and compile it yourself.
Attached Files
File Type: smx tankHPRegen.smx (6.8 KB, 4 views)
File Type: sp Get Plugin or Get Source (tankHPRegen.sp - 6 views - 4.5 KB)

Last edited by liquidplasma; 05-13-2024 at 00:29.
liquidplasma is offline