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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 08-08-2020 , 00:35   Re: [L4D2] Healing Gnome (1.7) [10-May-2020]
Reply With Quote #11

can you add a cvar to define the amount of life it regenerates per second? and same here https://forums.alliedmods.net/showthread.php?t=181518
Tonblader is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-08-2020 , 09:53   Re: [L4D2] Healing Gnome (1.7) [10-May-2020]
Reply With Quote #12

Can you use your eyes and read, both have this already. And stop PM'ing me links to your thread replies, I'll see it when I see it.

Quote:
Originally Posted by Silvers View Post
  • To change the speed someone is healed, use this cvar: sv_healing_gnome_replenish_rate cvar
Quote:
Originally Posted by Silvers View Post
PHP Code:
// The rate at which players are healed. HP per second.
l4d2_cola_rate "1.5" 
__________________
Silvers is offline
Electr000999
Senior Member
Join Date: Aug 2011
Old 08-12-2020 , 16:19   Re: [L4D2] Healing Gnome (1.7) [10-May-2020]
Reply With Quote #13

Quote:
Originally Posted by Silvers View Post
Can you use your eyes and read, both have this already. And stop PM'ing me links to your thread replies, I'll see it when I see it.
i think they ask because plugin crazy speedup healing. this because it create CreateTimer(0.1, tmrHeal, _, TIMER_REPEAT); on every event item_pickup and after dozens of gnome grabs, the healing speed increases dramaticaly


because check if( g_hTimerHeal == null ) passed everytime (g_hTimerHeal never stored timer handle value anythere in code) and equal null


fix:
instead:

Code:
if( g_hTimerHeal == null )
	CreateTimer(0.1, tmrHeal, _, TIMER_REPEAT);
paste:
Code:
if( g_hTimerHeal == null )
	g_hTimerHeal = CreateTimer(0.1, tmrHeal, _, TIMER_REPEAT);

same also in cola healing plugin

Last edited by Electr000999; 08-12-2020 at 16:38.
Electr000999 is offline
Send a message via Skype™ to Electr000999
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-14-2020 , 18:21   Re: [L4D2] Healing Gnome (1.7) [10-May-2020]
Reply With Quote #14

Quote:
Originally Posted by Electr000999 View Post
i think they ask because plugin crazy speedup healing. this because it create CreateTimer(0.1, tmrHeal, _, TIMER_REPEAT); on every event item_pickup and after dozens of gnome grabs, the healing speed increases dramaticaly
If this was mentioned in the post I would have fixed but they simply asked for the rate cvar which was already provided in both plugins. Anyway now fixed the cvar handle not being set so it should run correctly, also fixed not resetting some variables in each plugin which would have made both plugins run ever so very slightly slower (although not incorrectly).

Code:
1.8 (14-Aug-2020)
    - Fixed heal timer duplicating. Thanks to "Electr000999" for reporting.
__________________
Silvers is offline
weffer
Member
Join Date: Oct 2020
Old 03-26-2021 , 17:02   Re: [L4D2] Healing Gnome (1.8) [14-Aug-2020]
Reply With Quote #15

this plugin can remove black and white effect ?
weffer is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-27-2021 , 11:33   Re: [L4D2] Healing Gnome (1.8) [14-Aug-2020]
Reply With Quote #16

Quote:
Originally Posted by weffer View Post
this plugin can remove black and white effect ?
This plugin only heals to maximum health, either filling temporary health like pills, otherwise it fills main health. It will not heal someone from black and white like medkits and this is not a feature I'll add.
__________________
Silvers is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 03-27-2021 , 15:24   Re: [L4D2] Healing Gnome (1.8) [14-Aug-2020]
Reply With Quote #17

Quote:
Originally Posted by Silvers View Post
This plugin only heals to maximum health, either filling temporary health like pills, otherwise it fills main health. It will not heal someone from black and white like medkits and this is not a feature I'll add.
I also need that by curing all the base life (not temporary life) I can heal the state of black and white.
Tonblader is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-29-2021 , 11:08   Re: [L4D2] Healing Gnome (1.9) [29-Mar-2021]
Reply With Quote #18

Done.

Code:
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".
Also updated Cola plugin with the same feature.
__________________

Last edited by Silvers; 03-29-2021 at 11:13.
Silvers is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 03-29-2021 , 16:15   Re: [L4D2] Healing Gnome (1.9) [29-Mar-2021]
Reply With Quote #19

Quote:
Originally Posted by Silvers View Post
Code:
- Added cvar "l4d2_gnome_full" to give full health and remove the black and white effect. Requested by "weffer" and "Tonblader".
Quote:
Originally Posted by Silvers View Post
PHP Code:
l4d2_gnome_full "0" // 0=Off, 1=Give full health when temporary health has regenerated to 100, also removes black and white effect. 
The cvar correctly meets its description.
Although I also forgot to detail that removing the B&W state should work with the base life (l4d2_gnome_temp "0") and not with the temporary life (l4d2_gnome_temp "-1"), although this can turn it into cvar to select this feature to temporary life and/or base life.
In addition
Since the temporary life has the particularity of reducing with the passage of time, it would not make sense for the gnome and cola to heal you at 100 of the base life, in any case, heal 100 temporary life (calculation between current base life and temporary life ) and remove the B&W state (and no heal the base heal, just keep temporary life)
Maybe you can add that when the temporary life is at 100, it starts to heal the base health only if it is defined by cvar that the regeneration of life only works with the temporary life.

Quote:
Originally Posted by Marttt 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.

Last edited by Tonblader; 03-29-2021 at 16:35.
Tonblader is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-29-2021 , 17:01   Re: [L4D2] Healing Gnome (1.9) [29-Mar-2021]
Reply With Quote #20

Too many requests, too little time.

Edit updated:
Code:
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.
Won't add flipping from temp health to main, resetting from 100 to 1 doesn't seem to make sense.
__________________

Last edited by Silvers; 03-31-2021 at 04:25.
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 15:40.


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