Announcement

Collapse
No announcement yet.

prevent looking down?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    prevent looking down?

    Is there a way to limit the viewing angle of the player on the up/down direction? I would like to prevent them from looking down when moving the mouse. By commenting out the "MouseY=Count bYAxis ... " line in User.ini, I have disabled looking down as well as looking up but I would like to keep the looking up function.

    #2
    You could use the PlayerCalcView function in PlayerController, call the super and then check if the camera rotation is higher or lower than you want it to be and limit it there. You'll probably have to put a log in the PlayerCalcView to figure out the values, I can't remember them offhand.

    Comment


      #3
      Thanks ! So say I subclass PlayerController and put in my version of PlayerCalcView, how would I use it in my game type? My gametype is a subclass of deathmatch.

      Comment

      Working...
      X