HELP ME I AM A TOTAL NOOB
Anyway, I'm trying to use it in the same way one would use changeyaw(), but since there's no equivalent to vectoyaw() to set .idealpitch, I'm stucked.
Basically, I want an ai_face() that works in both X and Y axis. Directions please ?
help with Darkplaces changepitch ()
-
- Posts: 2126
- Joined: Sat Nov 25, 2006 1:49 pm
help with Darkplaces changepitch ()
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC (LordHavoc)
Re: help with Darkplaces changepitch ()
vectoyaw is a crippled version of vectoangles, in that it only returns the yaw angle and ignores the pitch+roll angles.
-
- Posts: 2126
- Joined: Sat Nov 25, 2006 1:49 pm
Re: help with Darkplaces changepitch ()
hmmm makes sense. Thanks Spike!Spike wrote:vectoyaw is a crippled version of vectoangles, in that it only returns the yaw angle and ignores the pitch+roll angles.
EDIT: for anyone willing to make an ai_face() that affects also the entity pitch:
Code: Select all
local vector ideal;
ideal = vectoangles(self.enemy.origin - self.origin);
self.ideal_yaw = ideal_y;
self.idealpitch = ideal_x; // this one is DP specific
ChangeYaw ();
changepitch (self); // this one is DP specific
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC (LordHavoc)