Forum

rotating model from qc

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

rotating model from qc

Postby Nahuel » Mon Mar 28, 2011 10:01 pm

Hello! I have a question
Could it change the angle of a model from qc?
For example so that a soldier shoots me of backs. This is easy rotating the model but: can I do it from qc?
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 492
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: rotating model from qc

Postby daemonicky » Wed Apr 27, 2011 8:40 am

Nahuel wrote:Hello! I have a question
Could it change the angle of a model from qc?
For example so that a soldier shoots me of backs. This is easy rotating the model but: can I do it from qc?


I havent tested it. But there are few ways I thought of :

1)
self.ideal_yaw = desired_angle
changeYaw()

2)
angles = vectoangles(self.velocity) // or direction, not sure about this
// make some changes to angles
makevector(changed_angles)
self.velocity = self.origin + v_forward + v_up + v_right
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest