AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2]Defib_Fix[Left 4 Fix][28/02/2023] (https://forums.alliedmods.net/showthread.php?t=315483)

Lux 04-10-2019 15:55

[L4D2]Defib_Fix[Left 4 Fix][28/02/2023]
 
1 Attachment(s)
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.

Mi.Cura 04-11-2019 00:12

Re: [L4D2]Defib_Fix[Left 4 Fix]
 
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!

Accelerator 04-11-2019 04:23

Re: [L4D2]Defib_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Mi.Cura (Post 2647041)
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

Mi.Cura 04-11-2019 08:20

Re: [L4D2]Defib_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Accelerator74 (Post 2647062)
This bug is completely fixed. Use this version: https://github.com/Accelerator74/l4d...r/l4d2_release

Thanks! Acelerador74

Lux 04-11-2019 09:46

Re: [L4D2]Defib_Fix[Left 4 Fix]
 
Quote:

Originally Posted by Mi.Cura (Post 2647041)
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.

hoanganh81097 04-12-2019 16:25

Re: [L4D2]Defib_Fix[Left 4 Fix][1.1]
 
great plugins :D

hoanganh81097 04-23-2019 14:43

Re: [L4D2]Defib_Fix[Left 4 Fix][1.1]
 
i used with your ragdoll. But sometime, when defib body, survivor is not respawn and i lost my defib. Body still there.

Lux 04-23-2019 18:58

Re: [L4D2]Defib_Fix[Left 4 Fix][1.1]
 
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.

Lux 12-19-2019 09:26

Re: [L4D2]Defib_Fix[Left 4 Fix][19/12/2019]
 
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

Lux 12-25-2019 19:00

Re: [L4D2]Defib_Fix[Left 4 Fix][19/12/2019]
 
Quote:

Originally Posted by bazrael (Post 2678039)
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?


All times are GMT -4. The time now is 10:52.

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