Forum

Turn player 90 degrees?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Turn player 90 degrees?

Postby gnounc » Sat May 01, 2010 9:37 am

I'd like to simulate grid confined movement by having a button
to turn the player 90 degrees left and right.

I've tried modifying self.angles to no avail.
Any help?
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Postby c0burn » Sat May 01, 2010 10:03 am

Check the teleport code, you need to use fixangles.
c0burn
 
Posts: 208
Joined: Fri Nov 05, 2004 12:48 pm
Location: Liverpool, England

Postby gnounc » Sat May 01, 2010 6:27 pm

Will do, thanks chum!
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Postby gnounc » Sat May 01, 2010 6:45 pm

works beautifully, thanks
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest