Raised This Month: $154 Target: $400
 38% 

[L4D & L4D2] Emergency Treatment With First Aid Kit And CPR


Post New Thread Reply   
 
Thread Tools Display Modes
Author
panxiaohai
Senior Member
Join Date: Mar 2010
Plugin ID:
1658
Plugin Version:
1.0.0
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    38 
    Plugin Description:
    Revive with first aid kit and CPR
    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:	2840
Size:	72.7 KB
ID:	65917   Click image for larger version

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

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

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

    Last edited by KyleS; 10-04-2012 at 21:42. Reason: Version Convar + Description
    panxiaohai is offline
    marvel
    BANNED
    Join Date: Dec 2009
    Old 05-13-2010 , 09:36   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #2

    Sounds cool, like a defib for l4d1

    Any more info would be nice though, do you need to press and hold E for 10 seconds? or is it 1 press and then wait 10?

    And how do the players know this feature is available?

    thx.
    marvel is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 05-13-2010 , 11:15   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #3

    Quote:
    Originally Posted by marvel View Post
    Sounds cool, like a defib for l4d1

    Any more info would be nice though, do you need to press and hold E for 10 seconds? or is it 1 press and then wait 10?

    And how do the players know this feature is available?

    thx.
    Message shows in chat Every 60 seconds (control by convar).
    when close to the dead survivor 's ghost ( red flash light) , press duck and E, it will show a progress bar, and interrupt when key released.
    panxiaohai is offline
    Herokim
    Senior Member
    Join Date: Mar 2010
    Location: In Fag-o-land
    Old 05-16-2010 , 09:58   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #4

    Would you like to create translation file? Or somehow manage to DELETE dead survivor body after "ressurecting"?
    Herokim is offline
    panxiaohai
    Senior Member
    Join Date: Mar 2010
    Old 05-16-2010 , 13:51   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #5

    Quote:
    Originally Posted by Herokim View Post
    Would you like to create translation file? Or somehow manage to DELETE dead survivor body after "ressurecting"?
    Your suggestion is good , but I am not familiar with translation file now, and it is very nice if there is a way to remove dead survivor body, can anyone help me?
    panxiaohai is offline
    fenghf
    Member
    Join Date: Apr 2010
    Old 05-17-2010 , 22:49   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #6

    At compile time, there are many problems. And in the original document in Chinese.
    fenghf is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 05-18-2010 , 03:08   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #7

    in order to get approved, you need to add a game check code
    alexip121093 is offline
    Send a message via MSN to alexip121093
    XAFAfterShock
    Member
    Join Date: Feb 2009
    Old 05-18-2010 , 05:35   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #8

    fun plugin, I've been using it for a week but I changed the revive instructions to make more sense in english but even with the compile errors it works perfect and has no negative impact on any of the other plugins I'm running.
    XAFAfterShock is offline
    fenghf
    Member
    Join Date: Apr 2010
    Old 05-18-2010 , 10:30   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #9

    Did not conflict with other plug-ins. Very good.Continue to work.
    fenghf is offline
    homerliew
    Member
    Join Date: Apr 2009
    Old 05-18-2010 , 23:46   Re: [L4D] Revive With First Aid Kit
    Reply With Quote #10

    Quote:
    Originally Posted by XAFAfterShock View Post
    fun plugin, I've been using it for a week but I changed the revive instructions to make more sense in english but even with the compile errors it works perfect and has no negative impact on any of the other plugins I'm running.
    How did you change the instructions? Because everytime I try to compile the file. It gives me error and it doesn't get compiled.
    homerliew is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:36.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode