sm_bhop_health
1 Attachment(s)
Description:
I needed a plugin for a 24/7 bhop server that I have for maps that do not prevent fall damage from occurring. I could not find a plugin that suited this purpose, so I took Bl4nk's HPRegeneration mod and heavily modified it. So all credit goes to Bl4nk. Credit goes to Antithasys for practically re-writing the plugin to correct some logic flaws and how ConVar hooking was used. Note: I kept the ability for bots to have their health auto set to a certain amount. I'm not sure who would need such functionality but it never hurts to have it in there. Current Version: 1.3.1 Game: With permission from Antithasys, I have set it to game "Any". Please report any problems that occur in other mods. Installation: Drop the plugin into your sourcemod/plugins directory and either restart the server or type sm plugins refresh in console. Update: Drop the plugin into the sourcemod/plugins directory and overwrite the previous installation. Type sm plugins unload sm_bhop_health.smx; sm plugins refresh into console or restart the server. Cvars: sm_bhop_health_version - Current version of the plugin. - 1.1.0 sm_bhop_health_enable - Enables the Bhop Health plugin. - 0 = off - 1 = on (default) sm_bhop_health_hp - Health to set to. - 500 = Set health to 500 (default) - 1000 = Set health to 1000 sm_bhop_health_delay - Time to delay health regening. - 0.0 = Instantly (default) - 0.5 = Half a second after being hurt - 10.0 = Ten seconds after being hurt sm_bhop_health_bots - Enables bots regenerating their life. - 0 = Bots do not get health boost. (default) - 1 = Bots do get health boost. sm_bhop_health_spawn_only - Disables health regening after spawn. - 0 = Regen works like normal. (default) - 1 = Health is only set at spawn, and not when the player is hurt. Future features: None. ChangeLog: 09-15-2010 - 1.3.1 ! Corrected potential bug with timers when a client disconnects. 09-15-2010 - 1.3.0 ! Updated comments throughout the plugin. + Added Cvar to delay when a user gets their health back. + Added Cvar to disable giving health back to the user after spawn. 03-14-2010 - 1.1.0 ! Updated plugin to fix logic and reduce overhead - credit to Antithasys for the changes. 12-03-2009 - 1.0.0 + Initial Release |
Re: sm_bhop_health
Thanks, will put this on my two Bhop servers
|
Re: sm_bhop_health
No problem. Let me know if there are any problems.
|
Re: sm_bhop_health
Great plugin man, thanks.
I've removed HP Regeneration functionality, cause I'm using it to set HP amount only on some maps on my server. That's because there's no option to delay the healing action for specified amount of time, but it's not an issue, as it was meant for BHop servers. I'm using it for FUN server on some maps, so I needed a delay time for HP Regeneration option, but I'm using a different plugin for this. It would be good, if You could add the following option: sm_bhop_health_hp_delay - Sets the amount of time (seconds) to delay HP regeneration. - 0.0 = Instant (default) - 0.5 = Delays HP Regeneration for half second - 10.0 = Delays HP Regeneration for 10 seconds (MAX value) |
Re: sm_bhop_health
I'm supposing that Blank's Original plugin that this one is based off of does not suffice because it regen's in Ticks over a certain period of time up to the maximum health, instead of instantly after a certain amount of time?
I'll see what I can do. EDIT: I've attached an edited version. I'm unsure if it actually works since I don't have time to test it. Just a note on the behavior. Currently if someone is damaged, the timer will start counting down till they are healed or die. The timer currently does not reset when the player takes damage again. So in other words, if the plugin is set to heal bob 10 seconds after he takes damage, and bob takes more damage 5 seconds after he originally took damage, the countdown does not reset. If you would like it to reset, I can add in a cvar for it. |
Re: sm_bhop_health
Wow, what a fast response. Big thanks for Your job, I'll test it, as soon, as possible.
BTW: I think there's no need to reset the timer. EDIT: I forgot about one thing. A CVar, that will disable HP regening, but will leave setting up HP amount enabled. On some maps I just don't want HP to regenerate, but I need to set HP to a specified amount. I know it's against Your primary idea for this plugin, but it would be good, if You'd like to do it. |
Re: sm_bhop_health
Quote:
As for the reset timer, It was one thing I figured someone might want. I'll worry about it though when someone actually needs it though. No need to put in code no one is going to use. Quote:
So the plugin has been updated in the original topic. I haven't tested it but it should work. Let me know if there are any bugs. |
Re: sm_bhop_health
Nice job man.
But Quote:
And another thing I've forgot to make sm_bhop_health_delay more usefull is: sm_bhop_health_amount or something to set, how much HP will be added to a player per sm_bhop_health_delay time. I.E.: If sm_bhop_health_delay = 1.0 and sm_bhop_health_amount = 100, and if sm_bhop_health_hp = 300, then if player gets damage once from 300 HP to i.e. 12 HP, the plugin will give him 100 HP per 1 second until it reaches sm_bhop_health_hp. |
Re: sm_bhop_health
Quote:
Quote:
Also, I re-uploaded the plugin with a change after perusing Bl4nk's patch notes and noticed a potential bug. |
Re: sm_bhop_health
Actually I'm using both, cause Bl4nk's HP Regeneration plugin is unable to set HP at spawn, it changes it after damage only, which not suites my needs in 100%.
I'll try to post about it in his topic, thanks for everything ;]. |
All times are GMT -4. The time now is 01:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.