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

[L4D/L4D2] Self-Help (Reloaded) | 0.3 : October 11, 2019 |


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Plugin ID:
5141
Plugin Version:
0.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Pretty much self-explanatory.
    Old 04-15-2016 , 21:56   [L4D/L4D2] Self-Help (Reloaded) | 0.3 : October 11, 2019 |
    Reply With Quote #1

    Description:

    Tired of not being able to do anything while capped by special infected or incapacitated? Want to be useful other than just shoot until you die or someone helps you? Look no further.

    This plugin allows downed players to help themselves using their health items or other downed teammates if they don't have any. Mostly recommended for situations where the team still has a hope of continuing or when survivors want to get free from their attacker.

    ConVars:
    PHP Code:
    // Version of this plugin.
    self_help_version "0.3"

    // Enable/Disable plugin?
    self_help_enable "1"

    // Items in a helpless survivor's inventory to be consumed later for achieving self-helping:
    // 
    // 1 = Pills/Adrenalines
    // 2 = First aid kits
    // 3 = Both (has a smart feature included)
    // 
    self_help_use "3"

    // Let incapacitated survivors be able to pickup nearby items needed for self-helping?
    self_help_incap_pickup "1"

    // How long before troubled survivors are able to start self-helping?
    self_help_delay "1.0"

    // Does the plugin kill a self-helping survivor's attacker after they're done? (If there are any.)
    // Note: Setting this cvar to "0" will result in the attacker stumbling instead.
    // 
    self_help_kill_attacker "1"

    // Enable/Disable plugin functionality for bots?
    self_help_bot "1"

    // Chance given for bots to self-help themselves:
    // 
    // 1 = Sometimes
    // 2 = Often
    // 3 = Seldom
    // 
    self_help_bot_chance "1"

    // Amount of permanent health rewarded upon completion of self-help.
    // Note: This cvar is ignored on purpose when medkits are used.
    // 
    self_help_hard_hp "50"

    // Amount of permanent health rewarded upon completion of self-help.
    // Note: This cvar is ignored on purpose when medkits are used.
    // 
    self_help_temp_hp "50.0"

    // Maximum number of times a survivor can self-help before going into black and white state.
    // Note: This is created for L4D1 only and will serve as a substitute for the "survivor_max_incapacitated_count" cvar.
    // 
    self_help_max_count "3" 
    Commands:
    None.

    To Do:
    > Provide an indication (i.e animation) for survivors who are currently helping themselves.
    > Nullify all attempts to revive a survivor everytime they crawl or try to help themselves to go well
    with the one above.

    Credits:
    Changelog:
    Code:
    10-11-2019 (Version 0.3):
    + Changed the pass flag of OnStaggered's SDKType_Vector parameter from SDKPass_ByRef to SDKPass_Pointer as Dragokas suggested.
    + Reposted gamedata file due to a little oversight.
    
    10-10-2019 (Version 0.29):
    + *L4D2 only* Plugin now listens to defibrillator related events as well.
    + *L4D2 only* Adrenaline effects will take place immediately right after helping self.
    + (Hopefully) Blocked incapacitated and hanging ambient sounds after helping self.
    + New colored chat and better worded hint box notifications. :3
    + Most of the bugs introduced in its predecessor have been fixed.
    
    02-23-2019 (Version 0.15):
    X First release.
    + Infected will no longer hear ambient sounds coming from incapacitated and/or hanging survivors.
    + Time before self-helping is complete now follows whatever value the "survivor_revive_duration" cvar is set to with a 0.1 second delay.
    Attached Files
    File Type: inc colors.inc (24.5 KB, 1146 views)
    File Type: txt self_help.txt (1.7 KB, 1559 views)
    File Type: sp Get Plugin or Get Source (self_help.sp - 1137 views - 45.7 KB)
    File Type: smx self_help.smx (26.3 KB, 1454 views)

    Last edited by cravenge; 10-11-2019 at 00:51.
    cravenge is offline
     



    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