![]() |
Bug in botmans changepitch function
There is a bug in botmans changepitch function;
Code:
current = pEdict->v.v_angle.x; Code:
current = -pEdict->v.v_angle.x; |
Re: Bug in botmans changepitch function
hmm, i think you are applying here the fix that later on Paulo-la-frite once did? (did i spell his name right?). AS the X axis gets 'fixed' later on :)
|
Re: Bug in botmans changepitch function
The pitch of your view angles (v.v_angle) is inverted from the angle of the vector from your origin to your enemies origin. The view pitch is also 1/3 of the angle between the enemies origin and your origin, thus...
Code:
Vector v = (enemy.origin - my.origin); |
Re: Bug in botmans changepitch function
I once had made a little sketch that described all this Half-Life angle stuff. Too bad it's gone during the last website tidy-up.
Basically you have to consider the body and the view angles on the X plane as by reference to two vectors that point backwards from each other. |
Re: Bug in botmans changepitch function
I guess you all mean this code?
Code:
// set the body angles to aim correctly And since the ideal angle isn't inverted I guess I had to do this, atleast for me it fixed the aiming code :| |
Re: Bug in botmans changepitch function
You can invert the pEdict->v.idealpitch and it will be OK.
Of course, the way you are doing seems to work too. |
All times are GMT +2. The time now is 15:49. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.