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.