[L4D2] Black and White on Defib v1.0
2 Attachment(s)
While defibrillators are a nice addition to L4D2, I feel they are overpowered. This is really apparent in a versus match because not only will it revive a dead player, but they can be incaped 2 more times before they will die again. Because of this you get situations where a team mate that is out of incaps will be intentionally killed so they can revived with full incaps.
This plugin looks to correct this by allowing an admin to set a defibed player's remaining incaps as well as how much health they receive when revived. Cvars: l4d2_bwdefib - Disables the plugin if set to 0. l4d2_bwdefib_incaps - Number of remaining incaps with which a defibed survivor is brought back. Default 0 l4d2_bwdefib_health - Amount of health with which a defibed survivor is brought back. Default 1. l4d2_bwdefib_temphealth - Amount of temporary health with which a defibed survivor is brought back. Default 30. Changelog: 1.0 -Added cvar to specify how many incaps remaining a player has when defibed. -Added config file. -Renamed cvars to match naming convention. -Plug-in now checks for l4d2 when loading. 0.3.1 -Minor code tweak. 0.3 -Added temp health cvar. -Changed default health to match revive health (30 temp health). Thanks to TheDanner for the help on setting temp health. 0.2 -Added health cvar. 0.1 -Initial release. To Do: Still need to find a way to turn on the heartbeat sound. |
Re: [L4D2] Black and White on Defib
I have to be honest, people will complain. But, you mr.fox think exactly like i do. I feel that it doesn't make sense to be killed and revived the way the game does it. You don't go from dead to oh hey im almost a fully chipper person after dying! very nice plugin. this will go on my server. :)
Cheers. *EDIT* how much HP do they come back with? i know they're black and white but does it give them temp health? or regular health that doesn't dissolve starting at 50 but once they go down they die? |
Re: [L4D2] Black and White on Defib
Quote:
I didn't change how much health they come back with since I figured there was a cvar for that. Can't seem to find it so I added one that lets you specify it. |
Re: [L4D2] Black and White on Defib
I'll defiantly be adding this to mine as well. Thanks! :D
|
Re: [L4D2] Black and White on Defib
Quote:
|
Re: [L4D2] Black and White on Defib
Quote:
|
Re: [L4D2] Black and White on Defib
Haha, awesome now I feel like I contributed instead of feeling a bit like a git. haha
cheers. |
Re: [L4D2] Black and White on Defib
good job!
|
Re: [L4D2] Black and White on Defib
A while back I wrote a small plugin to tell me everyone's HP. This post had the formula; changing it around a bit comes up with:
(I noticed that a lot of this was unnecessary, particularly because I completely missed that I was doing hp + (time / decay) - (time / decay). Time and decay aren't needed when setting that value.) PHP Code:
PHP Code:
|
Re: [L4D2] Black and White on Defib
Quote:
|
All times are GMT -4. The time now is 10:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.