Raised This Month: $ Target: $400
 0% 

Change Player View Camera Position


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
darktemplar
Member
Join Date: Sep 2009
Old 09-09-2012 , 06:57   Change Player View Camera Position
Reply With Quote #1

Hi everyone,

As we know, the position of view camera of a player is different between when we stand and when we crouch. My question is : Can we set a custom view camera position for a player ?

Thank you ,
darktemplar is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 09-09-2012 , 07:10   Re: Change Player View Camera Position
Reply With Quote #2

Yeah, you need to use pev_view_ofs / EV_VEC_view_ofs.
If I remember correctly in CS values were

{ 0.0, 0.0, 18.0 } when crounching
{ 0.0, 0.0, 36.0 } when standing

So, all you need is to play with values. First two in CS aren't used, but you can them too, third values is camera height.
Although I dont remeber is it enough to set it on spawn, or CS constantly sets it on PreThink.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-09-2012 , 07:42   Re: Change Player View Camera Position
Reply With Quote #3

No, iy's rather 12 and 18
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 09-09-2012 , 09:22   Re: Change Player View Camera Position
Reply With Quote #4

Quote:
Originally Posted by NiHiLaNTh View Post
or CS constantly sets it on PreThink.
Sets it on jump/crouch.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 08:20.


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