Forum

Does PSP Quake Support Freelook?

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Does PSP Quake Support Freelook?

Postby DusterdooSmock » Fri Oct 15, 2010 5:09 pm

-Does PSP Quake v1.1 have it?
-If it does, can you tell me how to activate it?
-If it does not, can you help me add it?

Thanks.

:P
Last edited by DusterdooSmock on Sat Oct 23, 2010 3:45 pm, edited 1 time in total.
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Postby Spike » Fri Oct 15, 2010 7:18 pm

+mlook
add that to your autoexec.cfg or whatever.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby mh » Fri Oct 15, 2010 7:38 pm

Better to also add a "freelook" cvar, then use code like this:
Code: Select all
qboolean mouselooking;

Code: Select all
mouselooking = (in_mlook.state & 1) || freelook.value;

And replace instances of "in_mlook.state & 1" in your input functions with "mouselooking"; for example:
Code: Select all
    if ((in_strafe.state & 1) || (lookstrafe.value && mouselooking))    // mh
        cmd->sidemove += m_side.value * mx;
    else cl.viewangles[YAW] -= m_yaw.value * mx;

There's one of those in cl_input.c that you need to catch too; it's not just in_win (or in_whatever).
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Spirit » Fri Oct 15, 2010 9:00 pm

I'll say it again: Please use proper titles. This could have been "Free mouselook in PSPQuake?" or "Does PSPQuake support freelook"?

https://encrypted.google.com/search?q=pspquake+freelook would have been much quicker for you in any case. ;-)
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest