Raised This Month: $51 Target: $400
 12% 

[L4D] Emergency Treatment With First Aid Kit And CPR (Fork)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
7941
Plugin Version:
1.0.12
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Revive with first aid kit and CPR
    Old 01-29-2022 , 17:31   [L4D] Emergency Treatment With First Aid Kit And CPR (Fork)
    Reply With Quote #1

    Authors: panxiaohai & AtomicStryker & Ivailosp & OtterNas3 (Fork by Dragokas)

    Notice:
    This is a fork of original work from panxiaohai. Published by request.
    My previous public version was 1.0.5. See the changelog for news.
    Description:
    When some one die, there 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.
    Settings (ConVars):
    Can be found in cfg/sourcemod/l4d_revive&cpr.cfg
    PHP Code:
    // Enable ability to revive a dead player? (0 - No, 1 - Yes)
    l4d_revive_enable "1"

    // How long does revive with medkit take?
    l4d_revive_duration "10"

    // Revive with medkit health
    l4d_revive_health "50"

    // Dead bodys can be revived with medkit up to x seconds, 0:disable revive
    l4d_revive_maxtime "300"

    // Enable ability to CPR a dead player? (0 - No, 1 - Yes)
    l4d_CPR_enable "1"

    // Dead bodys can be CPR within x seconds, 0:disable artificial respiration
    l4d_CPR_maxtime "15"

    // How long does CPR take
    l4d_CPR_duration "6"

    // Incaps count set after somebody CPR you (set -1 to use default game black/white incap count)
    l4d_CPR_incap_count "-1"

    // Y Offset from the floor of spawned particle light effect
    l4d_CPR_floor_offset "0" 
    Particle Light types:
    There 3 types, which can be selected by checging value of "LIGHT_TYPE" in file l4d_revivecpr.sp and recompilation:
    PHP Code:
    // (default) - to use little red light
    #define LIGHT_TYPE 1

    // (default) - to use little green light
    #define LIGHT_TYPE 2

    // (default) - to use bright red light (attention: performance issues are noticed when I used this particle!)
    #define LIGHT_TYPE 3 
    Commands:
    Nothing.

    Natives & Forwards: (for developers)
    Spoiler


    Compatibility:
    - L4D1
    - L4D2

    ChangeLog:
    Spoiler


    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon (Paypal)
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: zip CPR.zip (26.9 KB, 564 views)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 07-06-2022 at 16:52.
    Dragokas is offline
    Voevoda
    Senior Member
    Join Date: Aug 2016
    Old 01-29-2022 , 17:41   Re: [L4D] Emergency Treatment With First Aid Kit And CPR (Fork)
    Reply With Quote #2

    спасибо большое
    Voevoda is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 07-06-2022 , 16:52   Re: [L4D] Emergency Treatment With First Aid Kit And CPR (Fork)
    Reply With Quote #3

    Updated.

    Quote:
    1.0.12 (06-Jul-2022) Dragokas
    - Fixed plugin incorrectly follow ConVars "l4d_revive_enable", "l4d_CPR_enable".
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    z282846139
    Member
    Join Date: Aug 2018
    Old 12-31-2022 , 05:56   Re: [L4D] Emergency Treatment With First Aid Kit And CPR (Fork)
    Reply With Quote #4

    Update Simplified Chinese and Traditional Chinese support。
    Modify Simplified Chinese and Traditional Chinese texts, the origin english and the other versions texts are not accurate.
    更新了简体中文和繁体中文支持。
    修改了简体中文和繁体中文描述,默认文本不准确。
    Attached Thumbnails
    Click image for larger version

Name:	cpr.jpg
Views:	168
Size:	68.9 KB
ID:	198737   Click image for larger version

Name:	cpr1.jpg
Views:	140
Size:	77.7 KB
ID:	198738  
    Attached Files
    File Type: txt revive_cpr.phrases.txt (2.8 KB, 98 views)

    Last edited by z282846139; 12-31-2022 at 09:26.
    z282846139 is offline
    Reply



    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 18:25.


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