Raised This Month: $32 Target: $400
 8% 

[L4D2] Healing Gnome (1.17) [03-Oct-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
2822
Plugin Version:
1.17
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    158 
    Plugin Description:
    Heals players with temporary or main health when they hold the Gnome.
    Old 02-27-2012 , 23:47   [L4D2] Healing Gnome (1.17) [03-Oct-2022]
    Reply With Quote #1



    Related Plugins:

    About:
    • Healing Gnome for all game modes.
    • Gives temporary health or main health. Not above 100 HP.
    • To change the amount someone is healed, use this cvar: sv_healing_gnome_replenish_rate cvar
    • Gnomes can spawn in the saferoom, set the cvar l4d2_gnome_safe.
    • Save up to 32 Gnomes for auto-spawning. Saved to l4d2_gnome.cfg in your servers \addons\sourcemod\data\ folder.


    Thanks:
    • disawar1 - For the idea.
    • alexip121093 - Auto spawn request.
    • ilyaadminman


    Admin Commands: (requires "z" flag)

    PHP Code:
    sm_gnome       // Spawns a temporary gnome at your crosshair.
    sm_gnomesave   // Spawns a gnome at your crosshair and saves to config.
    sm_gnomedel    // Removes the gnome you are pointing at and deletes from the config if saved.
    sm_gnomekill   // Removes all gnomes from the current map and deletes them from the config.
    sm_gnomeglow   // Toggle to enable glow on all gnomes to see where they are placed.
    sm_gnomelist   // Display a list gnome positions and the total number of.
    sm_gnometele   // Teleport to a gnome (Usage: sm_gnometele <index: 1 to MAX_GNOMES>).
    sm_gnomeang    // Displays a menu to adjust the gnome angles your crosshair is over.
    sm_gnomepos    // Displays a menu to adjust the gnome origin your crosshair is over. 

    CVars:

    Saved to l4d2_gnome.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d2_gnome_allow "1"

    // 0=Off. Sets the max range at which the gnome glows.
    l4d2_gnome_glow "200"

    // 0=Default glow color. Three values between 0-255 separated by spaces. RGB: Red Green Blue.
    l4d2_gnome_glow_color "255 0 0"

    // 0=Off, Remove black and white effect and give full health when regenerated to 100 with: 1=Temporary health. 2=Main health.
    l4d2_gnome_full "0"

    // 0=Off, 1=Heal players holding the gnome using cvars not from the Healing Field. Does not affect Healing Field.
    l4d2_gnome_heal "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d2_gnome_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d2_gnome_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d2_gnome_modes_tog "0"

    // -1=All, 0=None. Otherwise randomly select this many gnomes to spawn from the maps confg.
    l4d2_gnome_random "-1"

    // On round start spawn the gnome: 0=Off, 1=In the saferoom, 2=Equip to random player.
    l4d2_gnome_safe "0"

    // -1=Add temporary health, 0=Add to main health. Values between 1 and 100 creates a chance to give temp health, else main health.
    l4d2_gnome_temp "-1"

    // 0=Off. Interval in seconds, for healing someone holding the gnome.
    l4d2_gnome_time "1.0"

    // 0=Off. 1=Heal players around the player holding the gnome.
    l4d2_gnome_healing_field "1"

    // 0=Off. Interval in seconds, for the healing field trigger the heal and beacon again.
    l4d2_gnome_healing_field_refresh_time "1.5"

    // Heal amount from being inside the healing field.
    l4d2_gnome_healing_field_heal_amount "2.0"

    // Heal amount for incapped players from being inside the healing field.
    l4d2_gnome_healing_field_heal_amount_incap "2.0"

    // 0=Only healing others. 1=Heal self and others.
    l4d2_gnome_healing_field_self "1"

    // 0=Off. 1=Generates a beacon.
    l4d2_gnome_healing_field_heal_beacon "1"

    // Healing field color. Three values between 0-255 separated by spaces. RGB: Red Green Blue.\nUse \"random\" to generate random colors.
    l4d2_gnome_healing_field_color "0 255 0"

    // Healing field start radius.
    l4d2_gnome_healing_field_start_radius "100.0"

    // Healing field end radius. Also determines the max distance to heal players around the player holding the gnome.\nMax distance = (l4d2_gnome_healing_field_end_radius / 2) because of the diameter.
    l4d2_gnome_healing_field_end_radius "350.0"

    // How many seconds the healing field should last.
    l4d2_gnome_healing_field_duration "1.0"

    // Healing field width.
    l4d2_gnome_healing_field_width "3.0"

    // Healing field amplitude.
    l4d2_gnome_healing_field_amplitude "0.0"

    // Healing Gnome plugin version.
    l4d2_gnome_version 

    Changes:
    Code:
    1.17 (03-Oct-2022)
        - Added cvar "l4d2_gnome_time" to control how often to heal someone holding a gnome.
        - Now uses the "m_iMaxHealth" value instead of the "MAX_MAIN_HEALTH" define. Thanks to "Haigen" for changing.
        - Now checks if a Survivor is pinned to allow or disallow healing. Thanks to "Haigen" for fixing.
        - Removed unused define "MAX_INCAP_HEALTH" - uses the games "survivor_incap_health" cvar value.
    
    1.16 (15-Sep-2021)
        - Added cvar "l4d2_gnome_healing_field_self" to determine if the Healing Field can heal yourself or not.
        - Changed cvar "l4d2_gnome_temp" to be a chance of giving temporary health.
        - Fixed Healing Field not healing players with the cvar specified amount. Thanks to "Maur0" for the reporting.
    
    1.15 (12-Sep-2021)
        - Re-wrote the heal client logic. Fixing various issues when reaching limits.
        - Now has two defines in the source code to set maximum health. MAX_INCAP_HEALTH for incap temp health. MAX_MAIN_HEALTH inclues main and temp health.
    
    1.14 (30-Aug-2021)
        - Fixed losing temporary health when the limit was reached. Thanks to "Shao" for reporting.
    
    1.13 (31-Jul-2021)
        - Added cvars "l4d2_gnome_max_main" and "l4d2_gnome_max_temp" to control the maximum main and temporary health allowed to heal to.
        - Fixed cvar "l4d2_gnome_heal" when set to "0" not allowing the healing field feature to work. Again.
        - Now ignores healing the holder with the standard healing when healing field is enabled.
    
    1.12 (01-Jun-2021)
        - Fixed cvar "l4d2_gnome_heal" when set to "0" not allowing the Healing Field feature to work. Thanks to "ddd123" for reporting.
    
    1.11 (02-Apr-2021)
        - Healing Field update - by "Marttt":
        - This enables healing around a person carrying the Gnome. Uses the same healing field effect like the "Medic" grenade from "Prototype Grenades" plugin.
    
        - Added cvars:
            "l4d2_gnome_healing_field", "l4d2_gnome_healing_field_refresh_time", "l4d2_gnome_healing_field_heal_amount", "l4d2_gnome_healing_field_heal_amount_incap",
            "l4d2_gnome_healing_field_heal_beacon", "l4d2_gnome_healing_field_color", "l4d2_gnome_healing_field_start_radius", "l4d2_gnome_healing_field_end_radius",
            "l4d2_gnome_healing_field_duration", "l4d2_gnome_healing_field_width", "l4d2_gnome_healing_field_amplitude".
    
        - See threads main post for details on the cvars.
    
    1.10 (31-Mar-2021)
        - Changed cvar "l4d2_gnome_full" to give full health and remove the black and white effect, either on temporary or main health.
    
    1.9 (29-Mar-2021)
        - Added cvar "l4d2_gnome_full" to give full health and remove the black and white effect. Requested by "weffer" and "Tonblader".
    
    1.8 (14-Aug-2020)
        - Fixed heal timer duplicating. Thanks to "Electr000999" for reporting.
    
    1.7 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
        - Various optimizations and fixes.
    
    1.6 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.5 (05-May-2018)
        - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    
    1.4 (21-Jul-2013)
        - Removed Sort_Random work-around. This was fixed in SourceMod 1.4.7, all should update or spawning issues will occur.
    
    1.3 (01-Jul-2012)
        - Added cvars "l4d2_gnome_glow" and "l4d2_gnome_glow_color" to make the gnome glow.
        - Fixed healing players above 100 HP.
    
    1.2 (10-May-2012)
        - Added cvar "l4d2_gnome_modes_off" to control which game modes the plugin works in.
        - Added cvar "l4d2_gnome_modes_tog" same as above.
        - Renamed command "sm_gnomewipe" to "sm_gnomekill", due to command name conflict.
        - Changed cvar "l4d2_gnome_safe", 1=Spawn in saferoom, 2=Equip to random player.
    
    1.1 (01-Mar-2012)
        - Added command sm_gnomeglow to display the gnome positions.
        - Added command sm_gnometele to teleport to gnome positions.
    
    1.0 (28-Feb-2012)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.

    Updating from 1.16 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_gnome.sp - 1067 views - 53.9 KB)
    __________________

    Last edited by Silvers; 10-02-2022 at 23:17.
    Silvers is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 02-27-2012 , 23:53   Re: [L4D2] Healing Gnome (1.0) [28-Feb-2012]
    Reply With Quote #2

    WOW magic gnome !!!
    It is useful now
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 02-28-2012 , 03:26   Re: [L4D2] Healing Gnome (1.0) [28-Feb-2012]
    Reply With Quote #3

    I just started speech about gnome .. as a plugin was ready
    __________________
    disawar1 is offline
    trollhater
    Member
    Join Date: Jul 2011
    Old 02-28-2012 , 11:43   Re: [L4D2] Healing Gnome (1.0) [28-Feb-2012]
    Reply With Quote #4

    It seems someone liked the idea that map author Nicadeamas uses in his map Firetower Trail and copied it. BTW, he will not care that it has been copied, just wanted to troll for a few seconds. Very unfulfilling as always.
    trollhater is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 02-28-2012 , 12:42   Re: [L4D2] Healing Gnome (1.0) [28-Feb-2012]
    Reply With Quote #5

    Quote:
    Originally Posted by trollhater View Post
    It seems someone liked the idea that map author Nicadeamas uses in his map Firetower Trail and copied it. BTW, he will not care that it has been copied, just wanted to troll for a few seconds. Very unfulfilling as always.
    Nope! It seems u don't understand what you say...

    Author VALVE
    Code:
    "sv_healing_gnome_replenish_rate"          : 1.5      : , "sv", "cheat"  :
    Left 4 Dead 2 cvar
    __________________
    disawar1 is offline
    Jоnny
    Senior Member
    Join Date: Jun 2007
    Old 02-28-2012 , 14:30   Re: [L4D2] Healing Gnome (1.0) [28-Feb-2012]
    Reply With Quote #6

    Nice!
    Jоnny is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 02-28-2012 , 18:35   Re: [L4D2] Healing Gnome (1.0) [28-Feb-2012]
    Reply With Quote #7

    Quote:
    Originally Posted by disawar1 View Post
    Nope! It seems u don't understand what you say...

    Author VALVE
    Code:
    "sv_healing_gnome_replenish_rate"          : 1.5      : , "sv", "cheat"  :
    Left 4 Dead 2 cvar
    The healing gnome is a official mutation gamemode in l4d2
    __________________

    Last edited by alexip121093; 02-28-2012 at 18:37.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 02-28-2012 , 20:55   Re: [L4D2] Healing Gnome (1.0) [28-Feb-2012]
    Reply With Quote #8

    yep QED, it's mutation20
    __________________
    disawar1 is offline
    SyluxLockjaw100
    Senior Member
    Join Date: Jul 2010
    Location: Novaya Russia
    Old 03-09-2012 , 05:56   Re: [L4D2] Healing Gnome (1.1) [01-Mar-2012]
    Reply With Quote #9

    Perfect. Just what I wanted,thanks Silvers.
    SyluxLockjaw100 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 07-21-2013 , 12:57   Re: [L4D2] Healing Gnome (1.4) [21-Jul-2013]
    Reply With Quote #10

    Plugin updated

    1.4 (21-Jul-2013)
    - Removed Sort_Random work-around. This was fixed in SourceMod 1.4.7, all should update or spawning issues will occur.
    __________________
    Silvers is offline
    Reply



    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:17.


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