View Single Post
Author Message
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 12-10-2009 , 05:27   [L4D2] Black and White on Defib v1.0
Reply With Quote #1

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.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_BWDefib.sp - 5105 views - 2.6 KB)

Last edited by Crimson_Fox; 03-19-2010 at 18:48.
Crimson_Fox is offline