Raised This Month: $51 Target: $400
 12% 

Playerview entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 12-08-2011 , 08:17   Playerview entity
Reply With Quote #1

Hi,

i'm wondering, is there is anything, that could help rotate players view once SetClientViewEntity?

For now, then i setclientview to entity, player gets "strict" view(cannot rotate screen).

Any solutions?
MindeLT is offline
Send a message via Skype™ to MindeLT
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 12-08-2011 , 11:37   Re: Playerview entity
Reply With Quote #2

you need to rotate that entity
Despirator is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 12-08-2011 , 12:26   Re: Playerview entity
Reply With Quote #3

Err... How can i do this? : D Have no clue...
The best would be to hook "move left" " move right" commands, to rotate entity to any side.

Any example would be appreciated Thx
MindeLT is offline
Send a message via Skype™ to MindeLT
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 12-08-2011 , 13:50   Re: Playerview entity
Reply With Quote #4

the viewangle is predicted on the client so moving it serverside would make the view laggy, the higher your ping the worse it would be, i tested this for my vehiclemod when trying to find a way to bypass the choppy view while in vehicles.
i haven't tested this and can't until valve fix the steam dedicated server but you could try changing the player view offset(m_vecViewOffset) to the origin of the entity you want them to look from. this would be done in one of the thinks so it constantly updates it, the viewoffset is in the player entities space so you need to convert the entity origin to the player entities space.
blodia is offline
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 12-08-2011 , 16:42   Re: Playerview entity
Reply With Quote #5

Thx, i'll try looking at. This may be my start of new CS:S Stealth Mod
MindeLT is offline
Send a message via Skype™ to MindeLT
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 12:44.


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