Today i wanna show how PUBG developers pooped their pants while trying to hide new one peace of code.
While I was reversing this game I found something about how they check actor angles.
So basically I've notice they inlined SetControlRotation function with angles checks.
Some time later I tried to use it in my cheat and it works. I just used pseudocode from IDA to implement my "Angle writing" function. And here we are (easy to implement external version).
code:
The old Version
The New Version
While I was reversing this game I found something about how they check actor angles.
So basically I've notice they inlined SetControlRotation function with angles checks.
Some time later I tried to use it in my cheat and it works. I just used pseudocode from IDA to implement my "Angle writing" function. And here we are (easy to implement external version).
code:
The old Version
Code:
/* UE4 Version */
void AController::SetControlRotation(const FRotator& NewRotation)
{
if (!ControlRotation.Equals(NewRotation, 1e-3f))
{
ControlRotation = NewRotation;
if (RootComponent && RootComponent->IsUsingAbsoluteRotation())
{
RootComponent->SetWorldRotation(GetControlRotation());
}
}
}
The New Version