AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [L4D1 AND L4D2] Healing Field (06/20/2020) (https://forums.alliedmods.net/showthread.php?t=324501)

Ernecio 05-18-2020 01:08

[L4D1 AND L4D2] Healing Field (06/20/2020)
 
[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)
https://steamuserimages-a.akamaihd.n...9695B8E31926B/

Settings in random colors
https://steamuserimages-a.akamaihd.n...5542B0892B31D/

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)

user2000 05-18-2020 09:03

Re: [L4D1 AND L4D2] Healing Field
 
It works well . Thank you :)

Under Dog 05-23-2020 14:11

Re: [L4D1 AND L4D2] Healing Field
 
It's not working. Here is the error I get.

L 05/23/2020 - 11:03:20: [SM] Failed to load plugin "l4d_healing_field.smx": Unable to load plugin (no debug string table).

Silvers 05-23-2020 15:57

Re: [L4D1 AND L4D2] Healing Field
 
Quote:

Originally Posted by Under Dog (Post 2701837)
It's not working. Here is the error I get.

L 05/23/2020 - 11:03:20: [SM] Failed to load plugin "l4d_healing_field.smx": Unable to load plugin (no debug string table).

Means it was compiled with 1.10. Either compile yourself for your SM version or better just upgrade SM.

Suggest author changes posts compiler to use 1.9 or something to support more servers when clicking "Get plugin" link.

:wink:

Under Dog 06-15-2020 00:22

Re: [L4D1 AND L4D2] Healing Field (06/12/2020)
 
It heals you and your team. no problem there. The issue is, If your black and white and you get health from the field, You stay black and white with the heartbeat sound. If your health is low enough and your character is saying things like, I'm going to die and Ya'll best be finding me a health kit and you get healed from the field, Your character keeps saying those phrases. it adds health but doesn't reset your characters condition.

Winn 08-31-2020 16:14

Re: [L4D1 AND L4D2] Healing Field (06/20/2020)
 
Great plugin!

ZBzibing 12-28-2020 03:22

Re: [L4D1 AND L4D2] Healing Field (06/20/2020)
 
this is very cool

AsphyxiaJLSA 10-27-2021 10:59

Re: [L4D1 AND L4D2] Healing Field (06/20/2020)
 
2 Attachment(s)
Hello I hope you do not mind, but I took your work and edited it to remove the ad that appears when removing a tank, in my case it is a bit annoying, I hope you do not mind

azureblue 12-17-2021 02:29

Re: [L4D1 AND L4D2] Healing Field (06/20/2020)
 
Hello, Nice plugin!

But may I ask you something?
I want to know how to increase limit healing points per second?

Quote:

// Sets the amount of health survivors receive per second.
// -
// Default: "6"
// Minimum: "1.000000"
// Maximum: "10.000000" <------ I want to increase this limit up to 100
l4d_healing_field_health "6"
Sorry for my noob question. Already checking the source but i couldn't find a clue. I have no idea how to do it.
Thank you !

Thefollors 03-16-2022 01:00

Re: [L4D1 AND L4D2] Healing Field (06/20/2020)
 
Hello, I like your plugin, but how can I change the model? I just want the medkit to appear when the tank dies.


All times are GMT -4. The time now is 05:03.

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