View Single Post
Author Message
panxiaohai
Senior Member
Join Date: Mar 2010
Old 05-13-2010 , 03:31   [L4D & L4D2] Emergency Treatment With First Aid Kit And CPR
Reply With Quote #1

When some one die, therer are two ways to bring him back to life in this plugin.
1. Using First Aid Kit:
----Going close to blinking light, select medkit and press Crouch+Use for several seconds befor
blinking light disappear, after revive, the medkit will disappear.
2.
Using CPR:
----Going close to blinking light, press Crouch+Use for several seconds as quick as possible, the dead one will be revived and go to black and white. If it is too late, this mothed will fail.
This plugin support l4d2 realism mode now, fix problem about after dead player disconnect, the bot can be revived.


Thanks:
AtomicStryker & Ivailosp and l4d_sm_respawn.

OtterNas3 for Code cleanup and improvement.

ConVars:
"l4d_revive_health", "50", "Revive health"
"l4d_revive_duration", "10", "How long does revive take?"
"l4d_revive_maxtime", "300", "Dead bodys can be revived up with medkit within x seconds, 0:disable revive"
"l4d_CPR_maxtime", "10", "Dead bodys can be CPR within x seconds, 0:disable CPR"
"l4d_CPR_duration", "6", "How long does CPR take"

Copy l4drevive.txt to gamedata folder and smx file to plugins folder
Attached Thumbnails
Click image for larger version

Name:	l4d_smalltown01_caves0005.jpg
Views:	4871
Size:	72.7 KB
ID:	65917   Click image for larger version

Name:	l4d_smalltown01_caves0006.jpg
Views:	4502
Size:	78.7 KB
ID:	65918   Click image for larger version

Name:	l4d_smalltown01_caves0007.jpg
Views:	4823
Size:	66.7 KB
ID:	65919   Click image for larger version

Name:	l4d_smalltown01_caves0008.jpg
Views:	4355
Size:	71.2 KB
ID:	65920  
Attached Files
File Type: txt l4drevive.txt (2.1 KB, 3646 views)
File Type: sp Get Plugin or Get Source (l4d_revive&cpr_en.sp - 5889 views - 14.0 KB)

Last edited by KyleS; 10-04-2012 at 21:42. Reason: Version Convar + Description
panxiaohai is offline