View Single Post
Author Message
Ernecio
Junior Member
Join Date: Sep 2019
Old 05-18-2020 , 01:08   [L4D1 AND L4D2] Healing Field (06/20/2020)
Reply With Quote #1

[L4D1 AND L4D2] Healing Field

Sorry, This Plugin has been discontinued

Using the Prototype Grenades Plugin by Silvers, I wondered if the functionality of the medical grenade could be replicated, but in this case in a random model that is generated when the Tank dies. So I made that idea.

Description
This plugin creates a probability that by creating a random rotating entity when the tank dies in its exact position, or can also be created with the command of an admin, this entity will radiate healing waves in its vicinity (The Glow colors are only available in Left 4 Dead 2, for left 4 Dead 1 it will always be white).

Default color settings (The glow color will be green)


Settings in random colors


Command
!healing Create an entity which radiates healing for anyone in the vicinity.
Admin level required ADMFLAG_BAN

ConVars
PHP Code:
// Chance that when the Tank dies a healing field is generated. 0 = Plugin OFF
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
l4d_healing_field_chance "50"

// Sets the colors of the healing field.
// 1 = Random colors.
// 2 = Default color.
// Custom color, example: "0 255 255 255"
// -
// Default: "1"
l4d_healing_field_colors "1"

// Enables/Disables the glowing on entities. 1 = Glow ON. 0 = Glow OFF.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_healing_field_glow "1"

// Sets the amount of health survivors receive per second.
// -
// Default: "6"
// Minimum: "1.000000"
// Maximum: "10.000000"
l4d_healing_field_health "6"

// Sets the duration time of the healing field (Seconds).
// -
// Default: "30.0"
// Minimum: "5.000000"
// Maximum: "60.000000"
l4d_healing_field_life "30.0"

// Sets the max range of the healing field.
// -
// Default: "200.0"
// Minimum: "50.000000"
// Maximum: "500.000000"
l4d_healing_field_range "200.0" 
Changelog

HTML Code:
Version 1.4 [05-18-2020]
- Public version.

Version 1.5 [06-12-2020]
- New ConVars.
- Now you can select between random, default and custom colors.
- New ConVar to set how much health survivors will receive per second.

Version 1.6 [06-20-2020]
- Health restoration is now complete even if you have the black and white screen.
- More added random models.
Credits
Silvers, for his code in Prototype Grenades.

Install

1 - Click "Get Plugin" and put the "l4d_healing_field.smx" file into your server or game \addons\sourcemod\plugins\ folder.
2 - If you have an older version delete the file "l4d_healing_field.cfg" into your server or game left4dead\cfg\sourcemod folder (The file will be recreated with the new ConVars).

In case you want to use a custom color

Enter three values between 0 and 255 with a space between each number, and the fourth number must be 255 (Alpha), examples:
l4d_healing_field_colors "0 255 255 255"
l4d_healing_field_colors "0 255 0 255"
l4d_healing_field_colors "128 255 0 255"

(Web compiler configured for SM 1.10)
__________________

Last edited by Ernecio; 01-17-2023 at 16:09. Reason: Upgraded, And Description
Ernecio is offline