Raised This Month: $67 Target: $400
 16% 

[L4D1 AND L4D2] Healing Field (06/20/2020)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ernecio
Member
Join Date: Sep 2019
Location: The United Mexican State
Plugin ID:
7116
Plugin Version:
1.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    When the Tank dies a field is generated in which the survivors receive health.
    Old 05-18-2020 , 01:08   [L4D1 AND L4D2] Healing Field (06/20/2020)
    Reply With Quote #1

    [L4D1 AND L4D2] Healing Field

    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)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_healing_field.sp - 606 views - 24.2 KB)
    __________________

    Last edited by Ernecio; 06-21-2020 at 00:43. Reason: Upgraded, And Description
    Ernecio is offline
    user2000
    Member
    Join Date: Nov 2015
    Location: Peru - Lima
    Old 05-18-2020 , 09:03   Re: [L4D1 AND L4D2] Healing Field
    Reply With Quote #2

    It works well . Thank you
    user2000 is online now
    Under Dog
    Junior Member
    Join Date: May 2017
    Old 05-23-2020 , 14:11   Re: [L4D1 AND L4D2] Healing Field
    Reply With Quote #3

    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).
    Under Dog is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-23-2020 , 15:57   Re: [L4D1 AND L4D2] Healing Field
    Reply With Quote #4

    Quote:
    Originally Posted by Under Dog View Post
    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.

    __________________
    Silvers is offline
    Ernecio
    Member
    Join Date: Sep 2019
    Location: The United Mexican State
    Old 05-26-2020 , 18:23   Re: [L4D1 AND L4D2] Healing Field
    Reply With Quote #5

    Thanks for the suggestion, I'll put a note
    __________________
    Ernecio is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: TW
    Old 06-09-2020 , 15:27   Re: [L4D1 AND L4D2] Healing Field
    Reply With Quote #6

    I created a new convar
    PHP Code:
    hCvar_healLife                CreateConVar("l4d_healing_field_hp",        "3.0",        "Set the heal hp every second."FCVAR_NOTIFYtrue1.0); 
    PHP Code:
    // Set the heal hp every second.
    // -
    // Default: "3.0"
    // Minimum: "1.000000"
    l4d_healing_field_hp "3.0" 
    hope you don't mind
    __________________

    Last edited by HarryPotter; 06-09-2020 at 15:28.
    HarryPotter is offline
    Ernecio
    Member
    Join Date: Sep 2019
    Location: The United Mexican State
    Old 06-12-2020 , 12:47   Re: [L4D1 AND L4D2] Healing Field
    Reply With Quote #7

    I didn't think of this before, thanks for the idea, i'll add it
    __________________
    Ernecio is offline
    Under Dog
    Junior Member
    Join Date: May 2017
    Old 06-15-2020 , 00:22   Re: [L4D1 AND L4D2] Healing Field (06/12/2020)
    Reply With Quote #8

    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.
    Under Dog is offline
    Ernecio
    Member
    Join Date: Sep 2019
    Location: The United Mexican State
    Old 06-16-2020 , 22:27   Re: [L4D1 AND L4D2] Healing Field (06/12/2020)
    Reply With Quote #9

    I understand what you mean, in a future update I will add an improvement for this, so while the field only offers a cure when it has been uncapassed once or has not been incaspassed, then if it is in black and white it will give temporary health.
    __________________
    Ernecio is offline
    Winn
    Junior Member
    Join Date: Feb 2016
    Old 08-31-2020 , 16:14   Re: [L4D1 AND L4D2] Healing Field (06/20/2020)
    Reply With Quote #10

    Great plugin!
    Winn 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 01:27.


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