Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 03-12-2012, 12:39 AM   #1
ChadReitsma
 
Join Date: Feb 2012
Reputation: 4
Posts: 80
Arrow Joystick / GamePad - How to Free Look? [Solved]

Hi Everyone,
I've been working on a little HL:2 DM Mod, and am now having an issue with the GamePad/Joystick ViewAngles.

I enable the GamePad inside the mouse options but when I bind any axis to "LOOK UP / LOOK DOWN" it does not change the viewAngles


Left and Right work perfectly (even without binding them) which leads me to think that it might be hard-coded somewhere?? Also pressing an Analog stick up/down makes me move Forward/Backward... which again, leads me to believe it's hard-coded somewhere...

Could anyone point me in the right direction? Or offer any advice?

Thanks in advance for your help!

Cheers,
Chad

Last edited by ChadReitsma: 03-12-2012 at 01:44 AM.
ChadReitsma is offline  
Reply With Quote
Old 03-12-2012, 01:23 AM   #2
ChadReitsma
 
Join Date: Feb 2012
Reputation: 4
Posts: 80
[Solved]

Ok, duhhhhh...

I just realized that Source had some code that doesn't allow FreeLook if MouseLook is enabled! HOWEVER, because I have integrated the "Over the Shoulder" Free Aim method, it was always on.

If you are having a similar problem, simply find: CInput::AdjustPitch

There is an IF statement that says:
if ( UsingMouselook() == false )

Just move all of the code that was inside of that IF statement outside of it, and you're set!

Last edited by ChadReitsma: 03-12-2012 at 01:47 AM.
ChadReitsma is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


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



All times are GMT -7. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.