Is there any way of reversing the ViewPunch command? I have tried:
me:SetViewPunchAngles(Angle(0, 0, 0))
me:SetEyeAngles(-me:GetViewPunchAngles())
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 :) <3
Why don't you go to a cheating forum for help with your cheats?
[url]http://wiki.garrysmod.com/page/Player/ViewPunchReset[/url] or [url]http://wiki.garrysmod.com/page/Player/SetViewPunchAngles[/url] with a zero vector.
[editline]20th August 2017[/editline]
[QUOTE=txike;52594896]Why don't you go to a cheating forum for help with your cheats?[/QUOTE]
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.
[QUOTE=code_gs;52594919][url]http://wiki.garrysmod.com/page/Player/ViewPunchReset[/url][/QUOTE]
I can only use that if i have access to the script the viewpunch is in, in this case i dont though.
[QUOTE=luka2477;52594926]I can only use that if i have access to the script the viewpunch is in, in this case i dont though.[/QUOTE]
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).
[QUOTE=code_gs;52594937]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).[/QUOTE]
Thank you so much :) I've been looking for this for a long time :)
Sorry, you need to Log In to post a reply to this thread.