Raised This Month: $ Target: $400
 0% 

Player rotation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dbogdan
Junior Member
Join Date: Jan 2016
Old 01-07-2016 , 05:59   Player rotation
Reply With Quote #1

Its possible to set player's roll, pitch and yaw? I mean the entire model and view angles.
I want to make the player rotate by a prop_physics_override.
dbogdan is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 01-07-2016 , 06:05   Re: Player rotation
Reply With Quote #2

I'm not sure what you mean by the last sentence but if you want to set player's rotation you could use TeleportEntity and set the position and velocity to VECTOR_NULL. You probably could do this better with SetEntPropVector but I'm on my phone right now and can't provide all the info.
Phil25 is offline
dbogdan
Junior Member
Join Date: Jan 2016
Old 01-07-2016 , 06:07   Re: Player rotation
Reply With Quote #3

TeleportEntity sets only the view angles, I want the entire model.
dbogdan is offline
cam0
Senior Member
Join Date: Feb 2015
Old 01-07-2016 , 14:58   Re: Player rotation
Reply With Quote #4

I'm sure there's some kind of underlying property that cl_pitchup and cl_pitchdown modify. Try looking into that.

I believe Dr. Api has a plugin that does what you're looking for: https://www.youtube.com/watch?v=ZsqMh9IFAoo
__________________
cam0 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-07-2016 , 15:15   Re: Player rotation
Reply With Quote #5

Quote:
Originally Posted by cam0 View Post
I'm sure there's some kind of underlying property that cl_pitchup and cl_pitchdown modify. Try looking into that.

I believe Dr. Api has a plugin that does what you're looking for: https://www.youtube.com/watch?v=ZsqMh9IFAoo
This plugin https://forums.alliedmods.net/showthread.php?p=2311468
__________________
Veteran SourceMod Coder -> Activity channel
Taking some paid jobs and selling some private stuff.
Contact: Steam, Telegram or discord ( Franc1sco#7876 ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
cam0
Senior Member
Join Date: Feb 2015
Old 01-12-2016 , 18:15   Re: Player rotation
Reply With Quote #6

I know this is late but it's also worth noting that VPhysics could be of much use.
https://forums.alliedmods.net/showth...36350?t=136350
__________________
cam0 is offline
VsX
AlliedModders Donor
Join Date: Jul 2007
Old 03-21-2016 , 23:35   Re: Player rotation
Reply With Quote #7

@camo
It doesn't work. I think this extension need to be recompiled.
Does someone have working vphysics extension?

Last edited by VsX; 03-21-2016 at 23:36.
VsX is offline
almil36
Junior Member
Join Date: Mar 2019
Old 10-14-2020 , 04:53   Re: Player rotation
Reply With Quote #8

I am having the same issue. I teleport the bots using TeleportEntity but the bots model are not directly facing the direction I set. After being teleported their model slowly turns around. I would like it to be instant.
Is there a way to set the angle of not only the view but also of the model?

Thanks in advance
almil36 is offline
Reply


Thread Tools
Display Modes

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 07:21.


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