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

[L4D/L4D2] Self Help Items (nov 12 2022)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
reab
New Member
Join Date: Nov 2022
Plugin ID:
8283
Plugin Version:
1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    let survivors revive themselves using any health items they have (or no items)
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 11-12-2022 , 02:22   [L4D/L4D2] Self Help Items (nov 12 2022)
    Reply With Quote #1

    description
    this plugin is a modification to the Self Revive plugin, which was based off of the Self Help plugin. i also used parts of the Auto Help plugin
    it brings back using items - survivors will use medkit, pills, adrenaline, or nothing to revive. these will give their respective health values of 80 permanent health, 50 temporary health, and 25 temporary health. (health restored by medkit is affected by first_aid_heal_percent)
    by default, you can still stand up without any items, but you will only have 10 temporary health afterwards. (can be disabled entirely with selfrevive_noitem) (health amount can be changed with selfrevive_noitem_health)
    you cannot choose what item (or lack of item) you stand up with - by default you will use temporary healing items first, then medkits, then nothing. you can make medkits be used before temporary healing items by changing selfrevive_itempriority
    medkits will reset the incapacitation count properly when used to get up (actually gets reset to 1 because of the incapacitation that it is being used to recover from)
    you can disable items from being used for revival by changing selfrevive_adrenaline, selfrevive_medkit, and selfrevive_pills
    by default this plugin will not work on bots - you will need to change selfrevive_bot and make sure selfrevive_noitem is 1. bots cannot use items (because when they revive using an item they keep the item they used, please help on how to remove items from them)
    anything else from the self revive plugin should be intact
    let me know if anything is wrong/if you have feedback - this is my first experience with sourcemod plugins

    cvars
    Code:
    selfrevive_adrenaline "1" - allow using adrenaline to revive
    selfrevive_bot "0" - let bots self revive, requires selfrevive_noitem to be 1
    selfrevive_delay "0.0" - Self revive delay
    selfrevive_delay_incap "0.0" - Self revive delay for incapacitation
    selfrevive_delay_ledge "0.0" - Self revive delay
    selfrevive_duration "3.0" - Self revive duration
    selfrevive_duration_incap "5.0" - Self revive duration for incapacitation, setting higher than 5 will disable animation
    selfrevive_duration_ledge "4.5" - Self revive duration for ledge grab, setting higher than 5 will disable animation
    selfrevive_grab "1" - Self revive for smoker grab, 0:Disable, 1:Enable
    selfrevive_hint_delay "4.0" - Self revive hint delay
    selfrevive_incap "1" - Self revive for incapacitation, 0:Disable, 1:Enable
    selfrevive_itempriority "0" - set this to 1 if you want medkit to be used before pills/adrenaline
    selfrevive_kill "0" - Do not kill special infected when breaking free; 1: Kill special infected when breaking free
    selfrevive_ledge "1" - Self revive for ledge grabs, 0:Disable, 1:Enable
    selfrevive_medkit "1" - allow using medkit to revive
    selfrevive_noitem "1" - allow reviving without items
    selfrevive_noitem_health "10.0" - how much temporary health you will have after reviving with no item
    selfrevive_pills "1" - allow using pills to revive
    selfrevive_pounce "1" - Self revive for hunter pounce, 0:Disable, 1:Enable
    selfrevive_pummel "1" - Self revive for charger pummel , 0:Disable, 1:Enable
    selfrevive_ride "1" - Self revive for jockey ride, 0:Disable, 1:Enable
    selfrevive_versus "0" - 0: Disable in versus, 1: Enable in versus

    Last edited by Silvers; 11-12-2022 at 06:33. Reason: removed .SMX (no source provided)
    reab is offline
    TBK Duy
    Member
    Join Date: Jun 2017
    Location: Vietnam
    Old 11-12-2022 , 06:06   Re: [L4D/L4D2] Self Help Items (nov 12 2022)
    Reply With Quote #2

    You can self revive after lose if you incapped the previous round. Needs fixes. Also could you provide the source ?

    L 11/12/2022 - 20:46:05: [SM] Exception reported: Invalid timer handle 7af003ea (error 3)
    L 11/12/2022 - 20:46:05: [SM] Blaming: l4d_2_selfreviveitem.smx
    L 11/12/2022 - 20:46:05: [SM] Call stack trace:
    L 11/12/2022 - 20:46:05: [SM] [0] KillTimer
    L 11/12/2022 - 20:46:05: [SM] [1] Line 458, l4d_2_selfreviveitem.sp::Timer_SelfRevive

    Sometime I can't revive myself and these error logs are popping

    Last edited by TBK Duy; 11-12-2022 at 08:57.
    TBK Duy is offline
    nick50135
    BANNED
    Join Date: Jan 2023
    Old 01-15-2023 , 05:33  
    Reply With Quote #3

    where should i find your download

    can you create ur new self help plugin that where remove urs?

    Last edited by DarkDeviL; 01-20-2023 at 02:29. Reason: Merged / removed full quote
    nick50135 is offline
    Reply


    Thread Tools
    Display Modes

    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 07:31.


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