Question --- Reversing Player:ViewPunch(Angle)

Is there any way of reversing the ViewPunch command? I have tried:
me:SetViewPunchAngles(Angle(0, 0, 0))
Nothing of this works.

When the ViewPunch command punches me by Angel(-10, 0, 0) i would like this to happen : me:SetEyeAngles(EyeAngles() + -me:GetViewPunchAngles()), but even what i try, nothing can override the viewpunch.

Help is much appreciated :slight_smile: <3

Why don’t you go to a cheating forum for help with your cheats? or with a zero vector.

[editline]20th August 2017[/editline]

Although he probably is using it for cheats, there are legitimate reasons to do this (custom view punch decay) in the case anyone runs across this thread.

I can only use that if i have access to the script the viewpunch is in, in this case i dont though.

No, you can run it right after ViewPunch is called and it will reset it. The view punch angle is a variable stored on the player and can be manipulated at any time, but it is applied between the Move and FinishMove hooks (::PlayerMove in the engine).

Thank you so much :slight_smile: I’ve been looking for this for a long time :slight_smile: