Quote:
Code:
RotateEntity camera,Sin(MilliSecs()*.05)*.5,0,Sin(MilliSecs()*.05)*.5
However, with this I cannot use my mouse to look up and down, it stutters. And keeps it still. How can I use my Sin code but still have the full capabilities of my mouse look?
|
LOL
Chad use TurnEntity instead of RotateEntity becose RotateEntity set the view to an absolute angle while you want relative motion.
You basicaly had a conflict between this two lines of code:
Code:
RotateEntity camera,Sin(MilliSecs()*.05)*.5,0,Sin(MilliSecs()*.05)*.5
TurnEntity camera, MouseYSpeed()/5.0, 0, 0
Coding can be a bitch somtimes eh ?
Chad...
...your code is horrobly to read! lol
You should always leave an empty line betwin code segments and also put comments what a code segment is doing so that no one need to read all of the code to understand what it's supposed to do.
Enjoy