Raised This Month: $32 Target: $400
 8% 

[L4D, L4D2] Self Revive


Post New Thread Reply   
 
Thread Tools Display Modes
Author
chinagreenelvis
Senior Member
Join Date: Dec 2009
Plugin ID:
2071
Plugin Version:
1.4.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Survivors can revive themselves from incapacitation, ledge grabs, and special infected attacks
    Old 11-13-2010 , 23:58   [L4D, L4D2] Self Revive
    Reply With Quote #1

    Update: This plugin will no longer be supported. It has been completely overhauled and re-written. You can find the new version here.

    Based on the Self Help plugin, this version allows self reviving without the cost of medical supplies and restores the animations for incapacitation and ledge grab revives. Special infected grabs can be escaped with the option of not killing the attackers. Bot survivors will automatically attempt to help themselves.

    Installation
    Place .smx files in the sourcemod/plugins directory, .txt files into the sourcemod/gamedata folder. Original documents with the .sp extension can be edited in notepad++ and stored in sourcemod/scripting for compiling.

    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"

    Recommended additional plugins
    Attached Files
    File Type: txt l4d_2_selfrevive.txt (465 Bytes, 6051 views)
    File Type: sp Get Plugin or Get Source (l4d_2_selfrevive.sp - 9524 views - 28.8 KB)

    Last edited by chinagreenelvis; 10-25-2011 at 05:01.
    chinagreenelvis is offline
    le0n_
    Junior Member
    Join Date: Mar 2010
    Old 11-14-2010 , 04:44   Re: [L4D, L4D2] Self Revive
    Reply With Quote #2

    sry for my stupid question , but where i must put the cvars ?
    in server.cfg ?
    le0n_ is offline
    nagypocak
    Member
    Join Date: Jul 2010
    Old 11-14-2010 , 06:06   Re: [L4D, L4D2] Self Revive
    Reply With Quote #3

    no, the plugin will automaticly create a configuration file named l4d_2_selfrevive.cfg - in the games cfg/sourcemod folder - after the first run, with the default settings as seen above. you can afterwords make changes into this file, or in-game using the appropriate cvar command.

    Last edited by nagypocak; 11-14-2010 at 06:08.
    nagypocak is offline
    Herokim
    Senior Member
    Join Date: Mar 2010
    Location: In Fag-o-land
    Old 11-14-2010 , 06:57   Re: [L4D, L4D2] Self Revive
    Reply With Quote #4

    Strange, when I get caught by infected in Co-Op and I want to break free, I see no progress bar. I hold the key very long but nothing. This is my CFG -

    Code:
    // This file was auto-generated by SourceMod (v1.3.4)
    // ConVars for plugin "l4d_2_selfhelp_free.smx"
    
    
    // Self revive delay
    // -
    // Default: "0.0"
    l4d_2_selfrevive_delay "0.0"
    
    // Self revive delay for incapacitation
    // -
    // Default: "0.0"
    l4d_2_selfrevive_delay_incap "0.0"
    
    // Self revive delay
    // -
    // Default: "0.0"
    l4d_2_selfrevive_delay_ledge "0.0"
    
    // Self revive selfreviveDuration[victim]
    // -
    // Default: "3.0"
    l4d_2_selfrevive_duration "3.0"
    
    // Self revive duration for incapacitation, setting higher than 5 will disable animation
    // -
    // Default: "5.0"
    l4d_2_selfrevive_duration_incap "5.0"
    
    // Self revive duration for ledge grab, setting higher than 5 will disable animation
    // -
    // Default: "4.5"
    l4d_2_selfrevive_duration_ledge "5.0"
    
    // Self revive for smoker grab, 0:Disable, 1:Enable
    // -
    // Default: "1"
    l4d_2_selfrevive_grab "1"
    
    // How much health you have after reviving yourself from incapacitation.
    // -
    // Default: "40.0"
    l4d_2_selfrevive_health_incap "40.0"
    
    // How much health you have after reviving yourself from a ledge grab.
    // -
    // Default: "40.0"
    l4d_2_selfrevive_health_ledge "40.0"
    
    // Self revive hint delay
    // -
    // Default: "4.0"
    l4d_2_selfrevive_hint_delay "4.0"
    
    // Self revive for incapacitation, 0:Disable, 1:Enable
    // -
    // Default: "1"
    l4d_2_selfrevive_incap "1"
    
    // 0: Break free from smokers, hunters, and jockeys, use your personal lighter to set fire to chargers; 1: Knife-kill all attackers
    // -
    // Default: "0"
    l4d_2_selfrevive_kill "1"
    
    // Self revive for ledge grabs, 0:Disable, 1:Enable
    // -
    // Default: "1"
    l4d_2_selfrevive_ledge "1"
    
    // Self revive for hunter pounce, 0:Disable, 1:Enable
    // -
    // Default: "1"
    l4d_2_selfrevive_pounce "1"
    
    // Self revive for charger pummel , 0:Disable, 1:Enable
    // -
    // Default: "1"
    l4d_2_selfrevive_pummel "1"
    
    //  Self revive for jockey ride, 0:Disable, 1:Enable
    // -
    // Default: "1"
    l4d_2_selfrevive_ride "1"
    
    // 0: Disable in versus, 1: Enable in versus
    // -
    // Default: "0"
    l4d_2_selfrevive_versus "1"
    What is the problem? Also no errors in the logs.

    Last edited by Herokim; 11-14-2010 at 07:44.
    Herokim is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 11-14-2010 , 10:01   Re: [L4D, L4D2] Self Revive
    Reply With Quote #5

    Maybe there are issues with the key or button that you've assigned to duck. The default is ctrl. Try that and see if it works. Maybe I can add a cvar to customize the button.
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 11-14-2010 , 10:04   Re: [L4D, L4D2] Self Revive
    Reply With Quote #6

    Wait, you can self help from incap but not special infected? What happens when you're grabbed by a special and they drain your life until you're incapped? Does it start to work then?
    chinagreenelvis is offline
    Herokim
    Senior Member
    Join Date: Mar 2010
    Location: In Fag-o-land
    Old 11-14-2010 , 11:04   Re: [L4D, L4D2] Self Revive
    Reply With Quote #7

    Quote:
    Originally Posted by chinagreenelvis View Post
    Wait, you can self help from incap but not special infected? What happens when you're grabbed by a special and they drain your life until you're incapped? Does it start to work then?
    Yes. I can only self-help from ledge or incap, but not Infected.
    Herokim is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 11-14-2010 , 12:04   Re: [L4D, L4D2] Self Revive
    Reply With Quote #8

    I was just playing on my server and I ran into an issue where after dying and being rescued, I could no longer save myself from an S.I., but it was shortly remedied after having been incapped and revived a couple of times. I went in and checked the code to add a few minor fixes and added some events for player deaths, rescues, client connects and disconnects.

    Try it again with the new version. I recommend starting up a local server, enabling cheats, setting sb_hold_position to 1, and then spawning a smoker to grab you in another room.

    If you're still having problems, go into the sourcecode and uncomment "//" all of the lines reading PrintToChatAll and see where it stops.
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 11-14-2010 , 18:54   Re: [L4D, L4D2] Self Revive
    Reply With Quote #9

    Hm. There does seem to be a problem actually.
    chinagreenelvis is offline
    chinagreenelvis
    Senior Member
    Join Date: Dec 2009
    Old 11-14-2010 , 20:27   Re: [L4D, L4D2] Self Revive
    Reply With Quote #10

    Okay, I think I got it working! Give her a whirl.
    chinagreenelvis 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 17:19.


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