Lock pitch and move camera above the player?

Locked
d1ngd0ngtralala
Posts: 3
Joined: Tue May 26, 2009 5:54 pm

Lock pitch and move camera above the player?

Post by d1ngd0ngtralala »

I want to get camera angle like in Shadowgrounds.

So the camera would be directly above the player, and couldn't look up/down.

Can this be done with cvars only or is source code editing required?

Here's a screenshot of the camera angle I want:
Image
Silicone_Milk
Posts: 2237
Joined: Sat Mar 12, 2005 10:49 pm

Re: Lock pitch and move camera above the player?

Post by Silicone_Milk »

This can be done with /cg_drawthirdperson 1
/cg_drawthirdpersonangle someanglenumber
/cg_drawthirdpersonrange desired_distance

Although you will need to do some source code editing as the camera collides with geometry so your top down view wont work in an indoor area without some modification.
d1ngd0ngtralala
Posts: 3
Joined: Tue May 26, 2009 5:54 pm

Re: Lock pitch and move camera above the player?

Post by d1ngd0ngtralala »

I have tried those already, don't work. cg_thirdPersonAngle rotates the view in wrong angle, and they don't lock pitch. I can still look up/down.

No need to worry about camera colliding. This will be for my awesome mod, and I make the maps fit this camera angle perfectly.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Lock pitch and move camera above the player?

Post by ^misantropia^ »

d1ngd0ngtralala wrote:is source code editing required?
Yes.
Locked