This plugin is simply
chinagreenelvis' old self revive plugin but I cannibalized and used the code from his newer
autohelp plugin to make self revive respect
survivor_max_incapacitated_count and use the normal formula for calculating total health after a ledge self revive.
ALL CREDIT TO PANXIAOHAI FOR ORIGINAL CONCEPT AND CHINAGREENELVIS FOR THE CODE
I merely took and rewrote a few lines of code from autohelp into the original selfhelp and I barely know what I'm doing.
Installation
Place .smx files in the sourcemod/plugins directory, .txt files into the sourcemod/gamedata folder.
CVARS
l4d_2_selfrevive_hint_delay "4.0", "Self revive hint delay"
l4d_2_selfrevive_delay "0.0", "Self revive delay"
l4d_2_selfrevive_delay_ledge "0.0", "Self revive delay"
l4d_2_selfrevive_delay_incap "0.0", "Self revive delay for incapacitation"
l4d_2_selfrevive_duration "3.0", "Self revive selfreviveDuration[victim]"
l4d_2_selfrevive_duration_ledge "4.5", "Self revive duration for ledge grab, setting higher than 5 will disable animation"
l4d_2_selfrevive_duration_incap "5.0", "Self revive duration for incapacitation, setting higher than 5 will disable animation"
l4d_2_selfrevive_health_ledge "40.0", "How much health you have after reviving yourself from a ledge grab."
l4d_2_selfrevive_health_incap "40.0", "How much health you have after reviving yourself from incapacitation."
l4d_2_selfrevive_ledge "1", "Self revive for ledge grabs, 0:Disable, 1:Enable"
l4d_2_selfrevive_incap "1", "Self revive for incapacitation, 0:Disable, 1:Enable"
l4d_2_selfrevive_grab "1", "Self revive for smoker grab, 0:Disable, 1:Enable"
l4d_2_selfrevive_pounce "1", "Self revive for hunter pounce, 0:Disable, 1:Enable"
l4d_2_selfrevive_ride "1", " Self revive for jockey ride, 0:Disable, 1:Enable"
l4d_2_selfrevive_pummel "1", "Self revive for charger pummel , 0:Disable, 1:Enable"
l4d_2_selfrevive_kill "0", "0: Do not kill special infected when breaking free; 1: Kill special infected when breaking free"
l4d_2_selfrevive_versus "0", "0: Disable in versus, 1: Enable in versus"
Known Bugs- Ledge Revive Health - upon first use of the plugin self reviving from a ledge gave me 1hp on revive, every time after it has used the proper equation.
- Pinned Incap Bug - turning off self revive for pins still allows for self helping once you become down, reviving with 1hp but the game still considering you incaped. (i.e. playing incap music and can't pull out non weapon items.) fixed on next down but still annoying
UPDATES