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

[L4D2]Defib_Fix[Left 4 Fix][28/02/2023]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Plugin ID:
6512
Plugin Version:
2.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1946 
    Plugin Description:
    Fixes valve's defib not defibbing correct survivor, sometimes even reviving an alive player
    Old 04-10-2019 , 15:55   [L4D2]Defib_Fix[Left 4 Fix][28/02/2023]
    Reply With Quote #1

    Fixes defib getting wrong targets and reviving alive players, this is semiport of this extension. This exists because of issues with current fix with extension, https://forums.alliedmods.net/showpo...3&postcount=13

    Fixes oversight of being set dependent in old version, and allows reviving any character type 0 - 9 (maybe higher never tested above 9 "m_survivorCharacter")

    Credit to V10 and maintainers of defibfix extension.

    Defib order for revive
    1. Owner of dead body if dead
    2. Anyone of same character if dead
    3. Anyone if dead

    RepoLink

    PHP Code:
    /**
    *    @Note only called if Defib_Fix is installed
    *    
    *    Deathmodels are "survivor_death_model" that can be used with defibrillator.
    *
    *    @param    iClient        Client Index who died.
    *    @param    iDeathModel    Entity Index of Deathmodel for client who died
    *    @no return
    */
    forward void L4D2_OnSurvivorDeathModelCreated(int iClientint iDeathModel); 

    Installation:

    1.Important If you use DefibFix extension REMOVE IT.
    2.Download the .zip file.
    3.Merge with \addons\ folder.
    4.Restart the server.
    Attached Files
    File Type: zip Defib_Fix.zip (11.1 KB, 2359 views)
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 02-28-2023 at 07:40.
    Lux is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 04-11-2019 , 00:12   Re: [L4D2]Defib_Fix[Left 4 Fix]
    Reply With Quote #2

    Hi Lux,

    I used this until today, https://forums.alliedmods.net/showthread.php?t=118723
    but it did not work 100%, sometimes it was an error when the dead player quit the game.

    To use your pluguim should I disable this, and use only yours plugin ?


    Is this only for L4D1 or does it work for l4D2 as well?

    P.S: Thank you for sharing this!
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie

    Last edited by Mi.Cura; 04-11-2019 at 08:19.
    Mi.Cura is offline
    Accelerator
    Senior Member
    Join Date: Dec 2010
    Location: Russia
    Old 04-11-2019 , 04:23   Re: [L4D2]Defib_Fix[Left 4 Fix]
    Reply With Quote #3

    Quote:
    Originally Posted by Mi.Cura View Post
    I used this until today, https://forums.alliedmods.net/showthread.php?t=118723
    but it did not work 100%, sometimes it was an error when the dead player quit the game.
    This bug is completely fixed. Use this version: https://github.com/Accelerator74/l4d...r/l4d2_release
    __________________
    Accelerator is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 04-11-2019 , 08:20   Re: [L4D2]Defib_Fix[Left 4 Fix]
    Reply With Quote #4

    Quote:
    Originally Posted by Accelerator74 View Post
    This bug is completely fixed. Use this version: https://github.com/Accelerator74/l4d...r/l4d2_release
    Thanks! Acelerador74
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 04-11-2019 , 09:46   Re: [L4D2]Defib_Fix[Left 4 Fix]
    Reply With Quote #5

    Quote:
    Originally Posted by Mi.Cura View Post
    Hi Lux,

    To use your pluguim should I disable this, and use only yours plugin ?
    Dunno about that you could use both dunno why you would.

    I only made this to allow people to use my defib ragdolls

    https://forums.alliedmods.net/showpo...3&postcount=13

    I'v never used https://github.com/Accelerator74/l4d...r/l4d2_release fork but since the sm plugin uses no gamedata i don't really have to maintain the plugin anymore as it just works.

    I forgot to fix the deathmodel teleporting to wrong person as LMC already covers this bug, ill add it in later and update.

    This was quite easy to make once looking at the binary for the game and seeing what call order stuff goes in
    PrethinkClient->"defibrillator_used"Event->PostThinkPostClient

    I updated the Prethink hooks to PostThink hooks smaller less scopes between defibbing and finishing less chance of other plugins breaking stuff. I never changed the ver number from 1.1 to 1.1.1 or something as it don't really effect anything.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 04-11-2019 at 10:19.
    Lux is offline
    hoanganh81097
    Senior Member
    Join Date: Apr 2016
    Old 04-12-2019 , 16:25   Re: [L4D2]Defib_Fix[Left 4 Fix][1.1]
    Reply With Quote #6

    great plugins
    hoanganh81097 is offline
    hoanganh81097
    Senior Member
    Join Date: Apr 2016
    Old 04-23-2019 , 14:43   Re: [L4D2]Defib_Fix[Left 4 Fix][1.1]
    Reply With Quote #7

    i used with your ragdoll. But sometime, when defib body, survivor is not respawn and i lost my defib. Body still there.
    hoanganh81097 is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 04-23-2019 , 18:58   Re: [L4D2]Defib_Fix[Left 4 Fix][1.1]
    Reply With Quote #8

    Either all characters e.g. all zoey players are alive it will not defib anyone.
    If you have "df_defib_all 1" it mean's no one is dead and you wasted a defib, this plugin just fixes the defib bug it does not manage dead bodies.

    and my defib ragdoll plugin has nothing to do with that effect you are having as it does not change the deathmodels 1 bit just teleports them around.

    I added bots to PostThink hook from prethink, will only effect people who use death chao's defib bots plugin, everyone else can ignore the newer upload.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D

    Last edited by Lux; 04-26-2019 at 04:04.
    Lux is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 12-19-2019 , 09:26   Re: [L4D2]Defib_Fix[Left 4 Fix][19/12/2019]
    Reply With Quote #9

    Update 2.0

    Rewrite of defibfix to use dhooks and semiported the defibfix extension because of issues with current fix with extension, https://forums.alliedmods.net/showpo...3&postcount=13 and
    fixes oversight of being set dependent in old version, and allows reviving any character type 0 - 9 (maybe higher never tested above 9 "m_survivorCharacter").

    https://github.com/LuxLuma/Left-4-fi...8eeb7da3eba870
    https://github.com/LuxLuma/Left-4-fi...9a20199b5c4abd
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 12-25-2019 , 19:00   Re: [L4D2]Defib_Fix[Left 4 Fix][19/12/2019]
    Reply With Quote #10

    Quote:
    Originally Posted by bazrael View Post
    Is it possible to remove the cloned corpse? After revived the survivors of red outline, they would still leave previous corpses.
    I'm not fully understanding what you mean.
    do you mean as example.
    Player died and got rescued from closet their body is still there?
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux 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 10:56.


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