AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change Player View Camera Position (https://forums.alliedmods.net/showthread.php?t=195587)

darktemplar 09-09-2012 06:57

Change Player View Camera Position
 
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 , :)

NiHiLaNTh 09-09-2012 07:10

Re: Change Player View Camera Position
 
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. :?

ConnorMcLeod 09-09-2012 07:42

Re: Change Player View Camera Position
 
No, iy's rather 12 and 18

bibu 09-09-2012 09:22

Re: Change Player View Camera Position
 
Quote:

Originally Posted by NiHiLaNTh (Post 1795052)
or CS constantly sets it on PreThink. :?

Sets it on jump/crouch.


All times are GMT -4. The time now is 08:20.

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