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

[Any] Hp Regeneration


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xNos
SourceMod Donor
Join Date: Dec 2012
Location: Israel
Plugin ID:
3507
Plugin Version:
1.4
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Regeneration the player hp after getting hurt.
    Unapprover:
    Reason for Unapproving:
    Duplicate
    Old 02-01-2013 , 03:37   [Any] Hp Regeneration
    Reply With Quote #1

    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!
    Attached Files
    File Type: sp Get Plugin or Get Source (HpRegeneration.sp - 628 views - 2.5 KB)

    Last edited by Dr. McKay; 02-03-2013 at 18:09. Reason: Feedback given
    xNos is offline
    Send a message via Skype™ to xNos
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 02-01-2013 , 03:50   Re: [Any] Hp Regeneration
    Reply With Quote #2

    what's the difference between it and the already existing ones?

    http://www.sourcemod.net/plugins.php...tion=&search=1
    Mirandor is offline
    xNos
    SourceMod Donor
    Join Date: Dec 2012
    Location: Israel
    Old 02-01-2013 , 03:56   Re: [Any] Hp Regeneration
    Reply With Quote #3

    Special code.
    xNos is offline
    Send a message via Skype™ to xNos
    shadowdragon
    Senior Member
    Join Date: Dec 2012
    Old 02-01-2013 , 05:20   Re: [Any] Hp Regeneration
    Reply With Quote #4

    You should make it so the plugin dumps the cvars
    shadowdragon is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 02-01-2013 , 05:24   Re: [Any] Hp Regeneration
    Reply With Quote #5

    Actually, he made the IsValidClient stock and gave me it.
    Nice plugin anyways.
    Add AutoExecConfig so it'll be easier to control the cvars.
    __________________
    retired
    shavit is offline
    xNos
    SourceMod Donor
    Join Date: Dec 2012
    Location: Israel
    Old 02-01-2013 , 05:46   Re: [Any] Hp Regeneration
    Reply With Quote #6

    Added
    xNos is offline
    Send a message via Skype™ to xNos
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-01-2013 , 07:26   Re: [Any] Hp Regeneration
    Reply With Quote #7

    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;"
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 02-01-2013 , 08:46   Re: [Any] Hp Regeneration
    Reply With Quote #8

    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.
    __________________
    Dr. McKay is offline
    xNos
    SourceMod Donor
    Join Date: Dec 2012
    Location: Israel
    Old 02-01-2013 , 11:40   Re: [Any] Hp Regeneration
    Reply With Quote #9

    Quote:
    Originally Posted by Franc1sco View Post
    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 View Post
    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
    xNos is offline
    Send a message via Skype™ to xNos
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 02-01-2013 , 14:14   Re: [Any] Hp Regeneration
    Reply With Quote #10

    Quote:
    Originally Posted by xNos View Post
    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.
    __________________
    Dr. McKay 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 20:09.


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