View Single Post
Author Message
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
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, 2643 views)
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 02-28-2023 at 07:40.
Lux is offline