Raised This Month: $51 Target: $400
 12% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
weffer
Member
Join Date: Oct 2020
Old 03-29-2021 , 20:07   Re: [L4D2] Healing Gnome (1.9) [29-Mar-2021]
Reply With Quote #21

Quote:
Originally Posted by Tonblader View Post

Could you also add mart's code to your current plugin?
It happens that I currently use mart plugin because it additionally has a healing beacon provided by the gnome and cola that turns out to be very useful so that the person who carries it can also heal their allies.

In the mart plugin it only affects the base health of the survivors, could you also add that it can also be affected to the temporary life? (cvar)
That also the surviving allies can recover from the B&W state
All this defined by cvars where it allows the base life and/or temporary life.

This request is too specific, sorry for this.

compile this .sp, remove the old generated cfg and change the new cvar l4d2_gnome_full = 1
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_gnome.sp - 115 views - 47.8 KB)

Last edited by weffer; 03-29-2021 at 20:08.
weffer is offline
ddd123
Senior Member
Join Date: May 2021
Old 06-01-2021 , 14:26   Re: [L4D2] Healing Gnome (1.11) [02-Apr-2021]
Reply With Quote #22

It is just me or gnome holder heal faster than healing field even when i change "l4d2_gnome_healing_field_refresh_time" more time?

Actually, is there's a way to just heal only the teammates?
Turning off "l4d2_gnome_heal" just remove all heal so i assuming that config is something like "enable plugin" or something
ddd123 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-01-2021 , 14:41   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #23

Quote:
Originally Posted by ddd123 View Post
It is just me or gnome holder heal faster than healing field even when i change "l4d2_gnome_healing_field_refresh_time" more time?

Actually, is there's a way to just heal only the teammates?
Turning off "l4d2_gnome_heal" just remove all heal so i assuming that config is something like "enable plugin" or something

Thanks, fixed. You're saying it's healing faster when holding the gnome with the healing field? Both the field and holding are healing? Will look into that at a later stage.

Code:
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.
__________________
Silvers is offline
jian yu
Member
Join Date: Jun 2021
Old 06-28-2021 , 08:58   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #24

-------------------------
Hi ! I installed this plugin already and I got a question
that I set the l4d2_gnome_healing_field_heal_amount "34.5" for players being inside the healing field and it works .

but what if I want that player who's holding the gnome can heals as "50" at same time ! not only "1" so how can I do that ? I changed the settings as :

Code:
// 0=Off, 1=Heal players holding the gnome.
// -
// Default: "1"
l4d2_gnome_heal "50"
but it still only heal amount by "1" for the player who's holding the gnome not 34.5 or 50

my full config :

Code:
// This file was auto-generated by SourceMod (v1.10.0.6504)
// ConVars for plugin "l4d2_gnome.smx"


// 0=Plugin off, 1=Plugin on.
// -
// Default: "1"
l4d2_gnome_allow "1"

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

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

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

// 0=Off, 1=Heal players holding the gnome.
// -
// Default: "1"
l4d2_gnome_heal "50"

// 0=Off. 1=Heal players around the player holding the gnome.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_gnome_healing_field "1"

// Healing field amplitude.
// -
// Default: "0.0"
// Minimum: "0.000000"
l4d2_gnome_healing_field_amplitude "0.0"

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

// How many seconds the healing field should last.
// -
// Default: "1.0"
// Minimum: "0.000000"
l4d2_gnome_healing_field_duration "1.0"

// Healing field end radius. Also determines the max distance to heal players around the player holding the gnome.
// Max distance = (l4d2_gnome_healing_field_end_radius / 2) because of the diameter.
// -
// Default: "350.0"
// Minimum: "0.000000"
l4d2_gnome_healing_field_end_radius "1500.0"

// Heal amount from being inside the healing field.
// -
// Default: "2.0"
// Minimum: "0.000000"
l4d2_gnome_healing_field_heal_amount "34.5"

// Heal amount for incapped players from being inside the healing field.
// -
// Default: "2.0"
// Minimum: "0.000000"
l4d2_gnome_healing_field_heal_amount_incap "100.0"

// 0=Off. 1=Generates a beacon.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_gnome_healing_field_heal_beacon "1"

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

// Healing field start radius.
// -
// Default: "100.0"
// Minimum: "0.000000"
l4d2_gnome_healing_field_start_radius "50.0"

// Healing field width.
// -
// Default: "3.0"
// Minimum: "0.000000"
l4d2_gnome_healing_field_width "5.0"

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

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
// -
// Default: ""
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.
// -
// Default: "0"
l4d2_gnome_modes_tog "0"

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

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

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

Thanks for helping me !

-------
-------

Last edited by jian yu; 06-28-2021 at 09:05.
jian yu is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-28-2021 , 19:03   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #25

Quote:
Originally Posted by jian yu View Post
-
Change the "sv_healing_gnome_replenish_rate" cvar, it multiplies the health against this value.
__________________
Silvers is offline
jian yu
Member
Join Date: Jun 2021
Old 06-29-2021 , 01:58   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #26

Quote:
Originally Posted by Silvers View Post
Change the "sv_healing_gnome_replenish_rate" cvar, it multiplies the health against this value.
is there anyway to execute it without "sv_cheats 1" command before ? or is there another way that could make the one who holding the gnome healing much more ? as "50/per sec" to heal for the one that holding the gnome ?




Thanks for helping me




---
jian yu is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-29-2021 , 02:07   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #27

Put sm_cvar before the cvar. Might update to change and use the plugins heal cvar instead but this is low priority for me.
__________________
Silvers is offline
jian yu
Member
Join Date: Jun 2021
Old 06-29-2021 , 03:00   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #28

Quote:
Originally Posted by Silvers View Post
Put sm_cvar before the cvar. Might update to change and use the plugins heal cvar instead but this is low priority for me.
wow ~ thank you ! you are amazing !! it really works !! totally working so fine !!!

so ! that " sm_cvar " seems like a " sudo " from ubuntu right ? or ?


oh !! I see its just because of that "basecommands.smx" plugin exist , so that we got permission to execute it ! right ?


Code:
L 06/29/2021 - 15:04:29: [basecommands.smx] "player name<2><STEAM_-----><>" changed cvar (cvar "sv_healing_gnome_replenish_rate") (value "50")
[SM] cvar "sv_healing_gnome_replenish_rate" L 06/29/2021 - 15:04:30: [infinite_panic.smx] Gamemode Check ran, enabled = yes

thank you so much !!





--

Last edited by jian yu; 06-29-2021 at 03:07.
jian yu is offline
Hawkins
Senior Member
Join Date: Jul 2021
Old 07-29-2021 , 23:50   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #29

I'm using plugins that alter max health. Is there a way to let the gnome heal to the newly set max_health?
Hawkins is offline
A1ekin
Member
Join Date: Jul 2021
Old 07-30-2021 , 01:52   Re: [L4D2] Healing Gnome (1.12) [01-Jun-2021]
Reply With Quote #30

More and more I look at your plugins and more and more I'm surprised how much you have already done, what I just thought about

I have a problem
I only want the gnome to restore health up to 50
I did not find suitable cvars

I have tried editing the .sp
Set values
#define MAX_HEALTH 50
#define MAX_TEMPS 50


And I ran into a problem
If my temporary health was more than 50 (for example: I used pills) and then I took a gnome, then my health is reset to 50

Is it possible to add a kvar that changes the maximum health regeneration value?

Last edited by A1ekin; 07-30-2021 at 01:53. Reason: Translation error
A1ekin 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 12:27.


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