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(hDetour, true, AllowWitchesInCheckpoints))
SetFailState("Failed to detour \"WitchLocomotion::IsAreaTraversable\".");
delete hGamedata;
}
public MRESReturn AllowWitchesInCheckpoints(Handle hReturn)
{
DHookSetReturn(hReturn, true);
return MRES_Override;
}
__________________