|
New Member
|
05-19-2023
, 06:10
Re: [L4D & L4D2] Left 4 DHooks Direct (1.130) [01-May-2023]
|
#2
|
Hello, I think I found a minor error in the forward code updated in version 1.130 (the same offset 48 is used twice when making changes, and it should be 48 in the first case and 52 in the second), I also ask you to fix the signatures that broke after the release of patch 2227, thank you in advance for your work.
MRESReturn DTR_CGasCanEvent_Killed(int pThis, DHookReturn hReturn, DHookParam hParams) // Forward "L4D2_CGasCan_EventKilled"
{
//PrintToServer("##### DTR_CGasCanEvent_Killed");
int a1 = hParams.GetObjectVar(1, 48, ObjectValueType_EhandlePtr); // 48
int a2 = hParams.GetObjectVar(1, 52, ObjectValueType_EhandlePtr); // 52
...
if( aResult == Plugin_Changed )
{
hParams.SetObjectVar(1, 48, ObjectValueType_EhandlePtr, a1); // 48
hParams.SetObjectVar(1, 48, ObjectValueType_EhandlePtr, a2); // 48 != 52
return MRES_ChangedHandled;
}
g_bBlock_CGasCanEvent_Killed = false;
return MRES_Ignored;
}
|
|
|
|