AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [Any] Hp Regeneration (https://forums.alliedmods.net/showthread.php?t=207294)

xNos 02-01-2013 03:37

[Any] Hp Regeneration
 
1 Attachment(s)
Hello everyone today I will post hp regeneration plugin.

Code:

1.4:
Code Improvement

1.2:
Added "AutoExecConfig"

1.0:
This is original version of Hp Regeneration by xNos.

Code:

Hp Regeneration ConVars:
sm_regeneration_enabeld "1"                -        ( Default: 1        )                -        Enables Hp Regeneration
sm_regeneration_timer        "1.0"        -        ( Default: 1.0        )                -        After how many sec the client get his regeneration
sm_regeneration_maxhp        "100"        -        ( Default: 100        )                -        Whats the maximum hp the player can get
sm_regeneration_amount        "10"        -        ( Default: 10        )                -        How match hp the player gets every regenerate

Credit to sNeeP for the "IsValidClient" Code.

Ready To Review!

Mirandor 02-01-2013 03:50

Re: [Any] Hp Regeneration
 
what's the difference between it and the already existing ones?

http://www.sourcemod.net/plugins.php...tion=&search=1

xNos 02-01-2013 03:56

Re: [Any] Hp Regeneration
 
Special code.

shadowdragon 02-01-2013 05:20

Re: [Any] Hp Regeneration
 
You should make it so the plugin dumps the cvars

shavit 02-01-2013 05:24

Re: [Any] Hp Regeneration
 
Actually, he made the IsValidClient stock and gave me it.
Nice plugin anyways.
Add AutoExecConfig so it'll be easier to control the cvars.

xNos 02-01-2013 05:46

Re: [Any] Hp Regeneration
 
Added

Franc1sco 02-01-2013 07:26

Re: [Any] Hp Regeneration
 
Use SetEntityHealth or as you use the stock of this plugin https://forums.alliedmods.net/showthread.php?p=500636 maybe mention it.

Also when the Timer cvar is changed, you should kill the actual timer and recreate it for change the timer interval.

And in the timer change "return Plugin_Handled;" for "return Plugin_Continue;"

Dr. McKay 02-01-2013 08:46

Re: [Any] Hp Regeneration
 
This is pretty much an exact duplicate of this plugin, so I'm unapproving it for now. PM me or any other approver if/when you update it to do something that isn't already done by another plugin.

xNos 02-01-2013 11:40

Re: [Any] Hp Regeneration
 
Quote:

Originally Posted by Franc1sco (Post 1884599)
Use SetEntityHealth or as you use the stock of this plugin https://forums.alliedmods.net/showthread.php?p=500636 maybe mention it.

Also when the Timer cvar is changed, you should kill the actual timer and recreate it for change the timer interval.

And in the timer change "return Plugin_Handled;" for "return Plugin_Continue;"

Added.

Quote:

Originally Posted by Dr. McKay (Post 1884631)
This is pretty much an exact duplicate of this plugin, so I'm unapproving it for now. PM me or any other approver if/when you update it to do something that isn't already done by another plugin.

This plugin have erors logs like :
Code:

L 07/27/2007 - 13:45:21: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:21: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:21: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:21: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:21: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:21: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:21: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:21: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:21: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:22: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:22: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:22: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:23: [SM] Plugin encountered error 8: Not enough space on the stack


Dr. McKay 02-01-2013 14:14

Re: [Any] Hp Regeneration
 
Quote:

Originally Posted by xNos (Post 1884769)
This plugin have erors logs like :
Code:

L 07/27/2007 - 13:45:21: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:21: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:21: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:21: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:21: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:21: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:21: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:21: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:21: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:22: [SM] Plugin encountered error 8: Not enough space on the stack
L 07/27/2007 - 13:45:22: [SM] Debug mode is not enabled for "regeneration.smx"
L 07/27/2007 - 13:45:22: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 14 on
L 07/27/2007 - 13:45:23: [SM] Plugin encountered error 8: Not enough space on the stack


I looked through the source of the other plugin and couldn't find anything. I'm not at home at the moment so I can't test it. Additionally, there are no reported errors in the other plugin's thread.

Enable debug in plugin_settings.cfg and paste the errors you get from the other plugin if you wouldn't mind.


All times are GMT -4. The time now is 18:02.

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