Raised This Month: $ Target: $400
 0% 

Flip player's viewing angles


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
d1rTyS
Junior Member
Join Date: Dec 2015
Old 02-06-2016 , 14:30   Flip player's viewing angles
Reply With Quote #1

Hello, i just want to ask a quick question!

Is it possible to flip a players view by 180°?

TeleportEntity(...) only rotates it to max 50° no matter what values i put in...

If it is not possiblie, is there a reason why? ;)

Thanks in advance!
d1rTyS is offline
th7nder
Senior Member
Join Date: Oct 2014
Old 02-06-2016 , 14:41   Re: Flip player's viewing angles
Reply With Quote #2

If you want player to make 180 spin, just increment fAngle[1] by 180.0 and it'll work
th7nder is offline
d1rTyS
Junior Member
Join Date: Dec 2015
Old 02-06-2016 , 14:45   Re: Flip player's viewing angles
Reply With Quote #3

Quote:
Originally Posted by th7nder View Post
If you want player to make 180 spin, just increment fAngle[1] by 180.0 and it'll work
Thank you for the quick answer!

But by flipping, i mean setting fAngle[2] to 180.0.
d1rTyS is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 02-06-2016 , 15:16   Re: Flip player's viewing angles
Reply With Quote #4

roll is clamped to +/-50 for whatever reason, i don't know of any way to overcome that

you can set their pitch to something between 90 and 180 or -90 and -180 after changing cl_pitchup/down to flip their view, but their left/right will be inverted

Last edited by Miu; 02-06-2016 at 15:18.
Miu is offline
abgar
Senior Member
Join Date: Apr 2015
Old 02-07-2016 , 04:17   Re: Flip player's viewing angles
Reply With Quote #5

How would one do this please Miu?
abgar is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 02-07-2016 , 09:27   Re: Flip player's viewing angles
Reply With Quote #6

seems like it broke, at least on css, but you used to be able to do

PHP Code:
        FakeClientCommand(client"cl_pitchup 181");
        
FakeClientCommand(client"cl_pitchdown 181"); 
if the client thought sv_cheats was on
Miu is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode