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

[L4D & L4D2] Regenerative Healing (1.13) [05-Mar-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
bald14
Member
Join Date: Aug 2021
Old 08-31-2021 , 02:35   Re: [L4D & L4D2] Regenerative Healing (1.8) [30-Sep-2020]
Reply With Quote #11

Hi Silver. This is a good plugin but can you fix the healing time for each item?

Last edited by bald14; 08-31-2021 at 05:08.
bald14 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-31-2021 , 05:09   Re: [L4D & L4D2] Regenerative Healing (1.8) [30-Sep-2020]
Reply With Quote #12

If you set the cvar to 40 and have 20 health it will heal to 60. The cvar means the amount first aid/pills/adren will heal when used. I'll clarify the cvars. If there's still and issue please let me know. Thanks.
__________________
Silvers is offline
bald14
Member
Join Date: Aug 2021
Old 09-01-2021 , 02:28   Re: [L4D & L4D2] Regenerative Healing (1.8) [30-Sep-2020]
Reply With Quote #13

Yes . I mean I want the firstkit to heal 40hp per second and the pill to heal for 2hp per second.
And as a side note, I want a plugin that can reduce the number of spawn kits in the saferoom from 4 to 2 or less. Can you make it?
I used to use this plugin but it's not working as expected : https://forums.alliedmods.net/showthread.php?t=121659
Sorry for my English and thanks for listening.

Last edited by bald14; 09-01-2021 at 02:32.
bald14 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-01-2021 , 10:51   Re: [L4D & L4D2] Regenerative Healing (1.0) [01-Sep-2021]
Reply With Quote #14

Code:
1.9 (01-Sep-2021)
    - Added cvars "l4d_healing_health_adren", "l4d_healing_health_first" and "l4d_healing_health_pills" to set health rate.
    - Requested by "bald14".
__________________
Silvers is offline
bald14
Member
Join Date: Aug 2021
Old 09-01-2021 , 13:22   Re: [L4D & L4D2] Regenerative Healing (1.0) [01-Sep-2021]
Reply With Quote #15

Quote:
Originally Posted by Silvers View Post
Code:
1.9 (01-Sep-2021)
    - Added cvars "l4d_healing_health_adren", "l4d_healing_health_first" and "l4d_healing_health_pills" to set health rate.
    - Requested by "bald14".
Thank you Silver.
There is one more thing I would like to comment on this plugin: Can you add a command to make an additional item hp and thp? For example: I want a pill that can restore 10hp and 40thp.
Have a nice day .
bald14 is offline
Maur0
Senior Member
Join Date: Aug 2020
Old 09-01-2021 , 14:22   Re: [L4D & L4D2] Regenerative Healing (1.0) [01-Sep-2021]
Reply With Quote #16

Hi Silvers, just download the new version and now there is a small bug that I am having.

The problem is that now the survivors do not regenerate their health when I apply the command l4d_healing_regenerate be it in the value 1, 2 and 3. No matter what value you put it, they do not begin to regenerate them. When I use the pills, adrenaline and kits, it works perfect. But not when they regenerate themselves.

Here is my configuration that I have modified:
Code:
// This file was auto-generated by SourceMod (v1.11.0.6708)
// ConVars for plugin "l4d_healing.smx"


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

// 0.0=Off. After taking damage wait this long before regenerating health again.
// -
// Default: "0.0"
l4d_healing_damage "5.0"

// How much health to apply while the effect is active, each time the timer fires.
// -
// Default: "2"
l4d_healing_health "2"

// How much health to apply while the effect is active, each time the timer fires. 0 Defaults to using l4d_healing_health cvar.
// -
// Default: "2"
l4d_healing_health_adren "2"

// How much health to apply while the effect is active, each time the timer fires. 0 Defaults to using l4d_healing_health cvar.
// -
// Default: "2"
l4d_healing_health_first "2"

// How much health to apply while the effect is active, each time the timer fires. 0 Defaults to using l4d_healing_health cvar.
// -
// Default: "2"
l4d_healing_health_pills "2"

// Maximum player health to prevent over-healing.
// -
// Default: "100"
l4d_healing_max "200"

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

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

// Heal when their movement speed is slower than this. 0.0=Off. 76=Crouched. 86=Walking. 250=Running.
// -
// Default: "0.0"
l4d_healing_moving "0.0"

// Maximum health Adrenaline can regenerate (L4D2 only).
// -
// Default: "50.0"
l4d_healing_regen_adren "100.0"

// Maximum health First Aid can regenerate.
// -
// Default: "100.0"
l4d_healing_regen_first "100.0"

// Maximum health Pain Pills can regenerate.
// -
// Default: "50.0"
l4d_healing_regen_pills "100.0"

// 0=Items regen main health. Regen with temp health: 1=Adrenaline (L4D2 only), 2=Pain Pills, 4=First Aid. 7=All. Add numbers together.
// -
// Default: "0"
l4d_healing_regen_type "0"

// Survivors always regenerate health. 0=Off. 1=Main health. 2=Temp health. 3=Main health and replace temp while healing.
// -
// Default: "0"
l4d_healing_regenerate "3"

// When allowed item types are used: 1=Remove health applied. 2=Replace temp health when healing with main health. 3=Both.
// -
// Default: "3"
l4d_healing_temp "3"

// How often to heal the player.
// -
// Default: "0.5"
l4d_healing_time "0.1"

// Which item to affect. 0=None, 1=Adrenaline (L4D2 only), 2=Pain Pills, 4=First Aid. 7=All. Add numbers together.
// -
// Default: "3"
l4d_healing_type "0"
And I have checked if there is any error or conflict. But everything works perfect. I don't know if I have done something wrong.
Maur0 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-01-2021 , 14:22   Re: [L4D & L4D2] Regenerative Healing (1.0) [01-Sep-2021]
Reply With Quote #17

Quote:
Originally Posted by bald14 View Post
Thank you Silver.
There is one more thing I would like to comment on this plugin: Can you add a command to make an additional item hp and thp? For example: I want a pill that can restore 10hp and 40thp.
Have a nice day .
Quote:
Originally Posted by Silvers View Post
PHP Code:
// Maximum health Adrenaline can regenerate (L4D2 only).
l4d_healing_regen_adren "50.0"

// Maximum health First Aid can regenerate.
l4d_healing_regen_first "100.0"

// Maximum health Pain Pills can regenerate.
l4d_healing_regen_pills "50.0" 
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-01-2021 , 14:28   Re: [L4D & L4D2] Regenerative Healing (1.0) [01-Sep-2021]
Reply With Quote #18

Quote:
Originally Posted by Maur0 View Post
Hi Silvers, just download the new version and now there is a small bug that I am having.

The problem is that now the survivors do not regenerate their health when I apply the command l4d_healing_regenerate be it in the value 1, 2 and 3. No matter what value you put it, they do not begin to regenerate them. When I use the pills, adrenaline and kits, it works perfect. But not when they regenerate themselves.

Here is my configuration that I have modified:

[snip]

And I have checked if there is any error or conflict. But everything works perfect. I don't know if I have done something wrong.

Thanks, should be fixed.

Code:
1.10 (01-Sep-2021)
    - Fixed regenerative healing not working due to the last update. Thanks to "Maur0" for reporting.
__________________
Silvers is offline
bald14
Member
Join Date: Aug 2021
Old 09-01-2021 , 15:08   Re: [L4D & L4D2] Regenerative Healing (1.0) [01-Sep-2021]
Reply With Quote #19

Maybe not this . I mean can you make an item that restores HP and restores HP at the same time?
I want the pill that can restore 5hp and 45thp in my host.
Hope you can help
bald14 is offline
Maur0
Senior Member
Join Date: Aug 2020
Old 09-01-2021 , 15:21   Re: [L4D & L4D2] Regenerative Healing (1.0) [01-Sep-2021]
Reply With Quote #20

Quote:
Originally Posted by Silvers View Post
Thanks, should be fixed.

Code:
1.10 (01-Sep-2021)
    - Fixed regenerative healing not working due to the last update. Thanks to "Maur0" for reporting.
Thank you!
Maur0 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 10:58.


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