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 iClient, int 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.