Page 1 of 1

[REQ DOD:S] HP Regeneration manager.

Posted: Fri Jan 29, 2016 4:09 am
by 1400gsx
Regenerates the player's HP , depending on the class of the player : Rifleman, Assault, Support, Sniper, Machine gunner, Rocket.

Image Image Image Image Image Image

Each class has its own settings:
- Maximum use.
- Maximum HP.
- Regeneration interval HP \ sec.
- Number of HP \ sec.

Comment:
Installed on the server [DOD:S] Medic Mod v1.0.109
The problem is, not all players (50%) use chat commands say !medic, for many reasons.
HP Regeneration can help all players.
Thank you.

[DODS] Ideas and Requests

Re: [REQ DOD:S] HP Regeneration manager.

Posted: Sun Jan 31, 2016 8:12 am
by vintage
Hi !

There is already this one on AlliedModders
https://forums.alliedmods.net/showthread.php?p=500636
Seems to be ok...

Perhaps to be modified to suit your need

Have a nice day ! :)

Re: [REQ DOD:S] HP Regeneration manager.

Posted: Sun Jan 31, 2016 12:53 pm
by 1400gsx
Hi, I tested HP regeneration, plugin helps anyone, good.
The problem with campers is mg and sniper.
No variables (cvars) hpregen_maxuse

Thanks for the reply :)

Re: [REQ DOD:S] HP Regeneration manager.

Posted: Tue Feb 02, 2016 10:49 pm
by Ben
here the cvar:

hpregen_maxuse - number of regenerations per spawn! (default: 10)

Re: [REQ DOD:S] HP Regeneration manager.

Posted: Wed Feb 03, 2016 4:16 am
by 1400gsx
BEN!
Is a great option for all players ! ,)
Going to test it.

Re: [REQ DOD:S] HP Regeneration manager.

Posted: Wed Feb 03, 2016 6:57 pm
by 1400gsx
All is well for the players. Thank you BEN.
The plugin works for a few hours.
Fix ? spam errors to the log:

L 02/03/2016 - 11:04:26: SourceMod error session started
L 02/03/2016 - 11:04:26: Info (map "dod_icecaverns") (file "errors_20160203.log")
L 02/03/2016 - 11:04:26: [SM] Native "GetClientHealth" reported: Client 1 is not in game
L 02/03/2016 - 11:04:26: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:26: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:26: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:26: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:26: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:27: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:27: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:27: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:27: [SM] Native "GetClientHealth" reported: Client 1 is not in game
L 02/03/2016 - 11:04:27: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:27: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:28: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:28: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:28: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:29: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:29: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:29: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:30: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:30: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:30: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:31: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:31: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:31: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:32: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:32: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:32: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:33: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:33: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:33: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:34: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:34: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:34: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:35: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:35: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:35: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:36: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:36: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:36: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:37: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:37: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:37: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:38: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:38: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:38: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:39: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:39: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:39: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:40: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:40: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:40: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:41: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:41: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:41: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:42: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:42: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:42: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:43: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:43: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:43: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:04:44: [SM] Native "GetClientHealth" reported: Client 2 is not in game
L 02/03/2016 - 11:04:44: [SM] Displaying call stack trace for plugin "custom/regeneration.smx":
L 02/03/2016 - 11:04:44: [SM] [0] Line 59, D:\Server\dod\addons\sourcemod\scripting\regeneration.sp::Regenerate()
L 02/03/2016 - 11:24:39: Error log file session closed.

Re: [REQ DOD:S] HP Regeneration manager.

Posted: Wed Feb 03, 2016 7:29 pm
by Ben
here you go. anything else you want to add/fix?

Re: [REQ DOD:S] HP Regeneration manager.

Posted: Wed Feb 03, 2016 8:21 pm
by 1400gsx
Thank you Ben, good job.
I think it was a good little plugin for all players.
- "No need to add the cvar".
Well, thank you ,)))