Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to raise camera of the first person view?
goodcap Offline
Member

Posts: 193
Threads: 112
Joined: Jun 2012
Reputation: 3
#1
How to raise camera of the first person view?

So I want the player[first person camera] to be taller instead of having to decrease the size of all entities en static objects in a level. Is this possible?
06-08-2017, 05:17 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: How to raise camera of the first person view?

game.cfg would likely have some options there, or you could use this in your script:

PHP Code: (Select All)
MovePlayerHeadPos(float afXfloat afYfloat afZfloat afSpeedfloat afSlowDownDist); 
Changes the position of the camera on the player's body.

afX - amount along the X-axis
afY - amount along the Y-axis
afZ - amount along the Z-axis
afSpeed - speed at which the change happens
afSlowDownDist - distance at which to start slowing down (prevents the head from abruptly stopping)

Have x and z at 0.0f, have y slightly upper so that you're taller, and change the speed and slowdown distance to whatever works nicely for you.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 06-09-2017, 04:15 AM by Romulator.)
06-09-2017, 04:14 AM
Find




Users browsing this thread: 1 Guest(s)