View Single Post
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 07-28-2019 , 09:28   Re: [L4D2]Witch fixes[Left 4 Fix]
Reply With Quote #8

Quote:
PHP Code:
"windows" "\x2A\x2A\x2A\x2A\x2A\x2A\x6A\x00\x8B\xF1\x6A\x03\x8B\x2A\x2A\x2A\x2A\x2A\x2A\x84" 
Enjoy let me know if it does not work.
well when witch spawns , error occurs and servrer crashes
Code:
[DHOOKS] FATAL: Failed to find return address of original function. Check the arguments and return type of your detour setup.
PHP Code:
public void OnPluginStart()
{
    
Handle hGamedata LoadGameConfigFile(GAMEDATA);
    if(
hGamedata == null
        
SetFailState("Failed to load \"%s.txt\" gamedata."GAMEDATA);
    
    
Handle hDetour;
    
hDetour DHookCreateFromConf(hGamedata"WitchLocomotion::IsAreaTraversable");
    if(!
hDetour)
        
SetFailState("Failed to find \"WitchLocomotion::IsAreaTraversable\" signature.");
        
    if(!
DHookEnableDetour(hDetourtrueAllowWitchesInCheckpoints))
        
SetFailState("Failed to detour \"WitchLocomotion::IsAreaTraversable\".");
    
    
delete hGamedata;
}

public 
MRESReturn AllowWitchesInCheckpoints(Handle hReturn)
{
    
DHookSetReturn(hReturntrue);
    return 
MRES_Override;

__________________

Last edited by HarryPotter; 07-28-2019 at 09:30.
HarryPotter is offline