[help] ghostmode math

Posts 1619 of 19 · Page 2 of 2
Quote Originally Posted by NOOB View Post


A LITTLE PART OF ME JUST DIED INSIDE.
i know what you mean
what are you doing exactly? modifying your view?

i see wouldnt it be easier to just auto aim and just do

x += MyMove etc
Quote Originally Posted by _Fk127_ View Post
Code:
if (forward || backward)
			{
				float sign = (forward ? 1.0f : -1.0f);
				Posx += sign * 20.0f * sinf(Yaw);
				Posy += sign * 20.0f * sinf(-Pitch);
				Posz += sign * 20.0f * cosf(Yaw);
			}
Just a sample
NO! Why u release te math func
Now all make their shit ghostmode

Quote Originally Posted by NOOB View Post


A LITTLE PART OF ME JUST DIED INSIDE.
matz.cpp
Quote Originally Posted by kibbles18 View Post
what header is sinf and cosf found in?
yeah i know its not the whole thing. i just need to add my X Y Z pointers in place of the posx posy posz, and define forward/backward
Google it, learn Geometry(which includes basic Trig) and everythign will make a lot of sense
Posts 1619 of 19 · Page 2 of 2

Post a Reply

Tags for this Thread

None

Need help?