HpRegeneration
10 Attachment(s)
HpRegeneration
When a player gets hurt, they regenerate 'x' amount of life every 'y' seconds until they reach 'z' health. Commands: sm_hpregeneration_enable <0/1> - Enables the HpRegeneration plugin. sm_hpregeneration_amount <amount> - Amount of life to heal per regeneration tick. sm_hpregeneration_health <amount> - Health to regenerate to, based on the control mode. sm_hpregeneration_tickrate <time> - Time, in seconds, between each regeneration tick. sm_hpregeneration_respawn <0/1> - Enables healing through respawns. sm_hpregeneration_bots <0/1> - Enables bots regenerating their life. sm_hpregeneration_mode <1/2> - Controls the regeneration mode (see the "control modes" section for more info). Note: Take a look at the commented section in the plugin's source for examples on how the CVars are to be used. Installation:
Note: This section describes the purpose and uses of the sm_hpregeneration_mode cvar. The mode cvar is pretty simple, but can be confusing unless you know what it does. The cvar has two modes; 1 and 2.
Player A spawns with 200 life (soldier in TF2) and the health cvar is set to 350. Player A takes damage, and begins to regenerate life. Player A regenerates life up up 550 and then stops. As you can see, this mode differs from mode #1, but not by much. I mainly added this for multi-class use in TF2. If you are unsure on which mode to use, here's some simple directions: If you're using this plugin for TF2, use mode #2. If you're using it for any other mod, use mode #1. Note: If the mod is TF2 and you use an amount above the player's default max life, their max life will then change to accomodate what they're regenerating to. So instead of draining back down to their default max life, they will retain the new max until they die or take damage again. Changelog:
|
Re: HpRegeneration
All I have to say Is WOW !!!! You did that fast ... OMG you ROCK and even more after I test it ... in a few but I have some players online so i have to wait a few but im hoping it will do the job also I like to set it to 200... is that tough to change if so no worries.. be happy to have 150 if I get no crap in the console.. :)
|
Re: HpRegeneration
Hi and ya know what no more console spam ... there is a small problem thought .. it works fine untill your killed then when you respawn no more count up ??? maybe this is good for CSS or DOD but for DM we want it to keep working till end of map and thats 30min... unless extended.
other then that nice work and I can see my console again whoohoo :) |
Re: HpRegeneration
Hmm, I thought you would want exactly the opposite. I can add in another cvar to control whether or not healing goes through deaths or not.
[edit] Updated to Version 1.0.1 |
Re: HpRegeneration
Updated to Version 1.0.2
Yaay for bug fixes and stuff. Hopefully this is the last of the problems. [edit] Updated to Version 1.0.3 Looks like I forgot one. :> |
Re: HpRegeneration
bl4nk you are da-man OMG it works awesome , and no more spam, spam, spam, spam ........... lol dammm Im speachless no ever did anything this fast for me or for anyone elts in such a short period of time.. yes Im sure to you it was an easy scripts to write I can just imagine what your capeable of... damm your good ~~~~> oh and whats in 1.0.3 since 2 seem to work like a charm ???
|
Re: HpRegeneration
1.0.3 was just a big fix version. I just implemented a bunch of checks to make sure that things wouldn't be hooked or unhooked when they shouldn't be. It was quite confusing, so it's possible I messed something up. I JUST uploaded a second version of 1.0.3 so download it again to make sure you have the newest (I didn't expect someone to download it in the 3 minutes I was editing it).
|
Re: HpRegeneration
Oh not sure what you ment by :
"I thought you would want exactly the opposite" This is my theory of operation.... my Bots are murderous and unforgiving ... if you can stay alive you derserve to be givin a gift of health up too 200 for just surviving... This is for many maps that dont supply enough health packs or machines. and new players have a chance with my fake clients because those bots just stand as targets so they feel they killed someting and they stay longer .... sort of an equal oppertunity fun server with alot of bells anf whistles. also 200 health reduces the advanced players from a one shot kill to 2 or 3 to take someone out . a fair balance. ~~~~~~~~~~~~~~~~> |
Re: HpRegeneration
What I meant by that was that if you weren't running a Deathmatch server, you would want exactly the opposite. The way I originally had it was so that when you would respawn, you wouldn't regenerate life. I had it do this so that you wouldn't continually regenerate because you hadn't taken damage yet on that life. Once you took damage though, you would start healing once again. It just seems weird to spawn and all of a sudden have your life start to go up when nothing has happened to you since the previous round. Since you're running a Deathmatch server, I can understand why you would want what you have.
|
Re: HpRegeneration
:)
No the way it is right now is you respawn at 100 and it doesnt tick till the 1st hit ... say the 1st hit sent you back to 20HP well now if you can stay alive a while it starts healing you up to 200... thats what you did and thats what I wanted and I bet since you but in the option to turn that on and off feature all will love it and I can now also use this in out DOD server..... whoohoo !!!!! and it just shows that people can author scripts that not only work but work silently without console noise, sort of like creating music .. the less noise the sweeter it sounds :)) ~~~~~~~~~~~~~~~~~~~~~> |
All times are GMT -4. The time now is 05:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.